Skip to content

Commit

Permalink
Future-proofing stuff
Browse files Browse the repository at this point in the history
cuz why not?
  • Loading branch information
nattadasu authored Jul 28, 2024
1 parent c62acee commit 29fee3f
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 13 deletions.
2 changes: 1 addition & 1 deletion common_movie.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
"$cust_cat" + "Movies/"
}
@./medianame.groovy
({y}) [tmdbid-{tmdbid}]/
{" ("}{y}{") [tmdbid-"}{tmdbid}{"]/"}
@./filename_movie.groovy
15 changes: 7 additions & 8 deletions common_music_shared.groovy
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
Torrent Uploads/
{ext.upper()}/
{y}/
[
{"Torrent Uploads/"}
{ext.upper()}{"/"}
{y}{"/["}
{d.format("yyyy.MM.dd")}
] {album} - {n} [
{"] "}{album}{" - "}{n}{" ["}
{ext.upper()}
{ext == "flac" ? " " + "${ bitdepth > 16 ? bitdepth + '-' : ''}" + khz : ""}
]
{media.CATALOGNUMBER ? "[" + media.CATALOGNUMBER + "]" : ""}/
{dc? di + "-": ""}{pi.pad(2)} {t}
{"]"}
{media.CATALOGNUMBER ? "[" + media.CATALOGNUMBER + "]" : ""}{"/"}
{dc? di + "-": ""}{pi.pad(2)}{" "}{t}
{media.ISRC ? " [" + media.ISRC + "]" : ""}
2 changes: 1 addition & 1 deletion filename_movie.groovy
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@./releasegroup.groovy
{" "}
@./medianame.groovy
{" "}({y})
{" ("}{y}{")"}
@./filespec.groovy
2 changes: 1 addition & 1 deletion filespec.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
def langs_ = textLanguages.size() > 5 ? textLanguages.take(5) : textLanguages
substat ? substat + langs_.joining(" ", " (", "").upper() + {textLanguages.size() > 5 ? " ...)" : ")"}: ""
}
][{crc32.upper()}]
{"]["}{crc32.upper()}{"]"}
{ext =~ /(ass|srt|ssa|vtt)/ ? '.' + lang.ISO3B: ""}
{
// Jellyfin 10.9.* default thumbnail name
Expand Down
4 changes: 2 additions & 2 deletions season.groovy
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/
{"/"}
{
episode.special ? 'Specials' : 'Season '+s
}
Expand All @@ -7,4 +7,4 @@
def fixed_name = sn.replaceAll(invalid_chars.collect { "\\" + it }.join('|'), '_')
fixed_name == 'Season '+ s ? "" : fixed_name ? " - " + fixed_name : ""
}
/
{"/"}

0 comments on commit 29fee3f

Please sign in to comment.