Skip to content

Commit 959d6eb

Browse files
Compile Groovy Scripts
1 parent 8efb21d commit 959d6eb

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

compiled/movie.groovy

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{def aH = { System.getProperty(it) };def dhG = aH("os.name").toLowerCase().contains("windows");def Ip = aH("user.name");def DPq = "/run/media/${Ip}";def Ri = dhG ? "H:/" : "$DPq/Videos";def CzI = [[LY: "Books", Bvd: "F:/", gK: "$DPq/Books"],[LY: "Data", Bvd: "D:/", gK: "$DPq/Data"],[LY: "Games", Bvd: "G:/", gK: "$DPq/Games"],[LY: "Music", Bvd: "E:/", gK: "$DPq/Music"],[LY: "Videos", Bvd: "H:/", gK: "$DPq/Videos"]];def cHu = (CzI.collect { it[dhG ? "Bvd" : "gK"] as File }.sort { mL, _uH -> mL.exists() <=> _uH.exists() ?: mL.diskSpace <=> _uH.diskSpace }).last();def Ox = Ri ?: cHu;"$Ox/"}{"Videos/"}{def RSy = ["boys' love (bl)", "gay theme", "yaoi", "yuri", "lesbian", "hentai","sex", "lgbt", "explicit", "adult animation", "adult content","nudity"];def Ogj = "TheMovieDB::TV";def TNJ = [[ 74180, Ogj],[ 93821, Ogj],[ 95897, Ogj],[220118, Ogj],[271026, Ogj]];def nA = [[236530, Ogj]];def Ll = any { info.database } { id == tmdbid ? "TheMovieDB" : "IMDb" };def WLN = Ll == "IMDb" ? "tt${id}" : id;def AeO = any { info.adult } { false };def SWj = TNJ.find { it[0] == WLN && it[1] == Ll } != null;def pX = nA.find { it[0] == WLN && it[1] == Ll } != null;def na = info.Keywords.findAll { it in RSy } || SWj || AeO;na = pX ? false : na;na ? "R18+ " : ""}{def uD = ["CN", "JP", "KR", "KP", "TW", "HK"];def Fhb = ["aeni", "donghua", "anime"];def Ss = any {anime} || info.Keywords.findAll { it in Fhb } || (uD.contains(country) && genres =~ /Animation/);Ss ? "Anime Movies/" : "Movies/"}{def Ogj = "TheMovieDB::TV";def eVC = [[FY: 68854, upG: "From Me to You", lgn: Ogj],[FY: 219816, upG: "Fate Grand Order Fujimaru Ritsuka Doesn't Get It", lgn: Ogj],[FY: 245561, upG: "Okitsura", lgn: Ogj],[FY: 248707, upG: "Neko Oji The Guy That Got Reincarnated As a Cat", lgn: Ogj],[FY: 259559, upG: "Headhunted to Another World", lgn: Ogj],[FY: 261301, upG: "Botsuraku Kizoku", lgn: Ogj],[FY: 262141, upG: "Can You Keep a Secret", lgn: Ogj],[FY: 270657, upG: "Tono to Inu", lgn: Ogj],[FY: 276204, upG: "Bogus Skill Fruitmaster", lgn: Ogj]];def Ll = any { info.database } { id == tmdbid ? "TheMovieDB" : "IMDb" };def WLN = Ll == "IMDb" ? "tt${id}" : id;def RQ = n;eVC.each {if (it.FY == WLN && it.lgn == Ll) {RQ = it.upG}};def DLR = ['\\', '/', ':', '*', '?', '"', '<', '>', '|'];def Xi = RQ.replaceAll(DLR.collect { "\\" + it }.join('|'), '');Xi = Xi.replaceAll(/(\s|\.)*$/, '');Xi}{" ("}{y}{")"}{"/"}{def Vd = ["Alqanime","BlackLuster","darkflux","Kuramanime","NanDesuKa","ToonsHub","Tsundere-Raws","S1PH3R","Samehadaku"];def uKh = Vd.find { uoz -> fn.lower().contains(uoz.lower()) } ?: "";def eS = any {(fn =~ /^\[(.*?)\]/)[0][1]} {uKh} {group} {""};eS ? "[$eS] " : ""}{def Ogj = "TheMovieDB::TV";def eVC = [[FY: 68854, upG: "From Me to You", lgn: Ogj],[FY: 219816, upG: "Fate Grand Order Fujimaru Ritsuka Doesn't Get It", lgn: Ogj],[FY: 245561, upG: "Okitsura", lgn: Ogj],[FY: 248707, upG: "Neko Oji The Guy That Got Reincarnated As a Cat", lgn: Ogj],[FY: 259559, upG: "Headhunted to Another World", lgn: Ogj],[FY: 261301, upG: "Botsuraku Kizoku", lgn: Ogj],[FY: 262141, upG: "Can You Keep a Secret", lgn: Ogj],[FY: 270657, upG: "Tono to Inu", lgn: Ogj],[FY: 276204, upG: "Bogus Skill Fruitmaster", lgn: Ogj]];def Ll = any { info.database } { id == tmdbid ? "TheMovieDB" : "IMDb" };def WLN = Ll == "IMDb" ? "tt${id}" : id;def RQ = n;eVC.each {if (it.FY == WLN && it.lgn == Ll) {RQ = it.upG}};def DLR = ['\\', '/', ':', '*', '?', '"', '<', '>', '|'];def Xi = RQ.replaceAll(DLR.collect { "\\" + it }.join('|'), '');Xi = Xi.replaceAll(/(\s|\.)*$/, '');Xi}{" ("}{y}{") ["}{def CZP = [["ABEMA"],["ADN"],["BILI", "B-Global", "BiliIntl", "B-Site", "BiliCN"],["COOLMIC"],["HIDIVE", "HIDI.WEB-DL"],["IQIYI", "IQ.WEB-DL"],["JFFP"],["LAFTEL", "LFTL"],["MDON", "MANGADON"],["MW.WEB-DL"],["NF.WEB-DL", "NF WEB"],["SHAHID"],["TVER"],["UNEXT"],["WETV"],["YTB", "YT.WEB-DL", "YOUTUBE"]];def bDT = ["ASW", "Judas", "JRx7", "EMBER", "GuodongSubs", "SAMEHADAKU"];def yO = ["Erai-raws", "SubsPlease"];def cW = any {(fn =~ /^\[(.*?)\]/)[0][1]} {""};def UzW = any {def jtC = CZP.find { kb -> kb.find { hPJ -> fn.lower().contains(hPJ.lower()) } }[0];jtC = jtC.replace(".WEB-DL", "");if (fn.contains("WEBRip")) {jtC = jtC.replace(".WEBRip", "");jtC = jtC + ".WEBRip"} else {jtC = jtC + ".WEB-DL"};jtC} {source} {bDT.find { MsM -> group == MsM || cW == MsM } ? "WEBRip" : ""} {def YPo = yO.find { qU -> group == qU || cW == qU} ? "WEB-DL" : "";(source == "Erai-raws" && vcf.upper() == "HEVC") ? "WEBRip" : YPo} {vs} {""};UzW ? "$UzW " : ""}{def PH = bitdepth ? " ${bitdepth}bit" : "";"$resolution $vcf $PH, $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 Qhz = " Dub";def Tr = audioLanguages.any { it.ISO3B == language.ISO3B } ? "" : Qhz;Tr = audioLanguages.size() == 1 && audioLanguages.any { it.ISO3B == "und" } ? "" : Tr;Tr}{def Uo = any { audioLanguages.size() } { 0 };def Tr = Uo > 2 ? " MAud" : Uo > 1 ? " DAud" : null;def HWZ = Uo > 5 ? audioLanguages.take(5) : audioLanguages;Tr ? Tr + HWZ.joining(" ", " (", "").upper() + (Uo > 5 ? " ...)" : ")") : ""}{def BsJ = any { textLanguages.size() } { 0 };def Tr = BsJ > 2 ? ", MSub" : BsJ > 1 ? ", DSub" : null;def HWZ = BsJ > 5 ? textLanguages.take(5) : textLanguages;Tr ? Tr + HWZ.joining(" ", " (", "").upper() + (BsJ > 5 ? " ...)" : ")") : ""}{"]["}{crc32.upper()}{"]"}{if (f.subtitle) {def bh = ["name": "." + lang.name,"iso3b": "." + lang.ISO3B,"iso3": "." +lang.ISO3,"iso2": "." + lang.ISO2];def kQ = subt;bh.values().each { Amz -> if (kQ.contains(Amz)) {kQ = kQ.replace(Amz, "")}};bh.iso3b + kQ}}{f.image ? "-thumb" : ""}
1+
{def cs = { System.getProperty(it) };def zq = cs("os.name").toLowerCase().contains("windows");def WqO = cs("user.name");def gkn = "/run/media/${WqO}";def fh = zq ? "H:/" : "$gkn/Videos";def bop = [[SX: "Books", Xx: "F:/", ri: "$gkn/Books"],[SX: "Data", Xx: "D:/", ri: "$gkn/Data"],[SX: "Games", Xx: "G:/", ri: "$gkn/Games"],[SX: "Music", Xx: "E:/", ri: "$gkn/Music"],[SX: "Videos", Xx: "H:/", ri: "$gkn/Videos"]];def mbr = (bop.collect { it[zq ? "Xx" : "ri"] as File }.sort { WL, zjo -> WL.exists() <=> zjo.exists() ?: WL.diskSpace <=> zjo.diskSpace }).last();def TH = fh ?: mbr;"$TH/"}{"Videos/"}{def ik = ["boys' love (bl)", "gay theme", "yaoi", "yuri", "lesbian", "hentai","sex", "lgbt", "explicit", "adult animation", "adult content","nudity"];def ffN = "TheMovieDB::TV";def lt = [[ 74180, ffN],[ 93821, ffN],[ 95897, ffN],[220118, ffN],[271026, ffN]];def Ep = [[236530, ffN]];def NC = any { info.database } { id == tmdbid ? "TheMovieDB" : "IMDb" };def Mm = NC == "IMDb" ? "tt${id}" : id;def Kwk = any { info.adult } { false };def GuG = lt.find { it[0] == Mm && it[1] == NC } != null;def jz = Ep.find { it[0] == Mm && it[1] == NC } != null;def OgJ = info.Keywords.findAll { it in ik } || GuG || Kwk;OgJ = jz ? false : OgJ;OgJ ? "R18+ " : ""}{def Ua = ["CN", "JP", "KR", "KP", "TW", "HK"];def vB = ["aeni", "donghua", "anime"];def hQm = any {anime} || info.Keywords.findAll { it in vB } || (Ua.contains(country) && genres =~ /Animation/);hQm ? "Anime Movies/" : "Movies/"}{def ffN = "TheMovieDB::TV";def RKz = [[CM: 68854, xp: "From Me to You", xEb: ffN],[CM: 219816, xp: "Fate Grand Order Fujimaru Ritsuka Doesn't Get It", xEb: ffN],[CM: 245561, xp: "Okitsura", xEb: ffN],[CM: 248707, xp: "Neko Oji The Guy That Got Reincarnated As a Cat", xEb: ffN],[CM: 259559, xp: "Headhunted to Another World", xEb: ffN],[CM: 261301, xp: "Botsuraku Kizoku", xEb: ffN],[CM: 262141, xp: "Can You Keep a Secret", xEb: ffN],[CM: 270657, xp: "Tono to Inu", xEb: ffN],[CM: 276204, xp: "Bogus Skill Fruitmaster", xEb: ffN]];def NC = any { info.database } { id == tmdbid ? "TheMovieDB" : "IMDb" };def Mm = NC == "IMDb" ? "tt${id}" : id;def ypT = n;RKz.each {if (it.CM == Mm && it.xEb == NC) {ypT = it.xp}};def qtj = ['\\', '/', ':', '*', '?', '"', '<', '>', '|'];def xxq = ypT.replaceAll(qtj.collect { "\\" + it }.join('|'), '');xxq = xxq.replaceAll(/(\s|\.)*$/, '');xxq}{" ("}{y}{")"}{"/"}{def nn = ["Alqanime","BlackLuster","darkflux","Kuramanime","NanDesuKa","ToonsHub","Tsundere-Raws","S1PH3R","Samehadaku"];def bSF = nn.find { vHs -> fn.lower().contains(vHs.lower()) } ?: "";def gz = any {(fn =~ /^\[(.*?)\]/)[0][1]} {bSF} {group} {""};gz ? "[$gz] " : ""}{def ffN = "TheMovieDB::TV";def RKz = [[CM: 68854, xp: "From Me to You", xEb: ffN],[CM: 219816, xp: "Fate Grand Order Fujimaru Ritsuka Doesn't Get It", xEb: ffN],[CM: 245561, xp: "Okitsura", xEb: ffN],[CM: 248707, xp: "Neko Oji The Guy That Got Reincarnated As a Cat", xEb: ffN],[CM: 259559, xp: "Headhunted to Another World", xEb: ffN],[CM: 261301, xp: "Botsuraku Kizoku", xEb: ffN],[CM: 262141, xp: "Can You Keep a Secret", xEb: ffN],[CM: 270657, xp: "Tono to Inu", xEb: ffN],[CM: 276204, xp: "Bogus Skill Fruitmaster", xEb: ffN]];def NC = any { info.database } { id == tmdbid ? "TheMovieDB" : "IMDb" };def Mm = NC == "IMDb" ? "tt${id}" : id;def ypT = n;RKz.each {if (it.CM == Mm && it.xEb == NC) {ypT = it.xp}};def qtj = ['\\', '/', ':', '*', '?', '"', '<', '>', '|'];def xxq = ypT.replaceAll(qtj.collect { "\\" + it }.join('|'), '');xxq = xxq.replaceAll(/(\s|\.)*$/, '');xxq}{" ("}{y}{") ["}{def AGu = [["YTB", "YT.WEB-DL", "YOUTUBE"],["ABEMA"],["ADN"],["BILI", "B-Global", "BiliIntl", "B-Site", "BiliCN"],["COOLMIC"],["HIDIVE", "HIDI.WEB-DL"],["IQIYI", "IQ.WEB-DL"],["JFFP"],["LAFTEL", "LFTL"],["MDON", "MANGADON"],["MW.WEB-DL"],["NF.WEB-DL", "NF WEB"],["SHAHID"],["TVER"],["UNEXT"],["WETV"]];def YOX = ["ASW", "Judas", "JRx7", "EMBER", "GuodongSubs", "SAMEHADAKU"];def BI = ["Erai-raws", "SubsPlease"];def BM = any {(fn =~ /^\[(.*?)\]/)[0][1]} {""};def xbR = any {def SXt = AGu.find { Fh -> Fh.find { _L -> fn.lower().contains(_L.lower()) } }[0];SXt = SXt.replace(".WEB-DL", "");if (fn.contains("WEBRip")) {SXt = SXt.replace(".WEBRip", "");SXt = SXt + ".WEBRip"} else {SXt = SXt + ".WEB-DL"};SXt} {source} {YOX.find { Qc -> group == Qc || BM == Qc } ? "WEBRip" : ""} {def xXN = BI.find { EIN -> group == EIN || BM == EIN} ? "WEB-DL" : "";(source == "Erai-raws" && vcf.upper() == "HEVC") ? "WEBRip" : xXN} {vs} {""};xbR ? "$xbR " : ""}{def mp = bitdepth ? " ${bitdepth}bit" : "";"$resolution $vcf $mp, $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 _m = " Dub";def KNe = audioLanguages.any { it.ISO3B == language.ISO3B } ? "" : _m;KNe = audioLanguages.size() == 1 && audioLanguages.any { it.ISO3B == "und" } ? "" : KNe;KNe}{def eG = any { audioLanguages.size() } { 0 };def KNe = eG > 2 ? " MAud" : eG > 1 ? " DAud" : null;def _J = eG > 5 ? audioLanguages.take(5) : audioLanguages;KNe ? KNe + _J.joining(" ", " (", "").upper() + (eG > 5 ? " ...)" : ")") : ""}{def sSR = any { textLanguages.size() } { 0 };def KNe = sSR > 2 ? ", MSub" : sSR > 1 ? ", DSub" : null;def _J = sSR > 5 ? textLanguages.take(5) : textLanguages;KNe ? KNe + _J.joining(" ", " (", "").upper() + (sSR > 5 ? " ...)" : ")") : ""}{"]["}{crc32.upper()}{"]"}{if (f.subtitle) {def ZZw = ["name": "." + lang.name,"iso3b": "." + lang.ISO3B,"iso3": "." +lang.ISO3,"iso2": "." + lang.ISO2];def Xz = subt;ZZw.values().each { qt -> if (Xz.contains(qt)) {Xz = Xz.replace(qt, "")}};ZZw.iso3b + Xz}}{f.image ? "-thumb" : ""}

