From ef02d2c1bdd3f8cad04982f81bba01eae4b2ca1b Mon Sep 17 00:00:00 2001 From: Natsu Tadama Date: Thu, 8 Aug 2024 02:48:38 +0700 Subject: [PATCH] Add auto ID tag for some ambiguous titles --- common_tv.groovy | 3 ++- forceshowid_tv.groovy | 7 +++++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 forceshowid_tv.groovy diff --git a/common_tv.groovy b/common_tv.groovy index b66d5ab..efbf032 100644 --- a/common_tv.groovy +++ b/common_tv.groovy @@ -8,5 +8,6 @@ is_anime ? "Videos/Anime/" : "Videos/TV Series/" } @./medianame.groovy +@./forceshowid_tv.groovy @./season.groovy -@./filename_tv.groovy \ No newline at end of file +@./filename_tv.groovy diff --git a/forceshowid_tv.groovy b/forceshowid_tv.groovy new file mode 100644 index 0000000..8d80a51 --- /dev/null +++ b/forceshowid_tv.groovy @@ -0,0 +1,7 @@ +{ + def show_id = [ + 239779, 112888 + ] + def is_id_matches = show_id.find { curr_id -> tmdbid == curr_id } ?: "" + is_id_matches ? " ($y) [tmdbid-$is_id_matches]" : "" +}