Skip to content

Commit f1f7aa5

Browse files
committed
Fix possible weird duplicated path on Windows
I really forgot that common_tv and common_movie will also handle categorization, wth.
1 parent d2f46af commit f1f7aa5

9 files changed

+9
-18
lines changed

README.md

-4
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,6 @@ favor of my personal preference, and might be not suitable for you.
1717

1818
However, the most important files were:
1919

20-
* Anything that starts with `_posix` or `_windows` are the main scripts, defines
21-
how the file will be stored. By default it's on `{default_drive}/{media_type}`
22-
(e.g. `D:\Videos`, or `/mnt/drive/Music`, where `Videos` and `Music` are
23-
media types). `{default_drive}` behavior will be explained below.
2420
* `filepath_posix.groovy` and `filepath_windows.groovy` are the scripts that
2521
handles <u>(default) drive logic</u>. By default, it tries to find the drive
2622
that have most free space, and if it's not found, it will use the default

_posix_movie.groovy

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
@./filepath_posix.groovy
2-
Videos/
3-
@./common_movie.groovy
2+
@./common_movie.groovy

_posix_music_shared.groovy

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
{/* This script is dedicated to be used to share their music files with other users. */}
22
@./filepath_posix.groovy
3-
Torrent Uploads/
4-
@./common_music_shared.groovy
3+
@./common_music_shared.groovy

_posix_tv.groovy

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
@./filepath_posix.groovy
2-
Videos/
3-
@./common_tv.groovy
2+
@./common_tv.groovy

_windows_movie.groovy

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
@./filepath_windows.groovy
2-
Videos/
3-
@./common_movie.groovy
2+
@./common_movie.groovy

_windows_music_shared.groovy

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
{/* This script is dedicated to be used to share their music files with other users. */}
22
@./filepath_posix.groovy
3-
Torrent Uploads/
4-
@./common_music_shared.groovy
3+
@./common_music_shared.groovy

_windows_tv.groovy

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
@./filepath_windows.groovy
2-
Videos/
3-
@./common_tv.groovy
2+
@./common_tv.groovy

common_music_shared.groovy

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
Torrent Uploads/
12
{ext.upper()}/
23
{y}/
34
[
@@ -8,4 +9,4 @@
89
]
910
{media.CATALOGNUMBER ? "[" + media.CATALOGNUMBER + "]" : ""}/
1011
{dc? di + "-": ""}{pi.pad(2)} {t}
11-
{media.ISRC ? " [" + media.ISRC + "]" : ""}
12+
{media.ISRC ? " [" + media.ISRC + "]" : ""}

filepath_posix.groovy

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
def mntp = "/run/media/$user"
66

77
//! OVERRIDE THIS PATH IF NEEDED, ELSE, BLANK IT ("")
8-
def override = "$mntp"
8+
def override = "$mntp/Videos"
99

1010
def guess = [
1111
home,

0 commit comments

Comments
 (0)