compiled/music_shared.groovy

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{def ySD = { System.getProperty(it) };def wN = ySD("os.name").toLowerCase().contains("windows");def Xc = ySD("user.name");def rKa = "/run/media/${Xc}";def viZ = wN ? "H:/" : "$rKa/Videos";def XA = [[VG: "Books", NC: "F:/", UF_: "$rKa/Books"],[VG: "Data", NC: "D:/", UF_: "$rKa/Data"],[VG: "Games", NC: "G:/", UF_: "$rKa/Games"],[VG: "Music", NC: "E:/", UF_: "$rKa/Music"],[VG: "Videos", NC: "H:/", UF_: "$rKa/Videos"]];def Xaq = (XA.collect { it[wN ? "NC" : "UF_"] as File }.sort { vuy, jXK -> vuy.exists() <=> jXK.exists() ?: vuy.diskSpace <=> jXK.diskSpace }).last();def kq = viZ ?: Xaq;"$kq/"}{"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}
1+
{def uGW = { System.getProperty(it) };def abI = uGW("os.name").toLowerCase().contains("windows");def rKz = uGW("user.name");def Y_S = "/run/media/${rKz}";def miR = abI ? "H:/" : "$Y_S/Videos";def MLa = [[yJ: "Books", _xN: "F:/", hl: "$Y_S/Books"],[yJ: "Data", _xN: "D:/", hl: "$Y_S/Data"],[yJ: "Games", _xN: "G:/", hl: "$Y_S/Games"],[yJ: "Music", _xN: "E:/", hl: "$Y_S/Music"],[yJ: "Videos", _xN: "H:/", hl: "$Y_S/Videos"]];def YdE = (MLa.collect { it[abI ? "_xN" : "hl"] as File }.sort { gT, YzP -> gT.exists() <=> YzP.exists() ?: gT.diskSpace <=> YzP.diskSpace }).last();def yni = miR ?: YdE;"$yni/"}{"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}

0 commit comments

Comments
 (0)