Skip to content

Commit 98a31cf

Browse files
Compile Groovy Scripts
1 parent ef493e2 commit 98a31cf

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

compiled/movie.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{def Fg = { System.getProperty(it) };def _He = Fg("os.name").toLowerCase().contains("windows");def _b = Fg("user.name");def Ep = "/run/media/${_b}";def kKj = _He ? "H:/" : "$Ep/Videos";def IPx = [[rR: "Books", DM: "F:/", Cc: "$Ep/Books"],[rR: "Data", DM: "D:/", Cc: "$Ep/Data"],[rR: "Games", DM: "G:/", Cc: "$Ep/Games"],[rR: "Music", DM: "E:/", Cc: "$Ep/Music"],[rR: "Videos", DM: "H:/", Cc: "$Ep/Videos"]];def ta = (IPx.collect { it[_He ? "DM" : "Cc"] as File }.sort { Pg, vU -> Pg.exists() <=> vU.exists() ?: Pg.diskSpace <=> vU.diskSpace }).last();def XgX = kKj ?: ta;"$XgX/"}{"Videos/"}{def vml = ["boys' love (bl)", "gay theme", "yaoi", "yuri", "lesbian", "hentai","sex", "lgbt", "explicit", "adult animation", "adult content","nudity", "animefesta"];def rC = "TheMovieDB::TV";def vdK = [[ 74180, rC],[ 93821, rC],[ 95897, rC],[220118, rC],[249891, rC],[271026, rC],[288577, rC]];def Sl = [[236530, rC]];def z_ = any { info.database } { id == tmdbid ? "TheMovieDB" : "IMDb" };def RXi = z_ == "IMDb" ? "tt${id}" : id;def zt = any { info.adult } { false };def mUc = vdK.find { it[0] == RXi && it[1] == z_ } != null;def ij = Sl.find { it[0] == RXi && it[1] == z_ } != null;def ODm = info.Keywords.findAll { it in vml } || mUc || zt;ODm = ij ? false : ODm;ODm ? "R18+ " : ""}{def lcf = ["CN", "JP", "KR", "KP", "TW", "HK"];def Kd = ["aeni", "donghua", "anime"];def xBO = any {anime} || info.Keywords.findAll { it in Kd } || (lcf.contains(country) && genres =~ /Animation/);xBO ? "Anime Movies/" : "Movies/"}{def rC = "TheMovieDB::TV";def pR = [[oH: 136342, yI: "Disney Twisted-Wonderland", WTb: rC],[oH: 262453, yI: "The Fated Magical Princess", WTb: rC],[oH: 270660, yI: "Pochars", WTb: rC],[oH: 280405, yI: "Fudanshi Shoukan", WTb: rC],[oH: 281161, yI: "Noble Reincarnation", WTb: rC],[oH: 285260, yI: "Kaijyu Sekai Seifuku", WTb: rC],[oH: 287704, yI: "Muzik Tiger In the Forest", WTb: rC],[oH: 295366, yI: "Yuukawa", WTb: rC],[oH: 295625, yI: "Marie Antoinette ni Tensei Shita", WTb: rC],[oH: 296047, yI: "Shuukan Ranobe Anime", WTb: rC],[oH: 302169, yI: "Anila and Cocora", WTb: rC]];def z_ = any { info.database } { id == tmdbid ? "TheMovieDB" : "IMDb" };def RXi = z_ == "IMDb" ? "tt${id}" : id;def Hz = n;pR.each {if (it.oH == RXi && it.WTb == z_) {Hz = it.yI}};def PJ = ['\\', '/', ':', '*', '?', '"', '<', '>', '|'];def sO = Hz.replaceAll(PJ.collect { "\\" + it }.join('|'), '');sO = sO.replaceAll(/(\s|\.)*$/, '');sO}{" ("}{y}{")"}{"/"}{def mOe = ["AkiraRIPS","Alqanime","BlackLuster","darkflux","It's Anime","Kuramanime","NanDesuKa","ToonsHub","Tsundere-Raws","S1PH3R","Samehadaku"];def Lzw = mOe.find { zT -> fn.lower().contains(zT.lower()) } ?: "";def zy = any {Lzw} {(fn =~ /^\[(.*?)\]/)[0][1]} {group} {""};zy ? "[$zy] " : ""}{def rC = "TheMovieDB::TV";def pR = [[oH: 136342, yI: "Disney Twisted-Wonderland", WTb: rC],[oH: 262453, yI: "The Fated Magical Princess", WTb: rC],[oH: 270660, yI: "Pochars", WTb: rC],[oH: 280405, yI: "Fudanshi Shoukan", WTb: rC],[oH: 281161, yI: "Noble Reincarnation", WTb: rC],[oH: 285260, yI: "Kaijyu Sekai Seifuku", WTb: rC],[oH: 287704, yI: "Muzik Tiger In the Forest", WTb: rC],[oH: 295366, yI: "Yuukawa", WTb: rC],[oH: 295625, yI: "Marie Antoinette ni Tensei Shita", WTb: rC],[oH: 296047, yI: "Shuukan Ranobe Anime", WTb: rC],[oH: 302169, yI: "Anila and Cocora", WTb: rC]];def z_ = any { info.database } { id == tmdbid ? "TheMovieDB" : "IMDb" };def RXi = z_ == "IMDb" ? "tt${id}" : id;def Hz = n;pR.each {if (it.oH == RXi && it.WTb == z_) {Hz = it.yI}};def PJ = ['\\', '/', ':', '*', '?', '"', '<', '>', '|'];def sO = Hz.replaceAll(PJ.collect { "\\" + it }.join('|'), '');sO = sO.replaceAll(/(\s|\.)*$/, '');sO}{" ("}{y}{") ["}{def cOh = [["YTB", "YT.WEB-DL", "YOUTUBE"],["ABEMA", "ABEMATV"],["ADN"],["BILI", "B-Global", "BiliIntl"],["BSITE", "BILICN"],["BUMP"],["CMIC", "COOLMIC"],["CTHP"],["FOD"],["HIDIVE", "HIDI.WEB-DL"],["IQIYI", "IQ.WEB-DL"],["JFFP"],["LFTL", "LAFTEL"],["MDON", "MANGADON"],["MW.WEB-DL"],["NBLA.WEB-DL", "Nebula"],["NF.WEB-DL", "NF WEB"],["OVEIL", "OV.WEB-DL", "OceanVeil"],["SHAHID"],["TVER"],["UNEXT"],["VIDIO"],["VIU"],["WETV"],["INSTA", "INSTAGRAM"],["ANIMENOTANE"],["TWTR"]];def NeG = ["ASW", "Judas", "JRx7", "EMBER", "GuodongSubs", "SAMEHADAKU", "Kusonime"];def UUN = ["DB"];def kOk = ["Ruri-Saizen"];def WKE = ["Erai-raws", "SubsPlease"];def dm = any {(fn =~ /^\[(.*?)\]/)[0][1]} {""};def QZJ = any {def FfQ = cOh.find { gIO -> gIO.find { Pcw -> fn.lower().contains(Pcw.lower()) } }[0];FfQ = FfQ.replace(".WEB-DL", "");if (fn.contains("WEBRip")) {FfQ = FfQ.replace(".WEBRip", "");FfQ = FfQ + ".WEBRip"} else {FfQ = FfQ + ".WEB-DL"};FfQ} {source} {NeG.find { oM -> group == oM || dm == oM } ? "WEBRip" : ""} {UUN.find { oM -> group == oM || dm == oM } ? "BDRip" : ""} {kOk.find { oM -> group == oM || dm == oM } ? "HDTVRip" : ""} {def Yst = WKE.find { SUV -> group == SUV || dm == SUV} ? "WEB-DL" : "";(source == "Erai-raws" && vcf.upper() == "HEVC") ? "WEBRip" : Yst} {vs} {""};QZJ ? "$QZJ " : ""}{def mlF = bitdepth ? " ${bitdepth}bit" : "";"$resolution $vcf $mlF, $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 mj = any { audioLanguages.size() } { 0 };def qY = mj > 2 ? " MULTi-AUD" : mj > 1 ? " DUAL-AUD" : "";def zi = mj > 5 ? audioLanguages.take(5) : audioLanguages;def Eo = audioLanguages.any { it.ISO3B == language.ISO3B } ? "" : " DUBBED";qY = mj == 1 && audioLanguages.any { it.ISO3B == "und" } ? "" : "$qY$Eo";qY}{def DJ = text.language.collect {['zh-Hans': 'ZH-S','zh-Hant': 'ZH-T','ar-001': 'AR-MSA'].get(it,it).toUpperCase()}.unique();def aHA = any { DJ.size() } { 0 };def qY = aHA > 2 ? ", MULTi" : aHA > 1 ? ", DUAL" : aHA == 1 ? ", SUB" : null;qY}{"]["}{crc32.upper()}{"]"}{if (f.subtitle) {def YcQ = ["name": "." + lang.name,"iso3b": "." + lang.ISO3B,"iso3": "." +lang.ISO3,"iso2": "." + lang.ISO2];def pRt = subt;YcQ.values().each { sWk -> if (pRt.contains(sWk)) {pRt = pRt.replace(sWk, "")}};YcQ.iso3b + pRt}}{f.image ? "-thumb" : ""}
1+
{def JN = { System.getProperty(it) };def Gj = JN("os.name").toLowerCase().contains("windows");def HrX = JN("user.name");def enV = "/run/media/${HrX}";def yA = Gj ? "H:/" : "$enV/Videos";def Qyi = [[VyT: "Books", GH: "F:/", YKW: "$enV/Books"],[VyT: "Data", GH: "D:/", YKW: "$enV/Data"],[VyT: "Games", GH: "G:/", YKW: "$enV/Games"],[VyT: "Music", GH: "E:/", YKW: "$enV/Music"],[VyT: "Videos", GH: "H:/", YKW: "$enV/Videos"]];def Ay = (Qyi.collect { it[Gj ? "GH" : "YKW"] as File }.sort { CQx, kcz -> CQx.exists() <=> kcz.exists() ?: CQx.diskSpace <=> kcz.diskSpace }).last();def lAv = yA ?: Ay;"$lAv/"}{"Videos/"}{def VY = ["boys' love (bl)", "gay theme", "yaoi", "yuri", "lesbian", "hentai","sex", "lgbt", "explicit", "adult animation", "adult content","nudity", "animefesta"];def opQ = "TheMovieDB::TV";def VA = [[ 74180, opQ],[ 93821, opQ],[ 95897, opQ],[220118, opQ],[249891, opQ],[271026, opQ],[288577, opQ]];def NY = [[236530, opQ]];def SeD = any { info.database } { id == tmdbid ? "TheMovieDB" : "IMDb" };def NI = SeD == "IMDb" ? "tt${id}" : id;def da = any { info.adult } { false };def hN = VA.find { it[0] == NI && it[1] == SeD } != null;def ho = NY.find { it[0] == NI && it[1] == SeD } != null;def ppq = info.Keywords.findAll { it in VY } || hN || da;ppq = ho ? false : ppq;ppq ? "R18+ " : ""}{def ml = ["CN", "JP", "KR", "KP", "TW", "HK"];def zV = ["aeni", "donghua", "anime"];def VQ = any {anime} || info.Keywords.findAll { it in zV } || (ml.contains(country) && genres =~ /Animation/);VQ ? "Anime Movies/" : "Movies/"}{def opQ = "TheMovieDB::TV";def pK = [[Ca: 136342, bP_: "Disney Twisted-Wonderland", qff: opQ],[Ca: 262453, bP_: "The Fated Magical Princess", qff: opQ],[Ca: 270660, bP_: "Pochars", qff: opQ],[Ca: 280405, bP_: "Fudanshi Shoukan", qff: opQ],[Ca: 281161, bP_: "Noble Reincarnation", qff: opQ],[Ca: 285260, bP_: "Kaijyu Sekai Seifuku", qff: opQ],[Ca: 287704, bP_: "Muzik Tiger In the Forest", qff: opQ],[Ca: 295366, bP_: "Yuukawa", qff: opQ],[Ca: 295625, bP_: "Marie Antoinette ni Tensei Shita", qff: opQ],[Ca: 296047, bP_: "Shuukan Ranobe Anime", qff: opQ],[Ca: 302169, bP_: "Anila and Cocora", qff: opQ]];def SeD = any { info.database } { id == tmdbid ? "TheMovieDB" : "IMDb" };def NI = SeD == "IMDb" ? "tt${id}" : id;def xv = n;pK.each {if (it.Ca == NI && it.qff == SeD) {xv = it.bP_}};def Rou = ['\\', '/', ':', '*', '?', '"', '<', '>', '|'];def NLj = xv.replaceAll(Rou.collect { "\\" + it }.join('|'), '');NLj = NLj.replaceAll(/(\s|\.)*$/, '');NLj}{" ("}{y}{")"}{"/"}{def vb = ["AkiraRIPS","Alqanime","BlackLuster","darkflux","It's Anime","Kuramanime","NanDesuKa","ToonsHub","Tsundere-Raws","S1PH3R","Samehadaku"];def Uz = vb.find { duk -> fn.lower().contains(duk.lower()) } ?: "";def GDk = any {Uz} {(fn =~ /^\[(.*?)\]/)[0][1]} {group} {""};GDk ? "[$GDk] " : ""}{def opQ = "TheMovieDB::TV";def pK = [[Ca: 136342, bP_: "Disney Twisted-Wonderland", qff: opQ],[Ca: 262453, bP_: "The Fated Magical Princess", qff: opQ],[Ca: 270660, bP_: "Pochars", qff: opQ],[Ca: 280405, bP_: "Fudanshi Shoukan", qff: opQ],[Ca: 281161, bP_: "Noble Reincarnation", qff: opQ],[Ca: 285260, bP_: "Kaijyu Sekai Seifuku", qff: opQ],[Ca: 287704, bP_: "Muzik Tiger In the Forest", qff: opQ],[Ca: 295366, bP_: "Yuukawa", qff: opQ],[Ca: 295625, bP_: "Marie Antoinette ni Tensei Shita", qff: opQ],[Ca: 296047, bP_: "Shuukan Ranobe Anime", qff: opQ],[Ca: 302169, bP_: "Anila and Cocora", qff: opQ]];def SeD = any { info.database } { id == tmdbid ? "TheMovieDB" : "IMDb" };def NI = SeD == "IMDb" ? "tt${id}" : id;def xv = n;pK.each {if (it.Ca == NI && it.qff == SeD) {xv = it.bP_}};def Rou = ['\\', '/', ':', '*', '?', '"', '<', '>', '|'];def NLj = xv.replaceAll(Rou.collect { "\\" + it }.join('|'), '');NLj = NLj.replaceAll(/(\s|\.)*$/, '');NLj}{" ("}{y}{") ["}{def LwZ = [["YTB", "YT.WEB-DL", "YOUTUBE"],["ABEMA", "ABEMATV"],["ADN"],["BILI", "B-Global", "BiliIntl"],["BSITE", "BILICN"],["BUMP"],["CMIC", "COOLMIC"],["CTHP"],["FOD"],["HIDIVE", "HIDI.WEB-DL"],["IQIYI", "IQ.WEB-DL"],["JFFP"],["LFTL", "LAFTEL"],["MDON", "MANGADON"],["MW.WEB-DL"],["NBLA.WEB-DL", "Nebula"],["NF.WEB-DL", "NF WEB"],["OVEIL", "OV.WEB-DL", "OceanVeil"],["SHAHID"],["TVER"],["UNEXT"],["VIDIO"],["VIU"],["WETV"],["INSTA", "INSTAGRAM"],["ANIMENOTANE"],["TWTR"]];def cZc = ["ASW", "Judas", "JRx7", "EMBER", "GuodongSubs", "SAMEHADAKU", "Kusonime"];def hkz = ["DB"];def jw = ["Ruri-Saizen"];def MCb = ["Erai-raws", "SubsPlease"];def fI = any {(fn =~ /^\[(.*?)\]/)[0][1]} {""};def rV = any {def iE = LwZ.find { Bv -> Bv.find { xL -> fn.lower().contains(xL.lower()) } }[0];iE = iE.replace(".WEB-DL", "");if (fn.contains("WEBRip")) {iE = iE.replace(".WEBRip", "");iE = iE + ".WEBRip"} else {iE = iE + ".WEB-DL"};iE} {source} {cZc.find { xXe -> group == xXe || fI == xXe } ? "WEBRip" : ""} {hkz.find { xXe -> group == xXe || fI == xXe } ? "BDRip" : ""} {jw.find { xXe -> group == xXe || fI == xXe } ? "HDTVRip" : ""} {def KEx = MCb.find { yJ -> group == yJ || fI == yJ} ? "WEB-DL" : "";(source == "Erai-raws" && vcf.upper() == "HEVC") ? "WEBRip" : KEx} {vs} {""};rV ? "$rV " : ""}{def Ne = bitdepth ? " ${bitdepth}bit" : "";"$resolution $vcf $Ne, $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 bNA = any { audioLanguages.size() } { 0 };def _KT = bNA > 2 ? " MULTi-AUD" : bNA > 1 ? " DUAL-AUD" : "";def zW = bNA > 5 ? audioLanguages.take(5) : audioLanguages;def VvY = audioLanguages.any { it.ISO3B == language.ISO3B } ? "" : " DUBBED";_KT = bNA == 1 && audioLanguages.any { it.ISO3B == "und" } ? "" : "$_KT$VvY";_KT}{def Vj = text.language.collect {['zh-Hans': 'ZH-S','zh-Hant': 'ZH-T','ar-001': 'AR-MSA'].get(it,it).toUpperCase()}.unique();def fsK = any { Vj.size() } { 0 };def _KT = fsK > 2 ? ", MULTi" : fsK > 1 ? ", DUAL" : fsK == 1 ? ", SUB" : null;_KT}{"]["}{crc32.upper()}{"]"}{if (f.subtitle) {def OK = ["name": "." + lang.name,"iso3b": "." + lang.ISO3B,"iso3": "." +lang.ISO3,"iso2": "." + lang.ISO2];def nV = subt;OK.values().each { Gqh -> if (nV.contains(Gqh)) {nV = nV.replace(Gqh, "")}};OK.iso3b + nV}}{f.image ? "-thumb" : ""}

