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 10, 2024
1 parent 727e9a2 commit 1ed2cb0
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 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" : ""}
{def rvv = System.getProperty("user.name");def PJz = "/run/media/${rvv}";def qAQ = "$PJz/Videos";def uM = [home,"$PJz/Data","$PJz/Music","$PJz/Videos","$PJz/Games","$PJz/Books"].collect { it as File }.sort { bfK, cgW -> bfK.exists() <=> cgW.exists() ?: bfK.diskSpace <=> cgW.diskSpace }.last();def FD = qAQ ? qAQ : uM;"$FD/"}{"Videos/"}{def ztw = ["boys' love (bl)", "gay theme", "yaoi", "yuri", "lesbian", "hentai","sex", "lgbt", "explicit", "adult animation", "adult content"];def EFT = "TheMovieDB::TV";def Fa = [[271026, EFT],[220118, EFT],[ 74180, EFT]];def czG = [[236530, EFT]];def Ot = any { info.database } { id == tmdbid ? "TheMovieDB" : "IMDb" };def jX = Ot == "IMDb" ? "tt${id}" : id;def zMN = any { info.adult } { false };def EA = Fa.find { it[0] == jX && it[1] == Ot } != null;def TB = czG.find { it[0] == jX && it[1] == Ot } != null;def IrW = info.Keywords.findAll { it in ztw } || EA || zMN;IrW = TB ? false : IrW;IrW ? "R18+ " : ""}{def gy = ["CN", "JP", "KR", "KP", "TW", "HK"];def nO = ["aeni", "donghua", "anime"];def WOo = any {anime} || info.Keywords.findAll { it in nO } || (gy.contains(country) && genres =~ /Animation/);WOo ? "Anime Movies/" : "Movies/"}{def EFT = "TheMovieDB::TV";def lY = [[Jd: 68854, JJW: "From Me to You", iBE: EFT],[Jd: 94904, JJW: "My Next Life as a Villainess", iBE: EFT],[Jd: 229743, JJW: "VTuber Legend", iBE: EFT],[Jd: 234538, JJW: "Demon Lord 2099", iBE: EFT],[Jd: 237045, JJW: "Cherry Magic!", iBE: EFT],[Jd: 240633, JJW: "A Journey Through Another World", iBE: EFT],[Jd: 245285, JJW: "Failure Frame", iBE: EFT],[Jd: 271026, JJW: "Taisho Era Contract Marriage", iBE: EFT]];def Ot = any { info.database } { id == tmdbid ? "TheMovieDB" : "IMDb" };def jX = Ot == "IMDb" ? "tt${id}" : id;def xWY = n;lY.each {if (it.Jd == jX && it.iBE == Ot) {xWY = it.JJW}};def zI = ['\\', '/', ':', '*', '?', '"', '<', '>', '|'];def HDn = xWY.replaceAll(zI.collect { "\\" + it }.join('|'), '');HDn = HDn.replaceAll(/(\s|\.)*$/, '');HDn}{" ("}{y}{")"}{def Ot = id == tmdbid ? "TheMovieDB" : "IMDb";def JK = ["TheMovieDB": "tmdbid","IMDb": "imdbid"];def FkB = JK[Ot];def jX = Ot == "IMDb" ? "tt${id}" : id;" [${FkB}-${jX}]/"}{def rHH = ["Alqanime","BlackLuster","NanDesuKa","ToonsHub","Tsundere-Raws"];def JXD = rHH.find { dC -> fn.contains(dC) } ?: "";def Su = any {(fn =~ /^\[(.*?)\]/)[0][1]} {JXD} {group} {""};Su ? "[$Su] " : ""}{def EFT = "TheMovieDB::TV";def lY = [[Jd: 68854, JJW: "From Me to You", iBE: EFT],[Jd: 94904, JJW: "My Next Life as a Villainess", iBE: EFT],[Jd: 229743, JJW: "VTuber Legend", iBE: EFT],[Jd: 234538, JJW: "Demon Lord 2099", iBE: EFT],[Jd: 237045, JJW: "Cherry Magic!", iBE: EFT],[Jd: 240633, JJW: "A Journey Through Another World", iBE: EFT],[Jd: 245285, JJW: "Failure Frame", iBE: EFT],[Jd: 271026, JJW: "Taisho Era Contract Marriage", iBE: EFT]];def Ot = any { info.database } { id == tmdbid ? "TheMovieDB" : "IMDb" };def jX = Ot == "IMDb" ? "tt${id}" : id;def xWY = n;lY.each {if (it.Jd == jX && it.iBE == Ot) {xWY = it.JJW}};def zI = ['\\', '/', ':', '*', '?', '"', '<', '>', '|'];def HDn = xWY.replaceAll(zI.collect { "\\" + it }.join('|'), '');HDn = HDn.replaceAll(/(\s|\.)*$/, '');HDn}{" ("}{y}{")"}{" ["}{def _EC = [[ua: "ABEMA", IQm: ["ABEMA"]],[ua: "Bilibili.tv", IQm: ["BILI", "B-Global", "BiliIntl", "B-Site", "BiliCN"]],[ua: "Hulu", IQm: ["HULU"]],[ua: "iQIYI", IQm: ["IQ.WEB-DL", "IQIYI"]],[ua: "MeWatch", IQm: ["MW.WEB-DL"]],[ua: "Netflix", IQm: ["NF.WEB-DL", "NF WEB"]],[ua: "Prime Video", IQm: ["AMZN"]],[ua: "Shahid", IQm: ["SHAHID"]],[ua: "TVer", IQm: ["TVER"]],[ua: "U-NEXT", IQm: ["UNEXT"]],[ua: "YouTube", IQm: ["YT.WEB-DL", "YOUTUBE", "YTB"]]];def jI = ["ASW", "Judas", "JRx7", "EMBER", "KawaSubs", "GuodongSubs"];def _yF = ["Erai-raws", "SubsPlease"];def Vs = any {(fn =~ /^\[(.*?)\]/)[0][1]} {""};def tt = any {def RNO = _EC.find { hY -> hY.IQm.find { kLH -> fn.contains(kLH) } }?.IQm.bfK() ?: "";RNO = RNO.replace(".WEB-DL", "");RNO ? "${RNO}.WEB-DL" : ""} {source} {jI.find { vLI -> group == vLI || Vs == vLI } ? "WEBRip" : ""} {def jLR = _yF.find { HAI -> group == HAI || Vs == HAI} ? "WEB-DL" : "";(source == "Erai-raws" && vcf.upper() == "HEVC") ? "WEBRip" : jLR} {vs} {""};tt ? "$tt " : ""}{def pzp = bitdepth ? " ${bitdepth}bit" : "";"$resolution $vcf $pzp, $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 apm = " Dub";def fEE = audioLanguages.any { it.ISO3B == language.ISO3B } ? "" : apm;fEE = audioLanguages.size() == 1 && audioLanguages.any { it.ISO3B == "und" } ? "" : fEE;fEE}{def gOm = any { audioLanguages.size() } { 0 };def fEE = gOm > 2 ? " MAud" : gOm > 1 ? " DAud" : null;def zD = gOm > 5 ? audioLanguages.take(5) : audioLanguages;fEE ? fEE + zD.joining(" ", " (", "").upper() + (gOm > 5 ? " ...)" : ")") : ""}{def pwF = any { textLanguages.size() } { 0 };def fEE = pwF > 2 ? ", MSub" : pwF > 1 ? ", DSub" : null;def zD = pwF > 5 ? textLanguages.take(5) : textLanguages;fEE ? fEE + zD.joining(" ", " (", "").upper() + (pwF > 5 ? " ...)" : ")") : ""}{"]["}{crc32.upper()}{"]"}{def UHl = ["name": "." + lang.name,"iso3b": "." + lang.ISO3B,"iso3": "." +lang.ISO3,"iso2": "." + lang.ISO2];def QR = subt;UHl.values().each { zl -> if (QR.contains(zl)) {QR = QR.replace(zl, "")}};f.subtitle ? UHl.iso3b + QR : ""}{f.image ? "-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 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}
{def ayZ = System.getProperty("user.name");def RTm = "/run/media/${ayZ}";def Pe = "$RTm/Videos";def JaV = [home,"$RTm/Data","$RTm/Music","$RTm/Videos","$RTm/Games","$RTm/Books"].collect { it as File }.sort { AXL, Ey -> AXL.exists() <=> Ey.exists() ?: AXL.diskSpace <=> Ey.diskSpace }.last();def Ar = Pe ? Pe : JaV;"$Ar/"}{"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 1ed2cb0

Please sign in to comment.