From 041ee4cebed4942f43619ff2ce228554da1105e7 Mon Sep 17 00:00:00 2001 From: martylukyy <35452459+martylukyy@users.noreply.github.com> Date: Sat, 24 Dec 2022 18:42:05 +0100 Subject: [PATCH] fix(indexers): TS regex (#579) * fix(indexers): TS regex TS got rid of the "id=" part in their announces, resulting in our pattern not matching anymore. Adjusted our regex with capturing the ID after `/` instead of `id=`. Tested this the new expression with 1180 announces of which all resulted in a match. * fixed test fixed test to match new regex --- internal/indexer/definitions/torrentseeds.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/indexer/definitions/torrentseeds.yaml b/internal/indexer/definitions/torrentseeds.yaml index 21d5bb7..6e9f2a4 100644 --- a/internal/indexer/definitions/torrentseeds.yaml +++ b/internal/indexer/definitions/torrentseeds.yaml @@ -58,8 +58,8 @@ irc: type: single lines: - test: - - "New: This.Is.A.New.show.S00E00.720p.WEB.H264-Test .:. Category: TV/HD .:. Size: 364.82 MB .:. URL: https://www.torrentseeds.org/details.php?id=000000 .:. Uploaded by: George." - pattern: 'New: (.+) \.:\. Category: (.+) \.:\. Size: (.+) \.:\. URL: (https?\:\/\/.+\/).+id=(\d+) \.:\. Uploaded by: (.*)\.' + - "New: This.Is.A.New.show.S00E00.720p.WEB.H264-Test .:. Category: TV/HD .:. Size: 706.15 MiB .:. URL: https://www.torrentseeds.org/torrents/0000000 .:. Uploaded by: George." + pattern: 'New: (.+) \.:\. Category: (.+) \.:\. Size: (.+) \.:\. URL: (https?\:\/\/.+\/).+/(\d+) \.:\. Uploaded by: (.*)\.' vars: - torrentName - category