-
-
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
fa99150
commit 6c0a5af
Showing
4 changed files
with
4 additions
and
4 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 ujn = {System.getProperty(it)};def YG = ujn("os.name").toLowerCase().contains("windows");def DWq = ujn("user.name");def lx = "/run/media/${DWq}";def xkW = "";def qbW = [[URn: "Books", SAo: "F:/", XuZ: "$lx/Books"],[URn: "Data", SAo: "D:/", XuZ: "$lx/Data"],[URn: "Games", SAo: "G:/", XuZ: "$lx/Games"],[URn: "Music", SAo: "E:/", XuZ: "$lx/Music"],[URn: "Videos", SAo: "H:/", XuZ: "$lx/Videos"]];def xnB = (qbW.collect {it[YG ? "SAo" : "XuZ"] as File}.sort {first, second -> first.exists() <=> second.exists() ?: first.diskSpace <=> second.diskSpace}).last().path;def Ap = xkW ?: xnB;"$Ap/"}{"Videos/"}{def lpC = ["boys' love (bl)","gay theme","yaoi","yuri","lesbian","hentai", "sex","lgbt","explicit","adult animation","adult content"];def sJC = "TheMovieDB::TV";def OM = [[271026, sJC],[220118, sJC],[74180, sJC]];def mCs = [[236530, sJC]];def JFY = any {info.database} {id == tmdbid ? "TheMovieDB" : "IMDb"};def va = JFY == "IMDb" ? "tt${id}" : id;def tm = any {info.adult} {false};def jaN = OM.find {it[0] == va && it[1] == JFY} != null;def SJU = mCs.find {it[0] == va && it[1] == JFY} != null;def fwL = info.Keywords.findAll {it in lpC} || jaN || tm;fwL = SJU ? false : fwL;fwL ? "R18+ " : ""}{def EVr = ["CN","JP","KR","KP","TW","HK"];def MtY = ["aeni","donghua","anime"];def MEU = (any {anime} ||info.Keywords.findAll {it in MtY} ||(EVr.contains(country) && genres.contains("Animation")));MEU ? "Anime Movies/" : "Movies/"}{def sJC = "TheMovieDB::TV";def fpb = [[esW: 68854, gOL: "From Me to You", rN: sJC],[esW: 94904, gOL: "My Next Life as a Villainess", rN: sJC],[esW: 229743, gOL: "VTuber Legend", rN: sJC],[esW: 234538, gOL: "Demon Lord 2099", rN: sJC],[esW: 237045, gOL: "Cherry Magic!", rN: sJC],[esW: 240633, gOL: "A Journey Through Another World", rN: sJC],[esW: 245285, gOL: "Failure Frame", rN: sJC],[esW: 271026, gOL: "Taisho Era Contract Marriage", rN: sJC]];def JFY = any {info.database} {id == tmdbid ? "TheMovieDB" : "IMDb"};def va = JFY == "IMDb" ? "tt${id}" : id;def XA = n;fpb.each {if (it.esW == va && it.rN == JFY) {XA = it.gOL}};def oJm = ['\\','/',':','*','?','"','<','>','|'];def uOA = XA.replaceAll(oJm.collect {"\\" + it}.join('|'), '');uOA = uOA.replaceAll(/(\s|\.)*$/, '');uOA}{" ("}{y}{")"}{def JFY = id == tmdbid ? "TheMovieDB" : "IMDb";def XlW = ["TheMovieDB": "tmdbid","IMDb": "imdbid"];def MpJ = XlW[JFY];def va = JFY == "IMDb" ? "tt${id}" : id;" [${MpJ}-${va}]/"}{def Vpq = ["Alqanime","BlackLuster","Kuramanime","NanDesuKa","ToonsHub","Tsundere-Raws"];def hdO = Vpq.find {groupName -> fn.contains(groupName)} ?: "";def dz = any {(fn =~ /^\[(.*?)\]/)[0][1]} {hdO} {group} {""};dz ? "[$dz] " : ""}{def sJC = "TheMovieDB::TV";def fpb = [[esW: 68854, gOL: "From Me to You", rN: sJC],[esW: 94904, gOL: "My Next Life as a Villainess", rN: sJC],[esW: 229743, gOL: "VTuber Legend", rN: sJC],[esW: 234538, gOL: "Demon Lord 2099", rN: sJC],[esW: 237045, gOL: "Cherry Magic!", rN: sJC],[esW: 240633, gOL: "A Journey Through Another World", rN: sJC],[esW: 245285, gOL: "Failure Frame", rN: sJC],[esW: 271026, gOL: "Taisho Era Contract Marriage", rN: sJC]];def JFY = any {info.database} {id == tmdbid ? "TheMovieDB" : "IMDb"};def va = JFY == "IMDb" ? "tt${id}" : id;def XA = n;fpb.each {if (it.esW == va && it.rN == JFY) {XA = it.gOL}};def oJm = ['\\','/',':','*','?','"','<','>','|'];def uOA = XA.replaceAll(oJm.collect {"\\" + it}.join('|'), '');uOA = uOA.replaceAll(/(\s|\.)*$/, '');uOA}{" ("}{y}{")"}{" ["}{def QL = [["ABEMA"],["ADN"],["BILI","B-Global","BiliIntl","B-Site","BiliCN"],["HIDIVE","HIDI.WEB-DL"],["IQIYI","IQ.WEB-DL"],["LAFTEL","LFTL"],["MW.WEB-DL"],["NF.WEB-DL","NF WEB"],["SHAHID"],["TVER"],["UNEXT"],["WETV"],["YT.WEB-DL","YOUTUBE","YTB"]];def yRu = ["ASW","Judas","JRx7","EMBER","KawaSubs","GuodongSubs"];def qbB = ["Erai-raws","SubsPlease"];def Ny = any {(fn =~ /^\[(.*?)\]/)[0][1]} {""};def AAD = any {def FF = QL.find {idx -> idx.find {known -> fn.lower().contains(known.lower())}}[0];FF = FF.replace(".WEB-DL", "");FF ? "${FF}.WEB-DL" : ""} {source} {yRu.find {g_ -> group == g_ || Ny == g_} ? "WEBRip" : ""} {def QZ = qbB.find {r_ -> group == r_ || Ny == r_} ? "WEB-DL" : "";(source == "Erai-raws" && vcf.upper() == "HEVC") ? "WEBRip" : QZ} {vs} {""};AAD ? "$AAD " : ""}{def fVZ = bitdepth ? " ${bitdepth}bit" : "";"$resolution $vcf $fVZ, $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 S_ = " Dub";def _GJ = audioLanguages.any{it.ISO3B == language.ISO3B} ? "" : S_;_GJ = audioLanguages.size() == 1 && audioLanguages.any{it.ISO3B == "und"} ? "" : _GJ;_GJ}{def VI = any {audioLanguages.size()} {0};def _GJ = VI > 2 ? " MAud" : VI > 1 ? " DAud" : null;def Fvo = VI > 5 ? audioLanguages.take(5) : audioLanguages;_GJ ? _GJ + Fvo.joining(" ", " (", "").upper() + (VI > 5 ? " ...)" : ")") : ""}{def Kt = any {textLanguages.size()} {0};def _GJ = Kt > 2 ? ", MSub" : Kt > 1 ? ", DSub" : null;def Fvo = Kt > 5 ? textLanguages.take(5) : textLanguages;_GJ ? _GJ + Fvo.joining(" ", " (", "").upper() + (Kt > 5 ? " ...)" : ")") : ""}{"]["}{crc32.upper()}{"]"}{if (f.subtitle) {def CXj = ["name": "." + lang.name,"iso3b": "." + lang.ISO3B,"iso3": "." +lang.ISO3,"iso2": "." + lang.ISO2];def oGi = subt;CXj.values().each {code -> if (oGi.contains(code)) {oGi = oGi.replace(code, "")}};CXj.iso3b + oGi}}{f.image ? "-thumb" : ""} | ||
{def eA = { System.getProperty(it) };def YEJ = eA("os.name").toLowerCase().contains("windows");def Uy = eA("user.name");def Sk = "/run/media/${Uy}";def JGO = YEJ ? "H:/" : "$Sk/Videos";def OTW = [[QZ: "Books", hsC: "F:/", JL: "$Sk/Books"],[QZ: "Data", hsC: "D:/", JL: "$Sk/Data"],[QZ: "Games", hsC: "G:/", JL: "$Sk/Games"],[QZ: "Music", hsC: "E:/", JL: "$Sk/Music"],[QZ: "Videos", hsC: "H:/", JL: "$Sk/Videos"]];def bzO = (OTW.collect { it[YEJ ? "hsC" : "JL"] as File }.sort { KcI, C_Q -> KcI.exists() <=> C_Q.exists() ?: KcI.diskSpace <=> C_Q.diskSpace }).last();def KO = JGO ?: bzO;"$KO/"}{"Videos/"}{def LmX = ["boys' love (bl)", "gay theme", "yaoi", "yuri", "lesbian", "hentai","sex", "lgbt", "explicit", "adult animation", "adult content"];def _kA = "TheMovieDB::TV";def Ap = [[271026, _kA],[220118, _kA],[ 74180, _kA]];def Mi = [[236530, _kA]];def tG = any { info.database } { id == tmdbid ? "TheMovieDB" : "IMDb" };def M_ = tG == "IMDb" ? "tt${id}" : id;def qQ = any { info.adult } { false };def ZC = Ap.find { it[0] == M_ && it[1] == tG } != null;def VI = Mi.find { it[0] == M_ && it[1] == tG } != null;def TEQ = info.Keywords.findAll { it in LmX } || ZC || qQ;TEQ = VI ? false : TEQ;TEQ ? "R18+ " : ""}{def mg = ["CN", "JP", "KR", "KP", "TW", "HK"];def EkN = ["aeni", "donghua", "anime"];def QMB = any {anime} || info.Keywords.findAll { it in EkN } || (mg.contains(country) && genres =~ /Animation/);QMB ? "Anime Movies/" : "Movies/"}{def _kA = "TheMovieDB::TV";def wI = [[mn: 68854, zyt: "From Me to You", lF: _kA],[mn: 94904, zyt: "My Next Life as a Villainess", lF: _kA],[mn: 229743, zyt: "VTuber Legend", lF: _kA],[mn: 234538, zyt: "Demon Lord 2099", lF: _kA],[mn: 237045, zyt: "Cherry Magic!", lF: _kA],[mn: 240633, zyt: "A Journey Through Another World", lF: _kA],[mn: 245285, zyt: "Failure Frame", lF: _kA],[mn: 271026, zyt: "Taisho Era Contract Marriage", lF: _kA]];def tG = any { info.database } { id == tmdbid ? "TheMovieDB" : "IMDb" };def M_ = tG == "IMDb" ? "tt${id}" : id;def qz = n;wI.each {if (it.mn == M_ && it.lF == tG) {qz = it.zyt}};def JO = ['\\', '/', ':', '*', '?', '"', '<', '>', '|'];def Pc = qz.replaceAll(JO.collect { "\\" + it }.join('|'), '');Pc = Pc.replaceAll(/(\s|\.)*$/, '');Pc}{" ("}{y}{")"}{def tG = id == tmdbid ? "TheMovieDB" : "IMDb";def jM = ["TheMovieDB": "tmdbid","IMDb": "imdbid"];def Jc = jM[tG];def M_ = tG == "IMDb" ? "tt${id}" : id;" [${Jc}-${M_}]/"}{def IQB = ["Alqanime","BlackLuster","Kuramanime","NanDesuKa","ToonsHub","Tsundere-Raws"];def _H = IQB.find { Yfd -> fn.contains(Yfd) } ?: "";def xw = any {(fn =~ /^\[(.*?)\]/)[0][1]} {_H} {group} {""};xw ? "[$xw] " : ""}{def _kA = "TheMovieDB::TV";def wI = [[mn: 68854, zyt: "From Me to You", lF: _kA],[mn: 94904, zyt: "My Next Life as a Villainess", lF: _kA],[mn: 229743, zyt: "VTuber Legend", lF: _kA],[mn: 234538, zyt: "Demon Lord 2099", lF: _kA],[mn: 237045, zyt: "Cherry Magic!", lF: _kA],[mn: 240633, zyt: "A Journey Through Another World", lF: _kA],[mn: 245285, zyt: "Failure Frame", lF: _kA],[mn: 271026, zyt: "Taisho Era Contract Marriage", lF: _kA]];def tG = any { info.database } { id == tmdbid ? "TheMovieDB" : "IMDb" };def M_ = tG == "IMDb" ? "tt${id}" : id;def qz = n;wI.each {if (it.mn == M_ && it.lF == tG) {qz = it.zyt}};def JO = ['\\', '/', ':', '*', '?', '"', '<', '>', '|'];def Pc = qz.replaceAll(JO.collect { "\\" + it }.join('|'), '');Pc = Pc.replaceAll(/(\s|\.)*$/, '');Pc}{" ("}{y}{")"}{" ["}{def dp = [["ABEMA"],["ADN"],["BILI", "B-Global", "BiliIntl", "B-Site", "BiliCN"],["HIDIVE", "HIDI.WEB-DL"],["IQIYI", "IQ.WEB-DL"],["LAFTEL", "LFTL"],["MW.WEB-DL"],["NF.WEB-DL", "NF WEB"],["SHAHID"],["TVER"],["UNEXT"],["WETV"],["YT.WEB-DL", "YOUTUBE", "YTB"]];def hk = ["ASW", "Judas", "JRx7", "EMBER", "KawaSubs", "GuodongSubs"];def RK = ["Erai-raws", "SubsPlease"];def cU = any {(fn =~ /^\[(.*?)\]/)[0][1]} {""};def sV = any {def rE = dp.find { RrE -> RrE.find { EFx -> fn.lower().contains(EFx.lower()) } }[0];rE = rE.replace(".WEB-DL", "");rE ? "${rE}.WEB-DL" : ""} {} {source} {hk.find { Uj -> group == Uj || cU == Uj } ? "WEBRip" : ""} {def TFg = RK.find { _A -> group == _A || cU == _A} ? "WEB-DL" : "";(source == "Erai-raws" && vcf.upper() == "HEVC") ? "WEBRip" : TFg} {vs} {""};sV ? "$sV " : ""}{def tKF = bitdepth ? " ${bitdepth}bit" : "";"$resolution $vcf $tKF, $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 Ene = " Dub";def dtT = audioLanguages.any { it.ISO3B == language.ISO3B } ? "" : Ene;dtT = audioLanguages.size() == 1 && audioLanguages.any { it.ISO3B == "und" } ? "" : dtT;dtT}{def kWD = any { audioLanguages.size() } { 0 };def dtT = kWD > 2 ? " MAud" : kWD > 1 ? " DAud" : null;def dG = kWD > 5 ? audioLanguages.take(5) : audioLanguages;dtT ? dtT + dG.joining(" ", " (", "").upper() + (kWD > 5 ? " ...)" : ")") : ""}{def gT = any { textLanguages.size() } { 0 };def dtT = gT > 2 ? ", MSub" : gT > 1 ? ", DSub" : null;def dG = gT > 5 ? textLanguages.take(5) : textLanguages;dtT ? dtT + dG.joining(" ", " (", "").upper() + (gT > 5 ? " ...)" : ")") : ""}{"]["}{crc32.upper()}{"]"}{if (f.subtitle) {def sSP = ["name": "." + lang.name,"iso3b": "." + lang.ISO3B,"iso3": "." +lang.ISO3,"iso2": "." + lang.ISO2];def BX = subt;sSP.values().each { rjQ -> if (BX.contains(rjQ)) {BX = BX.replace(rjQ, "")}};sSP.iso3b + BX}}{f.image ? "-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 eo = {System.getProperty(it)};def UNm = eo("os.name").toLowerCase().contains("windows");def qW = eo("user.name");def Oa = "/run/media/${qW}";def Rp = "";def Ie = [[Hd: "Books", b_: "F:/", _t: "$Oa/Books"],[Hd: "Data", b_: "D:/", _t: "$Oa/Data"],[Hd: "Games", b_: "G:/", _t: "$Oa/Games"],[Hd: "Music", b_: "E:/", _t: "$Oa/Music"],[Hd: "Videos", b_: "H:/", _t: "$Oa/Videos"]];def Uy = (Ie.collect {it[UNm ? "b_" : "_t"] as File}.sort {first, second -> first.exists() <=> second.exists() ?: first.diskSpace <=> second.diskSpace}).last().path;def Dh = Rp ?: Uy;"$Dh/"}{"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 Nt = { System.getProperty(it) };def dv_ = Nt("os.name").toLowerCase().contains("windows");def Cn = Nt("user.name");def fZ = "/run/media/${Cn}";def WSc = dv_ ? "H:/" : "$fZ/Videos";def xo = [[CcQ: "Books", HF: "F:/", fp: "$fZ/Books"],[CcQ: "Data", HF: "D:/", fp: "$fZ/Data"],[CcQ: "Games", HF: "G:/", fp: "$fZ/Games"],[CcQ: "Music", HF: "E:/", fp: "$fZ/Music"],[CcQ: "Videos", HF: "H:/", fp: "$fZ/Videos"]];def YV = (xo.collect { it[dv_ ? "HF" : "fp"] as File }.sort { Va, EU -> Va.exists() <=> EU.exists() ?: Va.diskSpace <=> EU.diskSpace }).last();def NX = WSc ?: YV;"$NX/"}{"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.