compiled/music_shared.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{def KL = { System.getProperty(it) };def tx = KL("os.name").toLowerCase().contains("windows");def sFh = KL("user.name");def Zw = "/run/media/${sFh}";def znS = tx ? "H:/" : "$Zw/Videos";def HkH = [[qc: "Books", Ndw: "F:/", Po: "$Zw/Books"],[qc: "Data", Ndw: "D:/", Po: "$Zw/Data"],[qc: "Games", Ndw: "G:/", Po: "$Zw/Games"],[qc: "Music", Ndw: "E:/", Po: "$Zw/Music"],[qc: "Videos", Ndw: "H:/", Po: "$Zw/Videos"]];def Tp = (HkH.collect { it[tx ? "Ndw" : "Po"] as File }.sort { BB, PMR -> BB.exists() <=> PMR.exists() ?: BB.diskSpace <=> PMR.diskSpace }).last();def MZ = znS ?: Tp;"$MZ/"}{"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 Ev = { System.getProperty(it) };def ms = Ev("os.name").toLowerCase().contains("windows");def qS = Ev("user.name");def XqR = "/run/media/${qS}";def Ain = ms ? "H:/" : "$XqR/Videos";def UVM = [[xeG: "Books", lWG: "F:/", PwW: "$XqR/Books"],[xeG: "Data", lWG: "D:/", PwW: "$XqR/Data"],[xeG: "Games", lWG: "G:/", PwW: "$XqR/Games"],[xeG: "Music", lWG: "E:/", PwW: "$XqR/Music"],[xeG: "Videos", lWG: "H:/", PwW: "$XqR/Videos"]];def Aqg = (UVM.collect { it[ms ? "lWG" : "PwW"] as File }.sort { rMf, Hon -> rMf.exists() <=> Hon.exists() ?: rMf.diskSpace <=> Hon.diskSpace }).last();def tGj = Ain ?: Aqg;"$tGj/"}{"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)