Skip to content

Commit

Permalink
Compile Groovy Scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Dec 7, 2024
1 parent 121d0a3 commit a3ff119
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion compiled/posix_movie.groovy
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{def tJ = System.getProperty("user.name");def mOJ = "/run/media/${tJ}";def KAJ = "$mOJ/Videos";def qJu = [home,"$mOJ/Data","$mOJ/Music","$mOJ/Videos","$mOJ/Games","$mOJ/Books"].collect { it as File }.sort { Aqo, Plg -> Aqo.exists() <=> Plg.exists() ?: Aqo.diskSpace <=> Plg.diskSpace }.last();def vP = KAJ ? KAJ : qJu;"$vP/"}{"Videos/"}{def jKb = ["boys' love (bl)", "gay theme", "yaoi", "yuri", "lesbian", "hentai","hentai", "sex", "lgbt", "explicit", "adult animation", "adult content"];def GZW = "TheMovieDB::TV";def cu = [[271026, GZW],[220118, GZW]];def rCE = [[236530, GZW]];def NG = any { info.database } { "IMDb" };def FgU = NG == "IMDb" ? "tt${id}" : id;def Tij = any { info.adult } { false };def ByE = cu.find { it[0] == FgU && it[1] == NG } != null;def ttx = rCE.find { it[0] == FgU && it[1] == NG } != null;def hq = info.Keywords.findAll { it in jKb } || ByE || Tij;hq = ttx ? false : hq;hq ? "R18+ " : ""}{def Lu = ["CN", "JP", "KR", "KP", "TW", "HK"];def zcq = ["aeni", "donghua", "anime"];def BZ = any {anime} || info.Keywords.findAll { it in zcq } || (Lu.contains(country) && genres =~ /Animation/);BZ ? "Anime Movies/" : "Movies/"}{def GZW = "TheMovieDB::TV";def ZLh = [[YeM: 68854, b_: "From Me to You", LtK: GZW],[YeM: 229743, b_: "VTuber Legend", LtK: GZW],[YeM: 234538, b_: "Demon Lord 2099", LtK: GZW],[YeM: 237045, b_: "Cherry Magic!", LtK: GZW],[YeM: 240633, b_: "A Journey Through Another World", LtK: GZW],[YeM: 245285, b_: "Failure Frame", LtK: GZW],[YeM: 271026, b_: "Taisho Era Contract Marriage", LtK: GZW]];def NG = any { info.database } { "IMDb" };def FgU = NG == "IMDb" ? "tt${id}" : id;def QY = n;ZLh.each {if (it.YeM == FgU && it.LtK == NG) {QY = it.b_}};def hO = ['\\', '/', ':', '*', '?', '"', '<', '>', '|'];def elG = QY.replaceAll(hO.collect { "\\" + it }.join('|'), '');elG = elG.replaceAll(/(\s|\.)*$/, '');elG}{" ("}{y}{")"}{def NG = any { info.database } { "IMDb" };def Nnj = ["TheMovieDB": "tmdbid","TheTVDB::Movie": "tvdbid","IMDb": "imdbid"];def zLS = Nnj[NG];def FgU = NG == "IMDb" ? "tt${id}" : id;" [${zLS}-${FgU}]/"}{def Uk = ["Alqanime","BlackLuster","NanDesuKa","ToonsHub","Tsundere-Raws"];def qqz = Uk.find { Ds -> fn.contains(Ds) } ?: "";def tY = any {(fn =~ /^\[(.*?)\]/)[0][1]} {qqz} {group} {""};tY ? "[$tY] " : ""}{def GZW = "TheMovieDB::TV";def ZLh = [[YeM: 68854, b_: "From Me to You", LtK: GZW],[YeM: 229743, b_: "VTuber Legend", LtK: GZW],[YeM: 234538, b_: "Demon Lord 2099", LtK: GZW],[YeM: 237045, b_: "Cherry Magic!", LtK: GZW],[YeM: 240633, b_: "A Journey Through Another World", LtK: GZW],[YeM: 245285, b_: "Failure Frame", LtK: GZW],[YeM: 271026, b_: "Taisho Era Contract Marriage", LtK: GZW]];def NG = any { info.database } { "IMDb" };def FgU = NG == "IMDb" ? "tt${id}" : id;def QY = n;ZLh.each {if (it.YeM == FgU && it.LtK == NG) {QY = it.b_}};def hO = ['\\', '/', ':', '*', '?', '"', '<', '>', '|'];def elG = QY.replaceAll(hO.collect { "\\" + it }.join('|'), '');elG = elG.replaceAll(/(\s|\.)*$/, '');elG}{" ("}{y}{")"}{" ["}{def j_q = [[iE: "ABEMA", GpJ: ["ABEMA"]],[iE: "Bilibili.tv", GpJ: ["B-Global", "BiliIntl", "BILI"]],[iE: "Hulu", GpJ: ["HULU"]],[iE: "MeWatch", GpJ: ["MW.WEB-DL"]],[iE: "Netflix", GpJ: ["NF.WEB-DL", "NF WEB"]],[iE: "Prime Video", GpJ: ["AMZN"]],[iE: "TVer", GpJ: ["TVER"]],[iE: "Shahid", GpJ: ["SHAHID"]],[iE: "U-NEXT", GpJ: ["UNEXT"]],[iE: "YouTube", GpJ: ["YT.WEB-DL", "YOUTUBE", "YTB"]]];def Xs = ["ASW", "Judas", "JRx7", "EMBER", "KawaSubs", "GuodongSubs"];def yvI = ["Erai-raws", "SubsPlease"];def JC = any {(fn =~ /^\[(.*?)\]/)[0][1]} {""};def kDh = any {def Wwu = j_q.find { vAw -> vAw.GpJ.find { rk -> fn.contains(rk) } }?.GpJ.first() ?: "";Wwu = Wwu.replace(".WEB-DL", "");Wwu ? "${Wwu}.WEB-DL" : ""} {source} {Xs.find { VB -> group == VB || JC == VB } ? "WEBRip" : ""} {def lOQ = yvI.find { egW -> group == egW || JC == egW} ? "WEB-DL" : "";(source == "Erai-raws" && vcf.upper() == "HEVC") ? "WEBRip" : lOQ} {vs} {""};kDh ? "$kDh " : ""}{def xVH = bitdepth ? " ${bitdepth}bit" : "";"$resolution $vcf $xVH, $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 Pb = " Dub";def tIa = audioLanguages.any { it.ISO3B == language.ISO3B } ? "" : Pb;tIa = audioLanguages.size() == 1 && audioLanguages.any { it.ISO3B == "und" } ? "" : tIa;tIa}{def tp = any { audioLanguages.size() } { 0 };def tIa = tp > 2 ? " MAud" : tp > 1 ? " DAud" : null;def Om = tp > 5 ? audioLanguages.take(5) : audioLanguages;tIa ? tIa + Om.joining(" ", " (", "").upper() + (tp > 5 ? " ...)" : ")") : ""}{def AF = any { textLanguages.size() } { 0 };def tIa = AF > 2 ? ", MSub" : AF > 1 ? ", DSub" : null;def Om = AF > 5 ? textLanguages.take(5) : textLanguages;tIa ? tIa + Om.joining(" ", " (", "").upper() + (AF > 5 ? " ...)" : ")") : ""}{"]["}{crc32.upper()}{"]"}{def uxw = ["ass", "srt", "ssa", "vtt", "ttml"];def xCm = ["name": "." + lang.name,"iso3b": "." + lang.ISO3B,"iso3": "." +lang.ISO3,"iso2": "." + lang.ISO2];def DE_ = subt;xCm.values().each { fmV -> if (DE_.contains(fmV)) {DE_ = DE_.replace(fmV, "")}};uxw.contains(ext) ? xCm.iso3b + DE_ : ""}{def uxw = ["jpg", "jpeg", "png", "bmp"];uxw.contains(ext) ? "-thumb" : ""}
{def JH = System.getProperty("user.name");def FP = "/run/media/${JH}";def ZA = "$FP/Videos";def YUC = [home,"$FP/Data","$FP/Music","$FP/Videos","$FP/Games","$FP/Books"].collect { it as File }.sort { Ow, Nqa -> Ow.exists() <=> Nqa.exists() ?: Ow.diskSpace <=> Nqa.diskSpace }.last();def pVt = ZA ? ZA : YUC;"$pVt/"}{"Videos/"}{def UY = ["boys' love (bl)", "gay theme", "yaoi", "yuri", "lesbian", "hentai","sex", "lgbt", "explicit", "adult animation", "adult content"];def cqz = "TheMovieDB::TV";def ioT = [[271026, cqz],[220118, cqz],[ 74180, cqz]];def If = [[236530, cqz]];def mLD = any { info.database } { "IMDb" };def qN = mLD == "IMDb" ? "tt${id}" : id;def ASD = any { info.adult } { false };def eRo = ioT.find { it[0] == qN && it[1] == mLD } != null;def NVH = If.find { it[0] == qN && it[1] == mLD } != null;def Aw = info.Keywords.findAll { it in UY } || eRo || ASD;Aw = NVH ? false : Aw;Aw ? "R18+ " : ""}{def MEi = ["CN", "JP", "KR", "KP", "TW", "HK"];def AUG = ["aeni", "donghua", "anime"];def OAB = any {anime} || info.Keywords.findAll { it in AUG } || (MEi.contains(country) && genres =~ /Animation/);OAB ? "Anime Movies/" : "Movies/"}{def cqz = "TheMovieDB::TV";def bc = [[cTn: 68854, iBr: "From Me to You", qO: cqz],[cTn: 229743, iBr: "VTuber Legend", qO: cqz],[cTn: 234538, iBr: "Demon Lord 2099", qO: cqz],[cTn: 237045, iBr: "Cherry Magic!", qO: cqz],[cTn: 240633, iBr: "A Journey Through Another World", qO: cqz],[cTn: 245285, iBr: "Failure Frame", qO: cqz],[cTn: 271026, iBr: "Taisho Era Contract Marriage", qO: cqz]];def mLD = any { info.database } { "IMDb" };def qN = mLD == "IMDb" ? "tt${id}" : id;def hQ = n;bc.each {if (it.cTn == qN && it.qO == mLD) {hQ = it.iBr}};def NV = ['\\', '/', ':', '*', '?', '"', '<', '>', '|'];def mdZ = hQ.replaceAll(NV.collect { "\\" + it }.join('|'), '');mdZ = mdZ.replaceAll(/(\s|\.)*$/, '');mdZ}{" ("}{y}{")"}{def mLD = any { info.database } { "IMDb" };def LA = ["TheMovieDB": "tmdbid","TheTVDB::Movie": "tvdbid","IMDb": "imdbid"];def yrG = LA[mLD];def qN = mLD == "IMDb" ? "tt${id}" : id;" [${yrG}-${qN}]/"}{def iAe = ["Alqanime","BlackLuster","NanDesuKa","ToonsHub","Tsundere-Raws"];def PX = iAe.find { zY -> fn.contains(zY) } ?: "";def et = any {(fn =~ /^\[(.*?)\]/)[0][1]} {PX} {group} {""};et ? "[$et] " : ""}{def cqz = "TheMovieDB::TV";def bc = [[cTn: 68854, iBr: "From Me to You", qO: cqz],[cTn: 229743, iBr: "VTuber Legend", qO: cqz],[cTn: 234538, iBr: "Demon Lord 2099", qO: cqz],[cTn: 237045, iBr: "Cherry Magic!", qO: cqz],[cTn: 240633, iBr: "A Journey Through Another World", qO: cqz],[cTn: 245285, iBr: "Failure Frame", qO: cqz],[cTn: 271026, iBr: "Taisho Era Contract Marriage", qO: cqz]];def mLD = any { info.database } { "IMDb" };def qN = mLD == "IMDb" ? "tt${id}" : id;def hQ = n;bc.each {if (it.cTn == qN && it.qO == mLD) {hQ = it.iBr}};def NV = ['\\', '/', ':', '*', '?', '"', '<', '>', '|'];def mdZ = hQ.replaceAll(NV.collect { "\\" + it }.join('|'), '');mdZ = mdZ.replaceAll(/(\s|\.)*$/, '');mdZ}{" ("}{y}{")"}{" ["}{def OD = [[vrK: "ABEMA", Lb: ["ABEMA"]],[vrK: "Bilibili.tv", Lb: ["B-Global", "BiliIntl", "BILI"]],[vrK: "Hulu", Lb: ["HULU"]],[vrK: "MeWatch", Lb: ["MW.WEB-DL"]],[vrK: "Netflix", Lb: ["NF.WEB-DL", "NF WEB"]],[vrK: "Prime Video", Lb: ["AMZN"]],[vrK: "TVer", Lb: ["TVER"]],[vrK: "Shahid", Lb: ["SHAHID"]],[vrK: "U-NEXT", Lb: ["UNEXT"]],[vrK: "YouTube", Lb: ["YT.WEB-DL", "YOUTUBE", "YTB"]]];def vn = ["ASW", "Judas", "JRx7", "EMBER", "KawaSubs", "GuodongSubs"];def rOd = ["Erai-raws", "SubsPlease"];def HUZ = any {(fn =~ /^\[(.*?)\]/)[0][1]} {""};def pb = any {def eK = OD.find { eQs -> eQs.Lb.find { aY -> fn.contains(aY) } }?.Lb.first() ?: "";eK = eK.replace(".WEB-DL", "");eK ? "${eK}.WEB-DL" : ""} {source} {vn.find { AB -> group == AB || HUZ == AB } ? "WEBRip" : ""} {def fvV = rOd.find { IR -> group == IR || HUZ == IR} ? "WEB-DL" : "";(source == "Erai-raws" && vcf.upper() == "HEVC") ? "WEBRip" : fvV} {vs} {""};pb ? "$pb " : ""}{def uyW = bitdepth ? " ${bitdepth}bit" : "";"$resolution $vcf $uyW, $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 Ao = " Dub";def Ggz = audioLanguages.any { it.ISO3B == language.ISO3B } ? "" : Ao;Ggz = audioLanguages.size() == 1 && audioLanguages.any { it.ISO3B == "und" } ? "" : Ggz;Ggz}{def fK = any { audioLanguages.size() } { 0 };def Ggz = fK > 2 ? " MAud" : fK > 1 ? " DAud" : null;def xPC = fK > 5 ? audioLanguages.take(5) : audioLanguages;Ggz ? Ggz + xPC.joining(" ", " (", "").upper() + (fK > 5 ? " ...)" : ")") : ""}{def pD = any { textLanguages.size() } { 0 };def Ggz = pD > 2 ? ", MSub" : pD > 1 ? ", DSub" : null;def xPC = pD > 5 ? textLanguages.take(5) : textLanguages;Ggz ? Ggz + xPC.joining(" ", " (", "").upper() + (pD > 5 ? " ...)" : ")") : ""}{"]["}{crc32.upper()}{"]"}{def QRk = ["ass", "srt", "ssa", "vtt", "ttml"];def cM = ["name": "." + lang.name,"iso3b": "." + lang.ISO3B,"iso3": "." +lang.ISO3,"iso2": "." + lang.ISO2];def nfT = subt;cM.values().each { iIM -> if (nfT.contains(iIM)) {nfT = nfT.replace(iIM, "")}};QRk.contains(ext) ? cM.iso3b + nfT : ""}{def QRk = ["jpg", "jpeg", "png", "bmp"];QRk.contains(ext) ? "-thumb" : ""}
2 changes: 1 addition & 1 deletion compiled/posix_music_shared.groovy
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{def hqV = System.getProperty("user.name");def IX = "/run/media/${hqV}";def jlJ = "$IX/Videos";def rO = [home,"$IX/Data","$IX/Music","$IX/Videos","$IX/Games","$IX/Books"].collect { it as File }.sort { Erz, FfW -> Erz.exists() <=> FfW.exists() ?: Erz.diskSpace <=> FfW.diskSpace }.last();def um = jlJ ? jlJ : rO;"$um/"}{"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 LLC = System.getProperty("user.name");def NlA = "/run/media/${LLC}";def rhe = "$NlA/Videos";def Ar = [home,"$NlA/Data","$NlA/Music","$NlA/Videos","$NlA/Games","$NlA/Books"].collect { it as File }.sort { Xy, f_ -> Xy.exists() <=> f_.exists() ?: Xy.diskSpace <=> f_.diskSpace }.last();def RLU = rhe ? rhe : Ar;"$RLU/"}{"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}
Loading

0 comments on commit a3ff119

Please sign in to comment.