|
3 | 3 | // Platform name is for internal use only, aliases are used to match the filename
|
4 | 4 | ["ABEMA"], // https://abema.tv/
|
5 | 5 | ["ADN"], // https://animationdigitalnetwork.com
|
6 |
| - ["BBC"], // https://bbc.co.uk, and iPlayer... |
7 | 6 | ["BILI", "B-Global", "BiliIntl", "B-Site", "BiliCN"], // https://www.bilibili.tv and https://www.bilibili.com
|
8 |
| - ["BOOKCUBE"], // https://bookcube.com |
9 | 7 | ["COOLMIC"], // https://coolmic.com
|
10 | 8 | ["HIDIVE", "HIDI.WEB-DL"], // https://hidive.com
|
11 | 9 | ["IQIYI", "IQ.WEB-DL"], // https://www.iq.com
|
|
22 | 20 | ]
|
23 | 21 |
|
24 | 22 | // List of groups that re-encode or modified even further the video from specific source
|
25 |
| - def reencode_group = ["ASW", "Judas", "JRx7", "EMBER", "KawaSubs", "GuodongSubs", "SAMEHADAKU"] |
| 23 | + def reencode_group = ["ASW", "Judas", "JRx7", "EMBER", "GuodongSubs", "SAMEHADAKU"] |
26 | 24 | // List of groups that directly rip the video from specific source
|
27 | 25 | def release_group = ["Erai-raws", "SubsPlease"]
|
28 | 26 | def unlisted_group = any {(fn =~ /^\[(.*?)\]/)[0][1]} {""}
|
|
31 | 29 | def release_ = any {
|
32 | 30 | def platform = custom_releases.find { idx -> idx.find { known -> fn.lower().contains(known.lower()) } }[0]
|
33 | 31 | platform = platform.replace(".WEB-DL", "")
|
34 |
| - platform ? "${platform}.WEB-DL" : "" |
| 32 | + // Some file may have additional "WEBRip" tag, consider it to new logic |
| 33 | + if (fn.contains("WEBRip")) { |
| 34 | + platform = platform + ".WEBRip" |
| 35 | + } else if (fn.contains("WEB-DL") || fn.contains("WEBDL")) { |
| 36 | + platform = platform + ".WEB-DL" |
| 37 | + } |
| 38 | + platform |
35 | 39 | } {
|
36 | 40 | source
|
37 | 41 | } {
|
|
0 commit comments