Skip to content

Commit

Permalink
Fix possible weird duplicated path on Windows
Browse files Browse the repository at this point in the history
I really forgot that common_tv and common_movie will also handle
categorization, wth.
  • Loading branch information
nattadasu committed Jul 27, 2024
1 parent d2f46af commit f1f7aa5
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 18 deletions.
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@ favor of my personal preference, and might be not suitable for you.

However, the most important files were:

* Anything that starts with `_posix` or `_windows` are the main scripts, defines
how the file will be stored. By default it's on `{default_drive}/{media_type}`
(e.g. `D:\Videos`, or `/mnt/drive/Music`, where `Videos` and `Music` are
media types). `{default_drive}` behavior will be explained below.
* `filepath_posix.groovy` and `filepath_windows.groovy` are the scripts that
handles <u>(default) drive logic</u>. By default, it tries to find the drive
that have most free space, and if it's not found, it will use the default
Expand Down
3 changes: 1 addition & 2 deletions _posix_movie.groovy
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
@./filepath_posix.groovy
Videos/
@./common_movie.groovy
@./common_movie.groovy
3 changes: 1 addition & 2 deletions _posix_music_shared.groovy
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{/* This script is dedicated to be used to share their music files with other users. */}
@./filepath_posix.groovy
Torrent Uploads/
@./common_music_shared.groovy
@./common_music_shared.groovy
3 changes: 1 addition & 2 deletions _posix_tv.groovy
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
@./filepath_posix.groovy
Videos/
@./common_tv.groovy
@./common_tv.groovy
3 changes: 1 addition & 2 deletions _windows_movie.groovy
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
@./filepath_windows.groovy
Videos/
@./common_movie.groovy
@./common_movie.groovy
3 changes: 1 addition & 2 deletions _windows_music_shared.groovy
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{/* This script is dedicated to be used to share their music files with other users. */}
@./filepath_posix.groovy
Torrent Uploads/
@./common_music_shared.groovy
@./common_music_shared.groovy
3 changes: 1 addition & 2 deletions _windows_tv.groovy
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
@./filepath_windows.groovy
Videos/
@./common_tv.groovy
@./common_tv.groovy
3 changes: 2 additions & 1 deletion common_music_shared.groovy
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
Torrent Uploads/
{ext.upper()}/
{y}/
[
Expand All @@ -8,4 +9,4 @@
]
{media.CATALOGNUMBER ? "[" + media.CATALOGNUMBER + "]" : ""}/
{dc? di + "-": ""}{pi.pad(2)} {t}
{media.ISRC ? " [" + media.ISRC + "]" : ""}
{media.ISRC ? " [" + media.ISRC + "]" : ""}
2 changes: 1 addition & 1 deletion filepath_posix.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
def mntp = "/run/media/$user"

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

def guess = [
home,
Expand Down

0 comments on commit f1f7aa5

Please sign in to comment.