From 617e03e2a9f61803da1536a510cb8762d387a64f Mon Sep 17 00:00:00 2001 From: mist8kengas Date: Mon, 8 Apr 2024 03:52:05 +0400 Subject: [PATCH 01/16] erairaws: add --- definitions/v9/erairaws.yml | 156 ++++++++++++++++++++++++++++++++++++ 1 file changed, 156 insertions(+) create mode 100644 definitions/v9/erairaws.yml diff --git a/definitions/v9/erairaws.yml b/definitions/v9/erairaws.yml new file mode 100644 index 000000000..0f0ec06ac --- /dev/null +++ b/definitions/v9/erairaws.yml @@ -0,0 +1,156 @@ +--- +id: erairaws +name: Erai-raws +description: "A mysterious organization that releases anime content with multi-subs and more. (Placeholder text)" +language: en-US +type: public +encoding: UTF-8 +requestDelay: 2 +links: + - https://www.erai-raws.info/ + +caps: + categorymappings: + - { id: 100, cat: TV/Anime, desc: "[Airing]", default: true } + - { id: 110, cat: TV/Anime, desc: "[Finale]" } + - { id: 200, cat: TV/Anime, desc: "[Batch]" } + - { id: 300, cat: Movies/Other, desc: "[Movie or Special Episode]" } + - { id: 400, cat: TV/Anime, desc: "[Encoded]" } + - { id: 500, cat: TV/Anime, desc: "[Raw]" } + modes: + search: [q] + tv-search: [q, season, ep] + movie-search: [q] + allowrawsearch: true + +settings: + - name: rss_token + label: "RSS Token" + type: password + default: "d157edc6b50f28b2776442c03d067d56" + - name: categories + label: "Categories" + type: select + default: all + options: + all: "All" + episodes: "Airing" + batches: "Batches" + specials: "Movies or Special Episodes" + encodes: "Encodings" + raws: "Raws" + - name: resolution + label: "Resolution" + type: select + default: 1080p + options: + 1080p: "1080p" + 720p: "720p" + SD: "SD (480p)" + - name: link_type + label: "Link Type" + type: select + default: torrent + options: + torrent: "Torrent" + magnet: "Magnet" + - name: subtitles + label: "Subtitles" + type: select + default: us + options: + us: "English" + br: "Portuguese(Brazil)" + mx: "Spanish(Latin_America)" + es: "Spanish" + sa: "Arabic" + fr: "French" + de: "German" + it: "Italian" + ru: "Russian" + jp: "Japanese" + pt: "Portuguese" + pl: "Polish" + nl: "Dutch" + no: "Norwegian" + fi: "Finnish" + tr: "Turkish" + se: "Swedish" + gr: "Greek" + il: "Hebrew" + ro: "Romanian" + id: "Indonesian" + th: "Thai" + kr: "Korean" + dk: "Danish" + cn: "Chinese(Simplified&Traditional)" + bg: "Bulgarian" + vn: "Vietnamese" + in: "Hindi" + lk: "Tamil" + ua: "Ukrainian" + hu: "Hungarian" + cz: "Czech" + hr: "Croatian" + my: "Malaysian" + sk: "Slovakian" + ph: "Filipino" + - name: want_v0 + label: "Want v0?" + type: checkbox + default: true + +search: + paths: + - path: "{{ if ne .Config.categories \"all\" }}/{{ .Config.categories }}{{ else }}{{ end }}/feed/" + response: + type: xml + inputs: + $raw: "{{ .Config.rss_token }}=0&" + res: "{{ .Config.resolution }}" + type: "{{ .Config.link_type }}" + subs: "{{ .Config.subtitles }}" + v0: "{{ if .Config.want_v0 }}{{ else }}no{{ end }}" + s: "{{ .Keywords }}" + rows: + selector: rss > channel > item + fields: + categorydesc: + selector: category + title: + selector: title + filters: + - name: regexp + args: "^\\[(?:Magnet|Torrent)\\] (.*)" + details_link: + selector: description + filters: + - name: regexp + args: "href=\"(.*)\"" + optional: true + details: + text: "{{ or (.Result.details_link) \"https://www.erai-raws.info/\" }}" + download_link: + selector: link + download: + text: "{{ if eq .Config.link_type \"torrent\" }}{{ .Result.download_link }}{{ else }}{{ end }}" + optional: true + magnet: + text: "{{ if eq .Config.link_type \"magnet\"}}{{ .Result.download_link }}{{ else }}{{ end }}" + infohash: + selector: infohash + date: + selector: pubDate + filters: + - name: dateparse + args: "ddd, dd MMM yyyy HH:mm:ss zz" + size: + selector: size + seeders: + text: 1 + leechers: + text: 1 + description: + selector: description + remove: a +# engine n/a From 50365e331bdbc2330a2c6871cc699e55db764a9a Mon Sep 17 00:00:00 2001 From: mist8kengas Date: Mon, 8 Apr 2024 04:15:36 +0400 Subject: [PATCH 02/16] erairaws: remove default rss_token --- definitions/v9/erairaws.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/definitions/v9/erairaws.yml b/definitions/v9/erairaws.yml index 0f0ec06ac..4a634bbbd 100644 --- a/definitions/v9/erairaws.yml +++ b/definitions/v9/erairaws.yml @@ -27,7 +27,6 @@ settings: - name: rss_token label: "RSS Token" type: password - default: "d157edc6b50f28b2776442c03d067d56" - name: categories label: "Categories" type: select From ec0529c1db2d44bbc48df13e2e3cc0aca9b0cac4 Mon Sep 17 00:00:00 2001 From: mist8kengas Date: Mon, 8 Apr 2024 09:17:22 +0400 Subject: [PATCH 03/16] erairaws: add any option --- definitions/v9/erairaws.yml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/definitions/v9/erairaws.yml b/definitions/v9/erairaws.yml index 4a634bbbd..b4fc3673b 100644 --- a/definitions/v9/erairaws.yml +++ b/definitions/v9/erairaws.yml @@ -11,9 +11,11 @@ links: caps: categorymappings: - - { id: 100, cat: TV/Anime, desc: "[Airing]", default: true } + - { id: 100, cat: TV/Anime, desc: "[Airing]" } - { id: 110, cat: TV/Anime, desc: "[Finale]" } - { id: 200, cat: TV/Anime, desc: "[Batch]" } + - { id: 210, cat: TV/Anime, desc: "[Batch][Encoded]" } + - { id: 220, cat: TV/Anime, desc: "[Batch][Raw]" } - { id: 300, cat: Movies/Other, desc: "[Movie or Special Episode]" } - { id: 400, cat: TV/Anime, desc: "[Encoded]" } - { id: 500, cat: TV/Anime, desc: "[Raw]" } @@ -32,7 +34,7 @@ settings: type: select default: all options: - all: "All" + all: "All categories" episodes: "Airing" batches: "Batches" specials: "Movies or Special Episodes" @@ -41,23 +43,26 @@ settings: - name: resolution label: "Resolution" type: select - default: 1080p + default: "" options: + "": "Any" 1080p: "1080p" 720p: "720p" SD: "SD (480p)" - name: link_type label: "Link Type" type: select - default: torrent + default: "" options: + "": "Any" torrent: "Torrent" magnet: "Magnet" - name: subtitles label: "Subtitles" type: select - default: us + default: "" options: + "": "Any" us: "English" br: "Portuguese(Brazil)" mx: "Spanish(Latin_America)" From cb6086b66206b442320873394b905deba290ec7d Mon Sep 17 00:00:00 2001 From: mist8kengas Date: Mon, 8 Apr 2024 09:17:55 +0400 Subject: [PATCH 04/16] erairaws: refactor & format --- definitions/v9/erairaws.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/definitions/v9/erairaws.yml b/definitions/v9/erairaws.yml index b4fc3673b..00318a135 100644 --- a/definitions/v9/erairaws.yml +++ b/definitions/v9/erairaws.yml @@ -106,7 +106,7 @@ settings: search: paths: - - path: "{{ if ne .Config.categories \"all\" }}/{{ .Config.categories }}{{ else }}{{ end }}/feed/" + - path: '{{ if ne .Config.categories "all" }}/{{ .Config.categories }}{{ else }}{{ end }}/feed/' response: type: xml inputs: @@ -130,17 +130,17 @@ search: selector: description filters: - name: regexp - args: "href=\"(.*)\"" + args: 'href="(.*)"' optional: true details: - text: "{{ or (.Result.details_link) \"https://www.erai-raws.info/\" }}" + text: '{{ or (.Result.details_link) "https://www.erai-raws.info/" }}' download_link: selector: link download: - text: "{{ if eq .Config.link_type \"torrent\" }}{{ .Result.download_link }}{{ else }}{{ end }}" + text: '{{ if ne .Config.link_type "magnet" }}{{ .Result.download_link }}{{ else }}{{ end }}' optional: true magnet: - text: "{{ if eq .Config.link_type \"magnet\"}}{{ .Result.download_link }}{{ else }}{{ end }}" + text: '{{ if eq .Config.link_type "magnet" }}{{ .Result.download_link }}{{ else }}{{ end }}' infohash: selector: infohash date: From 3d6ed3a83f1c0741c1158fcf33686f185b3eb7be Mon Sep 17 00:00:00 2001 From: mist8kengas Date: Mon, 8 Apr 2024 09:30:48 +0400 Subject: [PATCH 05/16] erairaws: filter andmatch on rows --- definitions/v9/erairaws.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/definitions/v9/erairaws.yml b/definitions/v9/erairaws.yml index 00318a135..0400b51ef 100644 --- a/definitions/v9/erairaws.yml +++ b/definitions/v9/erairaws.yml @@ -118,6 +118,8 @@ search: s: "{{ .Keywords }}" rows: selector: rss > channel > item + filters: + - name: andmatch fields: categorydesc: selector: category From 38b3799255edf070b25a4bc977e1f21a9a124aa0 Mon Sep 17 00:00:00 2001 From: mist8kengas Date: Mon, 8 Apr 2024 12:04:54 +0400 Subject: [PATCH 06/16] feat(erairaws): refactor + 2 feats. refactor search title filters add new search fields (internal) add new settings --- definitions/v9/erairaws.yml | 49 +++++++++++++++++++++++++++++++++++-- 1 file changed, 47 insertions(+), 2 deletions(-) diff --git a/definitions/v9/erairaws.yml b/definitions/v9/erairaws.yml index 0400b51ef..948ada0a6 100644 --- a/definitions/v9/erairaws.yml +++ b/definitions/v9/erairaws.yml @@ -40,6 +40,10 @@ settings: specials: "Movies or Special Episodes" encodes: "Encodings" raws: "Raws" + - name: include_movie + label: "Include movie label in title" + type: checkbox + default: true - name: resolution label: "Resolution" type: select @@ -49,6 +53,10 @@ settings: 1080p: "1080p" 720p: "720p" SD: "SD (480p)" + - name: include_resolution + label: "Include resolution in title" + type: checkbox + default: true - name: link_type label: "Link Type" type: select @@ -99,8 +107,12 @@ settings: my: "Malaysian" sk: "Slovakian" ph: "Filipino" + - name: include_subtitles + label: "Include subtitles in title" + type: checkbox + default: true - name: want_v0 - label: "Want v0?" + label: "Include v0 releases" type: checkbox default: true @@ -123,11 +135,44 @@ search: fields: categorydesc: selector: category + title_episode: + selector: title + filters: + - name: regexp + args: "^(?:.*) - (\\d+ ~ \\d+|\\d+)" + title_is_movie: + text: "{{ if .Config.include_movie }} - Movie{{ else }}{{ end }}" + optional: true + title_has_hevc: + selector: title + filters: + - name: regexp + args: "(?:\\d+ ~ \\d+|\\d+|Movie) (\\(HEVC\\))" + title_resolution: + selector: title + filters: + - name: regexp + args: "\\[(1080p|720p|SD)\\]" + optional: true + title_subtitles: + selector: title + filters: + - name: regexp + args: "\\[(?:1080p|720p|SD)\\]((?:\\[\\w{2}\\])+)" + optional: true title: selector: title filters: - name: regexp - args: "^\\[(?:Magnet|Torrent)\\] (.*)" + args: "^\\[(?:Magnet|Torrent)\\] (.*) -" + - name: append + args: "{{ if .Result.title_episode }} - {{ .Result.title_episode }}{{ else }}{{ .Result.title_is_movie }}{{ end }}" + - name: append + args: "{{ if .Result.title_has_hevc }} {{ .Result.title_has_hevc }}{{ else }}{{ end }}" + - name: append + args: "{{ if .Config.include_resolution }} ({{ .Result.title_resolution }}){{ else }}{{ end }}" + - name: append + args: "{{ if .Config.include_subtitles }} {{ .Result.title_subtitles }}{{ else }}{{ end }}" details_link: selector: description filters: From 4549ca9c6b5a6f7c56e8d333428248be937b1109 Mon Sep 17 00:00:00 2001 From: mist8kengas Date: Mon, 8 Apr 2024 12:08:43 +0400 Subject: [PATCH 07/16] erairaws: add category in title (optional) --- definitions/v9/erairaws.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/definitions/v9/erairaws.yml b/definitions/v9/erairaws.yml index 948ada0a6..a96127192 100644 --- a/definitions/v9/erairaws.yml +++ b/definitions/v9/erairaws.yml @@ -40,6 +40,10 @@ settings: specials: "Movies or Special Episodes" encodes: "Encodings" raws: "Raws" + - name: include_categories + label: "Include categories in title" + type: checkbox + default: true - name: include_movie label: "Include movie label in title" type: checkbox @@ -173,6 +177,8 @@ search: args: "{{ if .Config.include_resolution }} ({{ .Result.title_resolution }}){{ else }}{{ end }}" - name: append args: "{{ if .Config.include_subtitles }} {{ .Result.title_subtitles }}{{ else }}{{ end }}" + - name: append + args: "{{ if .Config.include_categories }}{{ .Result.categorydesc }}{{ else }}{{ end }}" details_link: selector: description filters: From 86a2b74e619ba38acd00ff90f583881b6489a1d7 Mon Sep 17 00:00:00 2001 From: mist8kengas Date: Mon, 8 Apr 2024 12:22:33 +0400 Subject: [PATCH 08/16] erairaws: fix categories in title --- definitions/v9/erairaws.yml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/definitions/v9/erairaws.yml b/definitions/v9/erairaws.yml index a96127192..17cf0df82 100644 --- a/definitions/v9/erairaws.yml +++ b/definitions/v9/erairaws.yml @@ -144,8 +144,14 @@ search: filters: - name: regexp args: "^(?:.*) - (\\d+ ~ \\d+|\\d+)" + title_movie: + selector: title + filters: + - name: regexp + args: "^(?:.*) - (Movie(?:\\s\\d+)?)" + optional: true title_is_movie: - text: "{{ if .Config.include_movie }} - Movie{{ else }}{{ end }}" + text: "{{ if .Config.include_movie }} - {{ .Result.title_movie }}{{ else }}{{ end }}" optional: true title_has_hevc: selector: title @@ -164,6 +170,12 @@ search: - name: regexp args: "\\[(?:1080p|720p|SD)\\]((?:\\[\\w{2}\\])+)" optional: true + title_categories: + selector: title + filters: + - name: regexp + args: "((?:\\[\\w{3,}\\]|\\[Movie or Special Episode\\])+)$" + optional: true title: selector: title filters: @@ -178,7 +190,7 @@ search: - name: append args: "{{ if .Config.include_subtitles }} {{ .Result.title_subtitles }}{{ else }}{{ end }}" - name: append - args: "{{ if .Config.include_categories }}{{ .Result.categorydesc }}{{ else }}{{ end }}" + args: "{{ if .Config.include_categories }}{{ .Result.title_categories }}{{ else }}{{ end }}" details_link: selector: description filters: From f6072f8a8393524be156f384237ac5183fd3d729 Mon Sep 17 00:00:00 2001 From: mist8kengas Date: Mon, 8 Apr 2024 17:39:59 +0400 Subject: [PATCH 09/16] erairaws: add prefix setting --- definitions/v9/erairaws.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/definitions/v9/erairaws.yml b/definitions/v9/erairaws.yml index 17cf0df82..92d27520d 100644 --- a/definitions/v9/erairaws.yml +++ b/definitions/v9/erairaws.yml @@ -119,6 +119,10 @@ settings: label: "Include v0 releases" type: checkbox default: true + - name: prefix + label: "Prefix (leave blank to disable)" + type: text + default: "[Erai-raws]" search: paths: @@ -189,8 +193,8 @@ search: args: "{{ if .Config.include_resolution }} ({{ .Result.title_resolution }}){{ else }}{{ end }}" - name: append args: "{{ if .Config.include_subtitles }} {{ .Result.title_subtitles }}{{ else }}{{ end }}" - - name: append - args: "{{ if .Config.include_categories }}{{ .Result.title_categories }}{{ else }}{{ end }}" + - name: prepend + args: "{{ if .Config.prefix }}{{ .Config.prefix }} {{ else }}{{ end }}" details_link: selector: description filters: From edbf26b50be62123da63421f71420a155627f55d Mon Sep 17 00:00:00 2001 From: mist8kengas Date: Mon, 8 Apr 2024 17:52:24 +0400 Subject: [PATCH 10/16] erairaws: add resolution fix --- definitions/v9/erairaws.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/definitions/v9/erairaws.yml b/definitions/v9/erairaws.yml index 92d27520d..12a7e4262 100644 --- a/definitions/v9/erairaws.yml +++ b/definitions/v9/erairaws.yml @@ -61,6 +61,10 @@ settings: label: "Include resolution in title" type: checkbox default: true + - name: fix_resolution + label: "Attempt to fix resolution (SD -> 480p)" + type: checkbox + default: false - name: link_type label: "Link Type" type: select @@ -167,6 +171,9 @@ search: filters: - name: regexp args: "\\[(1080p|720p|SD)\\]" + - name: replace + args: + ["SD", "{{ if .Config.fix_resolution }}480p{{ else }}SD{{ end }}"] optional: true title_subtitles: selector: title @@ -193,6 +200,8 @@ search: args: "{{ if .Config.include_resolution }} ({{ .Result.title_resolution }}){{ else }}{{ end }}" - name: append args: "{{ if .Config.include_subtitles }} {{ .Result.title_subtitles }}{{ else }}{{ end }}" + - name: append + args: "{{ if .Config.include_categories }}{{ .Result.title_categories }}{{ else }}{{ end }}" - name: prepend args: "{{ if .Config.prefix }}{{ .Config.prefix }} {{ else }}{{ end }}" details_link: From 27f28348a4dc5f0d45eaec8e7283c0df274f9ac4 Mon Sep 17 00:00:00 2001 From: mist8kengas Date: Mon, 8 Apr 2024 18:06:25 +0400 Subject: [PATCH 11/16] erairaws: remove link_type any --- definitions/v9/erairaws.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/definitions/v9/erairaws.yml b/definitions/v9/erairaws.yml index 12a7e4262..d77df1e9e 100644 --- a/definitions/v9/erairaws.yml +++ b/definitions/v9/erairaws.yml @@ -68,9 +68,8 @@ settings: - name: link_type label: "Link Type" type: select - default: "" + default: magnet options: - "": "Any" torrent: "Torrent" magnet: "Magnet" - name: subtitles From 03047fb9d41eaf0c07482120e524fdfe48d113a7 Mon Sep 17 00:00:00 2001 From: mist8kengas Date: Mon, 8 Apr 2024 18:07:05 +0400 Subject: [PATCH 12/16] erairaws: change to semi-private --- definitions/v9/erairaws.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/definitions/v9/erairaws.yml b/definitions/v9/erairaws.yml index d77df1e9e..a19bca024 100644 --- a/definitions/v9/erairaws.yml +++ b/definitions/v9/erairaws.yml @@ -3,7 +3,7 @@ id: erairaws name: Erai-raws description: "A mysterious organization that releases anime content with multi-subs and more. (Placeholder text)" language: en-US -type: public +type: semi-private encoding: UTF-8 requestDelay: 2 links: From da6c62113966bd84e512e4eb61fe25003a6320c7 Mon Sep 17 00:00:00 2001 From: mist8kengas Date: Mon, 8 Apr 2024 18:17:24 +0400 Subject: [PATCH 13/16] erairaws: fix date time offset --- definitions/v9/erairaws.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/definitions/v9/erairaws.yml b/definitions/v9/erairaws.yml index a19bca024..534378657 100644 --- a/definitions/v9/erairaws.yml +++ b/definitions/v9/erairaws.yml @@ -223,6 +223,8 @@ search: date: selector: pubDate filters: + - name: replace + args: ["+0000", "-00"] - name: dateparse args: "ddd, dd MMM yyyy HH:mm:ss zz" size: From 57e04ee3b0eb71a99c2246b94103438f3cc505a4 Mon Sep 17 00:00:00 2001 From: mist8kengas Date: Tue, 9 Apr 2024 19:34:12 +0400 Subject: [PATCH 14/16] erairaws: lint + format --- definitions/v9/erairaws.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/definitions/v9/erairaws.yml b/definitions/v9/erairaws.yml index 534378657..823105988 100644 --- a/definitions/v9/erairaws.yml +++ b/definitions/v9/erairaws.yml @@ -11,14 +11,14 @@ links: caps: categorymappings: - - { id: 100, cat: TV/Anime, desc: "[Airing]" } - - { id: 110, cat: TV/Anime, desc: "[Finale]" } - - { id: 200, cat: TV/Anime, desc: "[Batch]" } - - { id: 210, cat: TV/Anime, desc: "[Batch][Encoded]" } - - { id: 220, cat: TV/Anime, desc: "[Batch][Raw]" } - - { id: 300, cat: Movies/Other, desc: "[Movie or Special Episode]" } - - { id: 400, cat: TV/Anime, desc: "[Encoded]" } - - { id: 500, cat: TV/Anime, desc: "[Raw]" } + - {id: 100, cat: TV/Anime, desc: "[Airing]"} + - {id: 110, cat: TV/Anime, desc: "[Finale]"} + - {id: 200, cat: TV/Anime, desc: "[Batch]"} + - {id: 210, cat: TV/Anime, desc: "[Batch][Encoded]"} + - {id: 220, cat: TV/Anime, desc: "[Batch][Raw]"} + - {id: 300, cat: Movies/Other, desc: "[Movie or Special Episode]"} + - {id: 400, cat: TV/Anime, desc: "[Encoded]"} + - {id: 500, cat: TV/Anime, desc: "[Raw]"} modes: search: [q] tv-search: [q, season, ep] From 0b592a9d481bf7eeae9f8ec764ef99c7f5fcf0b9 Mon Sep 17 00:00:00 2001 From: mist8kengas Date: Tue, 14 Jan 2025 17:01:55 +0400 Subject: [PATCH 15/16] erairaws: update auth and regex --- definitions/v9/erairaws.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/definitions/v9/erairaws.yml b/definitions/v9/erairaws.yml index 823105988..8441ac099 100644 --- a/definitions/v9/erairaws.yml +++ b/definitions/v9/erairaws.yml @@ -133,7 +133,7 @@ search: response: type: xml inputs: - $raw: "{{ .Config.rss_token }}=0&" + $raw: "token={{ .Config.rss_token }}&" res: "{{ .Config.resolution }}" type: "{{ .Config.link_type }}" subs: "{{ .Config.subtitles }}" @@ -155,7 +155,7 @@ search: selector: title filters: - name: regexp - args: "^(?:.*) - (Movie(?:\\s\\d+)?)" + args: "^(?:.*) \\(?(Movie(?:\\s\\d+)?)\\)?" optional: true title_is_movie: text: "{{ if .Config.include_movie }} - {{ .Result.title_movie }}{{ else }}{{ end }}" @@ -166,19 +166,19 @@ search: - name: regexp args: "(?:\\d+ ~ \\d+|\\d+|Movie) (\\(HEVC\\))" title_resolution: - selector: title + selector: resolution filters: - name: regexp - args: "\\[(1080p|720p|SD)\\]" + args: "(1080p|720p|SD)" - name: replace args: ["SD", "{{ if .Config.fix_resolution }}480p{{ else }}SD{{ end }}"] optional: true title_subtitles: - selector: title + selector: subtitles filters: - name: regexp - args: "\\[(?:1080p|720p|SD)\\]((?:\\[\\w{2}\\])+)" + args: "((?:\\[\\w{2}\\])+)" optional: true title_categories: selector: title From 688f8ff017ea259f9bba1006e336d669fe640e2c Mon Sep 17 00:00:00 2001 From: mist8kengas Date: Tue, 14 Jan 2025 18:20:41 +0400 Subject: [PATCH 16/16] erairaws: add cookie for search --- definitions/v9/erairaws.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/definitions/v9/erairaws.yml b/definitions/v9/erairaws.yml index 8441ac099..48e2aa8df 100644 --- a/definitions/v9/erairaws.yml +++ b/definitions/v9/erairaws.yml @@ -29,6 +29,14 @@ settings: - name: rss_token label: "RSS Token" type: password + - name: cookie + label: "Cookie" + type: text + default: "" + - name: info + label: "How to get Cookie" + type: info + default: "

The cookie is only required if you want to use the Search function

  1. Login to this tracker with your browser
  2. Open the DevTools panel by pressing F12
  3. Select the Network tab
  4. Click on the Doc button (Chrome Browser) or HTML button (FireFox)
  5. Refresh the page by pressing F5
  6. Click on the first row entry
  7. Select the Headers tab on the Right panel
  8. Find 'cookie:' in the Request Headers section
  9. Select and Copy the whole cookie string (everything after 'cookie: ') and Paste here.
" - name: categories label: "Categories" type: select @@ -127,6 +135,14 @@ settings: type: text default: "[Erai-raws]" +login: + method: cookie + inputs: + cookie: "{{ .Config.cookie }}" + test: + path: "/wp-admin/profile.php" + selector: li#wp-admin-bar-logout > a.ab-item[href] + search: paths: - path: '{{ if ne .Config.categories "all" }}/{{ .Config.categories }}{{ else }}{{ end }}/feed/'