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 3, 2024
1 parent e425106 commit a22f84a
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 b_ = System.getProperty("user.name");def kf = "/run/media/${b_}";def Kq = "$kf/Videos";def _k = [home,"$kf/Data","$kf/Music","$kf/Videos","$kf/Games","$kf/Books"].collect { it as File }.sort { gmr, ceJ -> gmr.exists() <=> ceJ.exists() ?: gmr.diskSpace <=> ceJ.diskSpace }.last();def Tze = Kq ? Kq : _k;"$Tze/"}{def bLJ = /(CN|JP|KR|KP|TW|HK)/;def jl = /(aeni|donghua|anime)/;def Jk = anime || info.Keywords =~ jl || any {(genres =~ /Animation/ && country =~ bLJ)}{false} ? true : false;def jn = Jk ? "Videos/Anime " : "Videos/";"$jn" + "Movies/"}{def ZO = [[Mh: 229743, oGJ: "VTuber Legend"],[Mh: 240633, oGJ: "A Journey Through Another World"],[Mh: 245285, oGJ: "Failure Frame"],[Mh: 237045, oGJ: "Cherry Magic!"],[Mh: 68854, oGJ: "From Me to You"],[Mh: 271026, oGJ: "Taisho Era Contract Marriage"],[Mh: 234538, oGJ: "Demon Lord 2099"]];def qkx = n;ZO.each {if (it.Mh == tmdbid && type.toString() != "Movie") {qkx = it.oGJ}};def fqx = ['\\', '/', ':', '*', '?', '"', '<', '>', '|'];def qlj = qkx.replaceAll(fqx.collect { "\\" + it }.join('|'), '');qlj = qlj.replaceAll(/(\s|\.)*$/, '');qlj}{" ("}{y}{") [tmdbid-"}{tmdbid}{"]/"}{def eZ = ["Alqanime","BlackLuster","NanDesuKa","ToonsHub","Tsundere-Raws"];def _q = eZ.find { zIg -> fn.contains(zIg) } ?: "";def jv = any {(fn =~ /^\[(.*?)\]/)[0][1]} {_q} {group} {""};jv ? "[$jv] " : ""}{def ZO = [[Mh: 229743, oGJ: "VTuber Legend"],[Mh: 240633, oGJ: "A Journey Through Another World"],[Mh: 245285, oGJ: "Failure Frame"],[Mh: 237045, oGJ: "Cherry Magic!"],[Mh: 68854, oGJ: "From Me to You"],[Mh: 271026, oGJ: "Taisho Era Contract Marriage"],[Mh: 234538, oGJ: "Demon Lord 2099"]];def qkx = n;ZO.each {if (it.Mh == tmdbid && type.toString() != "Movie") {qkx = it.oGJ}};def fqx = ['\\', '/', ':', '*', '?', '"', '<', '>', '|'];def qlj = qkx.replaceAll(fqx.collect { "\\" + it }.join('|'), '');qlj = qlj.replaceAll(/(\s|\.)*$/, '');qlj}{" ("}{y}{")"} [{def JF = [[AHB: "ABEMA", NJy: ["ABEMA"]],[AHB: "Bilibili.tv", NJy: ["B-Global", "BiliIntl", "BILI"]],[AHB: "Hulu", NJy: ["HULU"]],[AHB: "MeWatch", NJy: ["MW.WEB-DL"]],[AHB: "Netflix", NJy: ["NF.WEB-DL", "NF WEB"]],[AHB: "Prime Video", NJy: ["AMZN"]],[AHB: "TVer", NJy: ["TVER"]],[AHB: "Shahid", NJy: ["SHAHID"]],[AHB: "U-NEXT", NJy: ["UNEXT"]],[AHB: "YouTube", NJy: ["YT.WEB-DL", "YOUTUBE", "YTB"]]];def jkY = ["ASW", "Judas", "JRx7", "EMBER", "KawaSubs", "GuodongSubs"];def ms = ["Erai-raws", "SubsPlease"];def nV = any {(fn =~ /^\[(.*?)\]/)[0][1]} {""};def R_o = any {def yYr = JF.find { Vo -> Vo.NJy.find { iV -> fn.contains(iV) } }?.NJy.first() ?: "";yYr = yYr.replace(".WEB-DL", "");yYr ? "${yYr}.WEB-DL" : ""} {source} {jkY.find { zem -> group == zem || nV == zem } ? "WEBRip" : ""} {def cw = ms.find { ti -> group == ti || nV == ti} ? "WEB-DL" : "";(source == "Erai-raws" && vcf.upper() == "HEVC") ? "WEBRip" : cw} {vs} {""};R_o ? "$R_o " : ""}{resolution} {vcf.upper()}{bitdepth ? " ${bitdepth}bit" : ""}, {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 ZLO = " Dub";def Vd = audioLanguages.any { it.ISO3B == language.ISO3B } ? "" : ZLO;Vd = audioLanguages.size() == 1 && audioLanguages.any { it.ISO3B == "und" } ? "" : Vd;Vd}{def fy = any { audioLanguages.size() } { 0 };def Vd = fy > 2 ? " MAud" : fy > 1 ? " DAud" : null;def Jt = fy > 5 ? audioLanguages.take(5) : audioLanguages;Vd ? Vd + Jt.joining(" ", " (", "").upper() + (fy > 5 ? " ...)" : ")") : ""}{def Lf = any { textLanguages.size() } { 0 };def Vd = Lf > 2 ? ", MSub" : Lf > 1 ? ", DSub" : null;def Jt = Lf > 5 ? textLanguages.take(5) : textLanguages;Vd ? Vd + Jt.joining(" ", " (", "").upper() + (Lf > 5 ? " ...)" : ")") : ""}][{crc32.upper()}]{ext =~ /(ass|srt|ssa|vtt)/ ? '.' + lang.ISO3B : ""}{ext =~ /jp(?:e)?g|png/ ? "-thumb" : ""}
{def _S = System.getProperty("user.name");def ZPn = "/run/media/${_S}";def XG = "$ZPn/Videos";def WTW = [home,"$ZPn/Data","$ZPn/Music","$ZPn/Videos","$ZPn/Games","$ZPn/Books"].collect { it as File }.sort { lM, VH -> lM.exists() <=> VH.exists() ?: lM.diskSpace <=> VH.diskSpace }.last();def oqk = XG ? XG : WTW;"$oqk/"}{"Videos/"}{def zbG = ["boys' love (bl)", "gay theme", "yaoi", "yuri", "lesbian", "hentai","hentai", "sex", "lgbt", "explicit", "adult animation", "adult content"];def Vho = [271026,220118];def iH = any { info.adult } { false };def jJ = any { info.Keywords.findAll { it in zbG } } { id in Vho } { iH };jJ ? "R18+ " : ""}{def Ff = /(CN|JP|KR|KP|TW|HK)/;def hw = /(aeni|donghua|anime)/;def QO = anime || info.Keywords =~ hw || any {(genres =~ /Animation/ && country =~ Ff)}{false} ? true : false;QO ? "Anime Movies/" : "Movies/"}{def twP = [[HoW: 229743, lCa: "VTuber Legend"],[HoW: 240633, lCa: "A Journey Through Another World"],[HoW: 245285, lCa: "Failure Frame"],[HoW: 237045, lCa: "Cherry Magic!"],[HoW: 68854, lCa: "From Me to You"],[HoW: 271026, lCa: "Taisho Era Contract Marriage"],[HoW: 234538, lCa: "Demon Lord 2099"]];def a_u = n;twP.each {if (it.HoW == tmdbid && type.toString() != "Movie") {a_u = it.lCa}};def JHH = ['\\', '/', ':', '*', '?', '"', '<', '>', '|'];def eD = a_u.replaceAll(JHH.collect { "\\" + it }.join('|'), '');eD = eD.replaceAll(/(\s|\.)*$/, '');eD}{" ("}{y}{") [tmdbid-"}{tmdbid}{"]/"}{def ony = ["Alqanime","BlackLuster","NanDesuKa","ToonsHub","Tsundere-Raws"];def _Bh = ony.find { YC -> fn.contains(YC) } ?: "";def gK = any {(fn =~ /^\[(.*?)\]/)[0][1]} {_Bh} {group} {""};gK ? "[$gK] " : ""}{def twP = [[HoW: 229743, lCa: "VTuber Legend"],[HoW: 240633, lCa: "A Journey Through Another World"],[HoW: 245285, lCa: "Failure Frame"],[HoW: 237045, lCa: "Cherry Magic!"],[HoW: 68854, lCa: "From Me to You"],[HoW: 271026, lCa: "Taisho Era Contract Marriage"],[HoW: 234538, lCa: "Demon Lord 2099"]];def a_u = n;twP.each {if (it.HoW == tmdbid && type.toString() != "Movie") {a_u = it.lCa}};def JHH = ['\\', '/', ':', '*', '?', '"', '<', '>', '|'];def eD = a_u.replaceAll(JHH.collect { "\\" + it }.join('|'), '');eD = eD.replaceAll(/(\s|\.)*$/, '');eD}{" ("}{y}{")"} [{def VOO = [[CQ: "ABEMA", uKr: ["ABEMA"]],[CQ: "Bilibili.tv", uKr: ["B-Global", "BiliIntl", "BILI"]],[CQ: "Hulu", uKr: ["HULU"]],[CQ: "MeWatch", uKr: ["MW.WEB-DL"]],[CQ: "Netflix", uKr: ["NF.WEB-DL", "NF WEB"]],[CQ: "Prime Video", uKr: ["AMZN"]],[CQ: "TVer", uKr: ["TVER"]],[CQ: "Shahid", uKr: ["SHAHID"]],[CQ: "U-NEXT", uKr: ["UNEXT"]],[CQ: "YouTube", uKr: ["YT.WEB-DL", "YOUTUBE", "YTB"]]];def awl = ["ASW", "Judas", "JRx7", "EMBER", "KawaSubs", "GuodongSubs"];def fX = ["Erai-raws", "SubsPlease"];def Wci = any {(fn =~ /^\[(.*?)\]/)[0][1]} {""};def Xfq = any {def Gc = VOO.find { bLU -> bLU.uKr.find { ze -> fn.contains(ze) } }?.uKr.first() ?: "";Gc = Gc.replace(".WEB-DL", "");Gc ? "${Gc}.WEB-DL" : ""} {source} {awl.find { hBv -> group == hBv || Wci == hBv } ? "WEBRip" : ""} {def ZS = fX.find { lJL -> group == lJL || Wci == lJL} ? "WEB-DL" : "";(source == "Erai-raws" && vcf.upper() == "HEVC") ? "WEBRip" : ZS} {vs} {""};Xfq ? "$Xfq " : ""}{resolution} {vcf.upper()}{bitdepth ? " ${bitdepth}bit" : ""}, {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 cjJ = " Dub";def HcC = audioLanguages.any { it.ISO3B == language.ISO3B } ? "" : cjJ;HcC = audioLanguages.size() == 1 && audioLanguages.any { it.ISO3B == "und" } ? "" : HcC;HcC}{def JOI = any { audioLanguages.size() } { 0 };def HcC = JOI > 2 ? " MAud" : JOI > 1 ? " DAud" : null;def nmi = JOI > 5 ? audioLanguages.take(5) : audioLanguages;HcC ? HcC + nmi.joining(" ", " (", "").upper() + (JOI > 5 ? " ...)" : ")") : ""}{def WKX = any { textLanguages.size() } { 0 };def HcC = WKX > 2 ? ", MSub" : WKX > 1 ? ", DSub" : null;def nmi = WKX > 5 ? textLanguages.take(5) : textLanguages;HcC ? HcC + nmi.joining(" ", " (", "").upper() + (WKX > 5 ? " ...)" : ")") : ""}][{crc32.upper()}]{ext =~ /(ass|srt|ssa|vtt)/ ? '.' + lang.ISO3B : ""}{ext =~ /jp(?:e)?g|png/ ? "-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 ZgS = System.getProperty("user.name");def QH = "/run/media/${ZgS}";def Oa = "$QH/Videos";def LS = [home,"$QH/Data","$QH/Music","$QH/Videos","$QH/Games","$QH/Books"].collect { it as File }.sort { wE, EK -> wE.exists() <=> EK.exists() ?: wE.diskSpace <=> EK.diskSpace }.last();def n_ = Oa ? Oa : LS;"$n_/"}{"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 QL = System.getProperty("user.name");def cz = "/run/media/${QL}";def iq = "$cz/Videos";def Iv = [home,"$cz/Data","$cz/Music","$cz/Videos","$cz/Games","$cz/Books"].collect { it as File }.sort { Qp, TO -> Qp.exists() <=> TO.exists() ?: Qp.diskSpace <=> TO.diskSpace }.last();def jH = iq ? iq : Iv;"$jH/"}{"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}
2 changes: 1 addition & 1 deletion compiled/posix_tv.groovy
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{def iN = System.getProperty("user.name");def eix = "/run/media/${iN}";def iD = "$eix/Videos";def nT = [home,"$eix/Data","$eix/Music","$eix/Videos","$eix/Games","$eix/Books"].collect { it as File }.sort { Rq, Hy -> Rq.exists() <=> Hy.exists() ?: Rq.diskSpace <=> Hy.diskSpace }.last();def Scd = iD ? iD : nT;"$Scd/"}{def VW = /(CN|JP|KR|KP|TW|HK)/;def GzK = /(aeni|donghua|anime)/;def arH = anime || info.Keywords =~ GzK || (genres =~ /Animation/ && country =~ VW) ? true : false;arH ? "Videos/Anime/" : "Videos/TV Series/"}{def zwz = [[Gz: 229743, aB: "VTuber Legend"],[Gz: 240633, aB: "A Journey Through Another World"],[Gz: 245285, aB: "Failure Frame"],[Gz: 237045, aB: "Cherry Magic!"],[Gz: 68854, aB: "From Me to You"],[Gz: 271026, aB: "Taisho Era Contract Marriage"],[Gz: 234538, aB: "Demon Lord 2099"]];def Pn = n;zwz.each {if (it.Gz == tmdbid && type.toString() != "Movie") {Pn = it.aB}};def mF = ['\\', '/', ':', '*', '?', '"', '<', '>', '|'];def wc = Pn.replaceAll(mF.collect { "\\" + it }.join('|'), '');wc = wc.replaceAll(/(\s|\.)*$/, '');wc}{def Rwy = [68854,235973,262295,259140,204098,239779,273190,271026,240125,275695,123542,257162];def Hx = Rwy.find { msU -> tmdbid == msU } ?: "";Hx ? " ($y) [tmdbid-$Hx]" : ""}/{episode.special ? 'Specials' : 'Season '+s}{def mF = ['\\', '/', ':', '*', '?', '"', '<', '>', '|'];def wc = sn.replaceAll(mF.collect { "\\" + it }.join('|'), '_');def uC = n.replaceAll(mF.collect { "\\" + it }.join('|'), '_');def lV = wc.contains(uC) ? "" : wc;lV == 'Season '+ s ? "" : lV ? " - " + lV : ""}/{def fFT = ["Alqanime","BlackLuster","NanDesuKa","ToonsHub","Tsundere-Raws"];def qJ = fFT.find { CY -> fn.contains(CY) } ?: "";def So = any {(fn =~ /^\[(.*?)\]/)[0][1]} {qJ} {group} {""};So ? "[$So] " : ""}{def zwz = [[Gz: 229743, aB: "VTuber Legend"],[Gz: 240633, aB: "A Journey Through Another World"],[Gz: 245285, aB: "Failure Frame"],[Gz: 237045, aB: "Cherry Magic!"],[Gz: 68854, aB: "From Me to You"],[Gz: 271026, aB: "Taisho Era Contract Marriage"],[Gz: 234538, aB: "Demon Lord 2099"]];def Pn = n;zwz.each {if (it.Gz == tmdbid && type.toString() != "Movie") {Pn = it.aB}};def mF = ['\\', '/', ':', '*', '?', '"', '<', '>', '|'];def wc = Pn.replaceAll(mF.collect { "\\" + it }.join('|'), '');wc = wc.replaceAll(/(\s|\.)*$/, '');wc} - {s00e00}{def mF = ['\\', '/', ':', '*', '?', '"', '<', '>', '|'];def wc = t.replaceAll(mF.collect { "\\" + it }.join('|'), '_');def mk = any { e } { special };wc = wc.length() > 100 ? " " : " - $wc ";wc == " - Episode $mk " ? " " : wc} [{def SZn = [[xP: "ABEMA", Mc: ["ABEMA"]],[xP: "Bilibili.tv", Mc: ["B-Global", "BiliIntl", "BILI"]],[xP: "Hulu", Mc: ["HULU"]],[xP: "MeWatch", Mc: ["MW.WEB-DL"]],[xP: "Netflix", Mc: ["NF.WEB-DL", "NF WEB"]],[xP: "Prime Video", Mc: ["AMZN"]],[xP: "TVer", Mc: ["TVER"]],[xP: "Shahid", Mc: ["SHAHID"]],[xP: "U-NEXT", Mc: ["UNEXT"]],[xP: "YouTube", Mc: ["YT.WEB-DL", "YOUTUBE", "YTB"]]];def VqC = ["ASW", "Judas", "JRx7", "EMBER", "KawaSubs", "GuodongSubs"];def Ej = ["Erai-raws", "SubsPlease"];def _L = any {(fn =~ /^\[(.*?)\]/)[0][1]} {""};def GPR = any {def Gq = SZn.find { Do -> Do.Mc.find { zl -> fn.contains(zl) } }?.Mc.first() ?: "";Gq = Gq.replace(".WEB-DL", "");Gq ? "${Gq}.WEB-DL" : ""} {source} {VqC.find { eL -> group == eL || _L == eL } ? "WEBRip" : ""} {def Rf = Ej.find { eT -> group == eT || _L == eT} ? "WEB-DL" : "";(source == "Erai-raws" && vcf.upper() == "HEVC") ? "WEBRip" : Rf} {vs} {""};GPR ? "$GPR " : ""}{resolution} {vcf.upper()}{bitdepth ? " ${bitdepth}bit" : ""}, {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 pr_ = " Dub";def Mt = audioLanguages.any { it.ISO3B == language.ISO3B } ? "" : pr_;Mt = audioLanguages.size() == 1 && audioLanguages.any { it.ISO3B == "und" } ? "" : Mt;Mt}{def oUp = any { audioLanguages.size() } { 0 };def Mt = oUp > 2 ? " MAud" : oUp > 1 ? " DAud" : null;def _dE = oUp > 5 ? audioLanguages.take(5) : audioLanguages;Mt ? Mt + _dE.joining(" ", " (", "").upper() + (oUp > 5 ? " ...)" : ")") : ""}{def BTd = any { textLanguages.size() } { 0 };def Mt = BTd > 2 ? ", MSub" : BTd > 1 ? ", DSub" : null;def _dE = BTd > 5 ? textLanguages.take(5) : textLanguages;Mt ? Mt + _dE.joining(" ", " (", "").upper() + (BTd > 5 ? " ...)" : ")") : ""}][{crc32.upper()}]{ext =~ /(ass|srt|ssa|vtt)/ ? '.' + lang.ISO3B : ""}{ext =~ /jp(?:e)?g|png/ ? "-thumb" : ""}
{def Ium = System.getProperty("user.name");def wH = "/run/media/${Ium}";def lt = "$wH/Videos";def mh = [home,"$wH/Data","$wH/Music","$wH/Videos","$wH/Games","$wH/Books"].collect { it as File }.sort { Zc, mZ -> Zc.exists() <=> mZ.exists() ?: Zc.diskSpace <=> mZ.diskSpace }.last();def Xgl = lt ? lt : mh;"$Xgl/"}{"Videos/"}{def lYH = ["boys' love (bl)", "gay theme", "yaoi", "yuri", "lesbian", "hentai","hentai", "sex", "lgbt", "explicit", "adult animation", "adult content"];def EK = [271026,220118];def BuJ = any { info.adult } { false };def eAZ = any { info.Keywords.findAll { it in lYH } } { id in EK } { BuJ };eAZ ? "R18+ " : ""}{def wO = /(CN|JP|KR|KP|TW|HK)/;def _H = /(aeni|donghua|anime)/;def wM = anime || info.Keywords =~ _H || (genres =~ /Animation/ && country =~ wO) ? true : false;wM ? "Anime/" : "TV Series/"}{def EP = [[Ev: 229743, UlD: "VTuber Legend"],[Ev: 240633, UlD: "A Journey Through Another World"],[Ev: 245285, UlD: "Failure Frame"],[Ev: 237045, UlD: "Cherry Magic!"],[Ev: 68854, UlD: "From Me to You"],[Ev: 271026, UlD: "Taisho Era Contract Marriage"],[Ev: 234538, UlD: "Demon Lord 2099"]];def JAb = n;EP.each {if (it.Ev == tmdbid && type.toString() != "Movie") {JAb = it.UlD}};def nWu = ['\\', '/', ':', '*', '?', '"', '<', '>', '|'];def C_v = JAb.replaceAll(nWu.collect { "\\" + it }.join('|'), '');C_v = C_v.replaceAll(/(\s|\.)*$/, '');C_v}{def dun = [68854,235973,262295,259140,204098,239779,273190,271026,240125,275695,123542,257162];def xWG = dun.find { CK -> tmdbid == CK } ?: "";xWG ? " ($y) [tmdbid-$xWG]" : ""}/{episode.special ? 'Specials' : 'Season '+s}{def nWu = ['\\', '/', ':', '*', '?', '"', '<', '>', '|'];def C_v = sn.replaceAll(nWu.collect { "\\" + it }.join('|'), '_');def Pd = n.replaceAll(nWu.collect { "\\" + it }.join('|'), '_');def BQz = C_v.contains(Pd) ? "" : C_v;BQz == 'Season '+ s ? "" : BQz ? " - " + BQz : ""}/{def Sb = ["Alqanime","BlackLuster","NanDesuKa","ToonsHub","Tsundere-Raws"];def zK = Sb.find { Ux -> fn.contains(Ux) } ?: "";def wP = any {(fn =~ /^\[(.*?)\]/)[0][1]} {zK} {group} {""};wP ? "[$wP] " : ""}{def EP = [[Ev: 229743, UlD: "VTuber Legend"],[Ev: 240633, UlD: "A Journey Through Another World"],[Ev: 245285, UlD: "Failure Frame"],[Ev: 237045, UlD: "Cherry Magic!"],[Ev: 68854, UlD: "From Me to You"],[Ev: 271026, UlD: "Taisho Era Contract Marriage"],[Ev: 234538, UlD: "Demon Lord 2099"]];def JAb = n;EP.each {if (it.Ev == tmdbid && type.toString() != "Movie") {JAb = it.UlD}};def nWu = ['\\', '/', ':', '*', '?', '"', '<', '>', '|'];def C_v = JAb.replaceAll(nWu.collect { "\\" + it }.join('|'), '');C_v = C_v.replaceAll(/(\s|\.)*$/, '');C_v} - {s00e00}{def nWu = ['\\', '/', ':', '*', '?', '"', '<', '>', '|'];def C_v = t.replaceAll(nWu.collect { "\\" + it }.join('|'), '_');def rcN = any { e } { special };C_v = C_v.length() > 100 ? " " : " - $C_v ";C_v == " - Episode $rcN " ? " " : C_v} [{def gL = [[gAP: "ABEMA", kI: ["ABEMA"]],[gAP: "Bilibili.tv", kI: ["B-Global", "BiliIntl", "BILI"]],[gAP: "Hulu", kI: ["HULU"]],[gAP: "MeWatch", kI: ["MW.WEB-DL"]],[gAP: "Netflix", kI: ["NF.WEB-DL", "NF WEB"]],[gAP: "Prime Video", kI: ["AMZN"]],[gAP: "TVer", kI: ["TVER"]],[gAP: "Shahid", kI: ["SHAHID"]],[gAP: "U-NEXT", kI: ["UNEXT"]],[gAP: "YouTube", kI: ["YT.WEB-DL", "YOUTUBE", "YTB"]]];def jOv = ["ASW", "Judas", "JRx7", "EMBER", "KawaSubs", "GuodongSubs"];def AvP = ["Erai-raws", "SubsPlease"];def Kj = any {(fn =~ /^\[(.*?)\]/)[0][1]} {""};def Kfq = any {def yTI = gL.find { Gp -> Gp.kI.find { OLq -> fn.contains(OLq) } }?.kI.first() ?: "";yTI = yTI.replace(".WEB-DL", "");yTI ? "${yTI}.WEB-DL" : ""} {source} {jOv.find { lR -> group == lR || Kj == lR } ? "WEBRip" : ""} {def WO = AvP.find { Ac -> group == Ac || Kj == Ac} ? "WEB-DL" : "";(source == "Erai-raws" && vcf.upper() == "HEVC") ? "WEBRip" : WO} {vs} {""};Kfq ? "$Kfq " : ""}{resolution} {vcf.upper()}{bitdepth ? " ${bitdepth}bit" : ""}, {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 _O = " Dub";def eHN = audioLanguages.any { it.ISO3B == language.ISO3B } ? "" : _O;eHN = audioLanguages.size() == 1 && audioLanguages.any { it.ISO3B == "und" } ? "" : eHN;eHN}{def IUk = any { audioLanguages.size() } { 0 };def eHN = IUk > 2 ? " MAud" : IUk > 1 ? " DAud" : null;def tJr = IUk > 5 ? audioLanguages.take(5) : audioLanguages;eHN ? eHN + tJr.joining(" ", " (", "").upper() + (IUk > 5 ? " ...)" : ")") : ""}{def NV = any { textLanguages.size() } { 0 };def eHN = NV > 2 ? ", MSub" : NV > 1 ? ", DSub" : null;def tJr = NV > 5 ? textLanguages.take(5) : textLanguages;eHN ? eHN + tJr.joining(" ", " (", "").upper() + (NV > 5 ? " ...)" : ")") : ""}][{crc32.upper()}]{ext =~ /(ass|srt|ssa|vtt)/ ? '.' + lang.ISO3B : ""}{ext =~ /jp(?:e)?g|png/ ? "-thumb" : ""}
Loading

0 comments on commit a22f84a

Please sign in to comment.