-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6863cf4
commit f696153
Showing
7 changed files
with
7 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{def ZXm = System.getProperty("user.name");def KEj = "/run/media/${ZXm}";def LPk = "$KEj/Videos";def DG = [home,"$KEj/Data","$KEj/Music","$KEj/Videos","$KEj/Games","$KEj/Books"].collect { it as File }.sort { yXX, ink -> yXX.exists() <=> ink.exists() ?: yXX.diskSpace <=> ink.diskSpace }.last();def sH = LPk ? LPk : DG;"$sH/"}{"Videos/"}{def uAV = ["boys' love (bl)", "gay theme", "yaoi", "yuri", "lesbian", "hentai","sex", "lgbt", "explicit", "adult animation", "adult content"];def GUs = "TheMovieDB::TV";def dYL = [[271026, GUs],[220118, GUs],[ 74180, GUs]];def xR = [[236530, GUs]];def RRN = any { info.database } { id == tmdbid ? "TheMovieDB" : "IMDb" };def Qt = RRN == "IMDb" ? "tt${id}" : id;def WWa = any { info.adult } { false };def Xx = dYL.find { it[0] == Qt && it[1] == RRN } != null;def kkY = xR.find { it[0] == Qt && it[1] == RRN } != null;def ebM = info.Keywords.findAll { it in uAV } || Xx || WWa;ebM = kkY ? false : ebM;ebM ? "R18+ " : ""}{def tS = ["CN", "JP", "KR", "KP", "TW", "HK"];def fRL = ["aeni", "donghua", "anime"];def Ddw = any {anime} || info.Keywords.findAll { it in fRL } || (tS.contains(country) && genres =~ /Animation/);Ddw ? "Anime Movies/" : "Movies/"}{def GUs = "TheMovieDB::TV";def NN = [[WiK: 68854, SAE: "From Me to You", FDM: GUs],[WiK: 94904, SAE: "My Next Life as yXX Villainess", FDM: GUs],[WiK: 229743, SAE: "VTuber Legend", FDM: GUs],[WiK: 234538, SAE: "Demon Lord 2099", FDM: GUs],[WiK: 237045, SAE: "Cherry Magic!", FDM: GUs],[WiK: 240633, SAE: "A Journey Through Another World", FDM: GUs],[WiK: 245285, SAE: "Failure Frame", FDM: GUs],[WiK: 271026, SAE: "Taisho Era Contract Marriage", FDM: GUs]];def RRN = any { info.database } { id == tmdbid ? "TheMovieDB" : "IMDb" };def Qt = RRN == "IMDb" ? "tt${id}" : id;def dB = n;NN.each {if (it.WiK == Qt && it.FDM == RRN) {dB = it.SAE}};def rii = ['\\', '/', ':', '*', '?', '"', '<', '>', '|'];def Dro = dB.replaceAll(rii.collect { "\\" + it }.join('|'), '');Dro = Dro.replaceAll(/(\s|\.)*$/, '');Dro}{" ("}{y}{")"}{def RRN = id == tmdbid ? "TheMovieDB" : "IMDb";def dZ_ = ["TheMovieDB": "tmdbid","IMDb": "imdbid"];def Cx = dZ_[RRN];def Qt = RRN == "IMDb" ? "tt${id}" : id;" [${Cx}-${Qt}]/"}{def _se = ["Alqanime","BlackLuster","NanDesuKa","ToonsHub","Tsundere-Raws"];def ww = _se.find { tHj -> fn.contains(tHj) } ?: "";def NjK = any {(fn =~ /^\[(.*?)\]/)[0][1]} {ww} {group} {""};NjK ? "[$NjK] " : ""}{def GUs = "TheMovieDB::TV";def NN = [[WiK: 68854, SAE: "From Me to You", FDM: GUs],[WiK: 94904, SAE: "My Next Life as yXX Villainess", FDM: GUs],[WiK: 229743, SAE: "VTuber Legend", FDM: GUs],[WiK: 234538, SAE: "Demon Lord 2099", FDM: GUs],[WiK: 237045, SAE: "Cherry Magic!", FDM: GUs],[WiK: 240633, SAE: "A Journey Through Another World", FDM: GUs],[WiK: 245285, SAE: "Failure Frame", FDM: GUs],[WiK: 271026, SAE: "Taisho Era Contract Marriage", FDM: GUs]];def RRN = any { info.database } { id == tmdbid ? "TheMovieDB" : "IMDb" };def Qt = RRN == "IMDb" ? "tt${id}" : id;def dB = n;NN.each {if (it.WiK == Qt && it.FDM == RRN) {dB = it.SAE}};def rii = ['\\', '/', ':', '*', '?', '"', '<', '>', '|'];def Dro = dB.replaceAll(rii.collect { "\\" + it }.join('|'), '');Dro = Dro.replaceAll(/(\s|\.)*$/, '');Dro}{" ("}{y}{")"}{" ["}{def bMO = [[pOr: "ABEMA", EEt: ["ABEMA"]],[pOr: "Bilibili.tv", EEt: ["BILI", "B-Global", "BiliIntl", "B-Site", "BiliCN"]],[pOr: "Hulu", EEt: ["HULU"]],[pOr: "iQIYI", EEt: ["IQ.WEB-DL", "IQIYI"]],[pOr: "MeWatch", EEt: ["MW.WEB-DL"]],[pOr: "Netflix", EEt: ["NF.WEB-DL", "NF WEB"]],[pOr: "Prime Video", EEt: ["AMZN"]],[pOr: "Shahid", EEt: ["SHAHID"]],[pOr: "TVer", EEt: ["TVER"]],[pOr: "U-NEXT", EEt: ["UNEXT"]],[pOr: "YouTube", EEt: ["YT.WEB-DL", "YOUTUBE", "YTB"]]];def Wm = ["ASW", "Judas", "JRx7", "EMBER", "KawaSubs", "GuodongSubs"];def Xw = ["Erai-raws", "SubsPlease"];def ew = any {(fn =~ /^\[(.*?)\]/)[0][1]} {""};def LDH = any {def Kcy = bMO.find { LSI -> LSI.EEt.find { Eb -> fn.contains(Eb) } }?.EEt.first() ?: "";Kcy = Kcy.replace(".WEB-DL", "");Kcy ? "${Kcy}.WEB-DL" : ""} {source} {Wm.find { FvD -> group == FvD || ew == FvD } ? "WEBRip" : ""} {def jn = Xw.find { GN -> group == GN || ew == GN} ? "WEB-DL" : "";(source == "Erai-raws" && vcf.upper() == "HEVC") ? "WEBRip" : jn} {vs} {""};LDH ? "$LDH " : ""}{def Lh = bitdepth ? " ${bitdepth}bit" : "";"$resolution $vcf $Lh, $ac"}{" "}{af.format(8: 'DD+ 7.1',7: '6.1',6: 'DD 5.1',5: '5.0',3: '2.1',2: '2.0',1: '1.0')}{def yY = " Dub";def pRC = audioLanguages.any { it.ISO3B == language.ISO3B } ? "" : yY;pRC = audioLanguages.size() == 1 && audioLanguages.any { it.ISO3B == "und" } ? "" : pRC;pRC}{def KjN = any { audioLanguages.size() } { 0 };def pRC = KjN > 2 ? " MAud" : KjN > 1 ? " DAud" : null;def ZH = KjN > 5 ? audioLanguages.take(5) : audioLanguages;pRC ? pRC + ZH.joining(" ", " (", "").upper() + (KjN > 5 ? " ...)" : ")") : ""}{def Tlu = any { textLanguages.size() } { 0 };def pRC = Tlu > 2 ? ", MSub" : Tlu > 1 ? ", DSub" : null;def ZH = Tlu > 5 ? textLanguages.take(5) : textLanguages;pRC ? pRC + ZH.joining(" ", " (", "").upper() + (Tlu > 5 ? " ...)" : ")") : ""}{"]["}{crc32.upper()}{"]"}{def _iA = ["ass", "srt", "ssa", "vtt", "ttml"];def CwL = ["name": "." + lang.name,"iso3b": "." + lang.ISO3B,"iso3": "." +lang.ISO3,"iso2": "." + lang.ISO2];def hDw = subt;CwL.values().each { WJ -> if (hDw.contains(WJ)) {hDw = hDw.replace(WJ, "")}};_iA.contains(ext) ? CwL.iso3b + hDw : ""}{def _iA = ["jpg", "jpeg", "png", "bmp"];_iA.contains(ext) ? "-thumb" : ""} | ||
{def qzc = System.getProperty("user.name");def zp = "/run/media/${qzc}";def Zn = "$zp/Videos";def lt = [home,"$zp/Data","$zp/Music","$zp/Videos","$zp/Games","$zp/Books"].collect { it as File }.sort { cVy, Ccr -> cVy.exists() <=> Ccr.exists() ?: cVy.diskSpace <=> Ccr.diskSpace }.last();def xR = Zn ? Zn : lt;"$xR/"}{"Videos/"}{def ovx = ["boys' love (bl)", "gay theme", "yaoi", "yuri", "lesbian", "hentai","sex", "lgbt", "explicit", "adult animation", "adult content"];def _h = "TheMovieDB::TV";def yOm = [[271026, _h],[220118, _h],[ 74180, _h]];def pDL = [[236530, _h]];def Ca = any { info.database } { id == tmdbid ? "TheMovieDB" : "IMDb" };def FYY = Ca == "IMDb" ? "tt${id}" : id;def gR = any { info.adult } { false };def kq = yOm.find { it[0] == FYY && it[1] == Ca } != null;def yR = pDL.find { it[0] == FYY && it[1] == Ca } != null;def n_M = info.Keywords.findAll { it in ovx } || kq || gR;n_M = yR ? false : n_M;n_M ? "R18+ " : ""}{def kK = ["CN", "JP", "KR", "KP", "TW", "HK"];def NHM = ["aeni", "donghua", "anime"];def xo = any {anime} || info.Keywords.findAll { it in NHM } || (kK.contains(country) && genres =~ /Animation/);xo ? "Anime Movies/" : "Movies/"}{def _h = "TheMovieDB::TV";def F_A = [[bT: 68854, tk: "From Me to You", Xgl: _h],[bT: 94904, tk: "My Next Life as a Villainess", Xgl: _h],[bT: 229743, tk: "VTuber Legend", Xgl: _h],[bT: 234538, tk: "Demon Lord 2099", Xgl: _h],[bT: 237045, tk: "Cherry Magic!", Xgl: _h],[bT: 240633, tk: "A Journey Through Another World", Xgl: _h],[bT: 245285, tk: "Failure Frame", Xgl: _h],[bT: 271026, tk: "Taisho Era Contract Marriage", Xgl: _h]];def Ca = any { info.database } { id == tmdbid ? "TheMovieDB" : "IMDb" };def FYY = Ca == "IMDb" ? "tt${id}" : id;def TGe = n;F_A.each {if (it.bT == FYY && it.Xgl == Ca) {TGe = it.tk}};def Fm = ['\\', '/', ':', '*', '?', '"', '<', '>', '|'];def Qc = TGe.replaceAll(Fm.collect { "\\" + it }.join('|'), '');Qc = Qc.replaceAll(/(\s|\.)*$/, '');Qc}{" ("}{y}{")"}{def Ca = id == tmdbid ? "TheMovieDB" : "IMDb";def auC = ["TheMovieDB": "tmdbid","IMDb": "imdbid"];def Mm = auC[Ca];def FYY = Ca == "IMDb" ? "tt${id}" : id;" [${Mm}-${FYY}]/"}{def Voc = ["Alqanime","BlackLuster","NanDesuKa","ToonsHub","Tsundere-Raws"];def Kk = Voc.find { HhN -> fn.contains(HhN) } ?: "";def gZo = any {(fn =~ /^\[(.*?)\]/)[0][1]} {Kk} {group} {""};gZo ? "[$gZo] " : ""}{def _h = "TheMovieDB::TV";def F_A = [[bT: 68854, tk: "From Me to You", Xgl: _h],[bT: 94904, tk: "My Next Life as a Villainess", Xgl: _h],[bT: 229743, tk: "VTuber Legend", Xgl: _h],[bT: 234538, tk: "Demon Lord 2099", Xgl: _h],[bT: 237045, tk: "Cherry Magic!", Xgl: _h],[bT: 240633, tk: "A Journey Through Another World", Xgl: _h],[bT: 245285, tk: "Failure Frame", Xgl: _h],[bT: 271026, tk: "Taisho Era Contract Marriage", Xgl: _h]];def Ca = any { info.database } { id == tmdbid ? "TheMovieDB" : "IMDb" };def FYY = Ca == "IMDb" ? "tt${id}" : id;def TGe = n;F_A.each {if (it.bT == FYY && it.Xgl == Ca) {TGe = it.tk}};def Fm = ['\\', '/', ':', '*', '?', '"', '<', '>', '|'];def Qc = TGe.replaceAll(Fm.collect { "\\" + it }.join('|'), '');Qc = Qc.replaceAll(/(\s|\.)*$/, '');Qc}{" ("}{y}{")"}{" ["}{def zui = [[ZQC: "ABEMA", AjY: ["ABEMA"]],[ZQC: "Bilibili.tv", AjY: ["BILI", "B-Global", "BiliIntl", "B-Site", "BiliCN"]],[ZQC: "Hulu", AjY: ["HULU"]],[ZQC: "iQIYI", AjY: ["IQ.WEB-DL", "IQIYI"]],[ZQC: "MeWatch", AjY: ["MW.WEB-DL"]],[ZQC: "Netflix", AjY: ["NF.WEB-DL", "NF WEB"]],[ZQC: "Prime Video", AjY: ["AMZN"]],[ZQC: "Shahid", AjY: ["SHAHID"]],[ZQC: "TVer", AjY: ["TVER"]],[ZQC: "U-NEXT", AjY: ["UNEXT"]],[ZQC: "YouTube", AjY: ["YT.WEB-DL", "YOUTUBE", "YTB"]]];def IW = ["ASW", "Judas", "JRx7", "EMBER", "KawaSubs", "GuodongSubs"];def nm = ["Erai-raws", "SubsPlease"];def RBQ = any {(fn =~ /^\[(.*?)\]/)[0][1]} {""};def GE = any {def DB = zui.find { OGR -> OGR.AjY.find { zu -> fn.contains(zu) } }?.AjY.cVy() ?: "";DB = DB.replace(".WEB-DL", "");DB ? "${DB}.WEB-DL" : ""} {source} {IW.find { _ow -> group == _ow || RBQ == _ow } ? "WEBRip" : ""} {def YWa = nm.find { jrx -> group == jrx || RBQ == jrx} ? "WEB-DL" : "";(source == "Erai-raws" && vcf.upper() == "HEVC") ? "WEBRip" : YWa} {vs} {""};GE ? "$GE " : ""}{def JB = bitdepth ? " ${bitdepth}bit" : "";"$resolution $vcf $JB, $ac"}{" "}{af.format(8: 'DD+ 7.1',7: '6.1',6: 'DD 5.1',5: '5.0',3: '2.1',2: '2.0',1: '1.0')}{def CxX = " Dub";def uo = audioLanguages.any { it.ISO3B == language.ISO3B } ? "" : CxX;uo = audioLanguages.size() == 1 && audioLanguages.any { it.ISO3B == "und" } ? "" : uo;uo}{def ms = any { audioLanguages.size() } { 0 };def uo = ms > 2 ? " MAud" : ms > 1 ? " DAud" : null;def K_V = ms > 5 ? audioLanguages.take(5) : audioLanguages;uo ? uo + K_V.joining(" ", " (", "").upper() + (ms > 5 ? " ...)" : ")") : ""}{def Vgb = any { textLanguages.size() } { 0 };def uo = Vgb > 2 ? ", MSub" : Vgb > 1 ? ", DSub" : null;def K_V = Vgb > 5 ? textLanguages.take(5) : textLanguages;uo ? uo + K_V.joining(" ", " (", "").upper() + (Vgb > 5 ? " ...)" : ")") : ""}{"]["}{crc32.upper()}{"]"}{def H_ = ["ass", "srt", "ssa", "vtt", "ttml"];def Hh = ["name": "." + lang.name,"iso3b": "." + lang.ISO3B,"iso3": "." +lang.ISO3,"iso2": "." + lang.ISO2];def Ye = subt;Hh.values().each { suG -> if (Ye.contains(suG)) {Ye = Ye.replace(suG, "")}};H_.contains(ext) ? Hh.iso3b + Ye : ""}{def H_ = ["jpg", "jpeg", "png", "bmp"];H_.contains(ext) ? "-thumb" : ""} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{def OQm = System.getProperty("user.name");def ew = "/run/media/${OQm}";def mLj = "$ew/Videos";def Ici = [home,"$ew/Data","$ew/Music","$ew/Videos","$ew/Games","$ew/Books"].collect { it as File }.sort { Jv, sIB -> Jv.exists() <=> sIB.exists() ?: Jv.diskSpace <=> sIB.diskSpace }.last();def AYw = mLj ? mLj : Ici;"$AYw/"}{"Torrent Uploads/"}{ext.upper()}{"/"}{y}{"/["}{d.format("yyyy.MM.dd")}{"] "}{album}{" - "}{n}{" ["}{ext.upper()}{ext == "flac" ? " " + "${ bitdepth > 16 ? bitdepth + '-' : ''}" + khz : ext == "mp3" && media.get("OverallBitRate/String") != "320 kbps" ? " V0" : ""}{"]"}{media.CATALOGNUMBER ? "[" + media.CATALOGNUMBER + "]" : ""}{"/"}{dc > 1 ? "Disc " + di + "/" : ""}{dc? di + "-": ""}{pi.pad(2)}{" "}{t} | ||
{def cHq = System.getProperty("user.name");def ymo = "/run/media/${cHq}";def dgT = "$ymo/Videos";def FjS = [home,"$ymo/Data","$ymo/Music","$ymo/Videos","$ymo/Games","$ymo/Books"].collect { it as File }.sort { ggo, YE -> ggo.exists() <=> YE.exists() ?: ggo.diskSpace <=> YE.diskSpace }.last();def J_ = dgT ? dgT : FjS;"$J_/"}{"Torrent Uploads/"}{ext.upper()}{"/"}{y}{"/["}{d.format("yyyy.MM.dd")}{"] "}{album}{" - "}{n}{" ["}{ext.upper()}{ext == "flac" ? " " + "${ bitdepth > 16 ? bitdepth + '-' : ''}" + khz : ext == "mp3" && media.get("OverallBitRate/String") != "320 kbps" ? " V0" : ""}{"]"}{media.CATALOGNUMBER ? "[" + media.CATALOGNUMBER + "]" : ""}{"/"}{dc > 1 ? "Disc " + di + "/" : ""}{dc? di + "-": ""}{pi.pad(2)}{" "}{t} |
Oops, something went wrong.