fix(indexers): use rss download url for hdt (#251)

* fix(indexers): use rss download url for hdt
This commit is contained in:
Ludvig Lundgren 2022-04-20 20:30:36 +02:00 committed by GitHub
parent 3d018404a9
commit e934795a04
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -14,10 +14,14 @@ supports:
- rss - rss
source: xbtit source: xbtit
settings: settings:
- name: cookie - name: key
type: secret type: secret
label: Cookie label: RSS key
help: "Check how to get cookies in your browser and find the uid and pass cookies. Example: uid=1234; pass=asdf12347asdf13" help: "Generate a RSS feed and copy key from URL"
- name: token
type: secret
label: RSS Token
help: "Generate a RSS feed and copy token from URL"
irc: irc:
network: P2P-Network network: P2P-Network
@ -45,15 +49,15 @@ parse:
lines: lines:
- test: - test:
- "New Torrent in category [Movies/Remux] That Movie (2008) Blu-ray 1080p REMUX AVC DTS-HD MA 7 1 (14.60 GB) uploaded! Download: https://hd-torrents.org/download.php?id=AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - "New Torrent in category [Movies/Remux] That Movie (2008) Blu-ray 1080p REMUX AVC DTS-HD MA 7 1 (14.60 GB) uploaded! Download: https://hd-torrents.org/download.php?id=AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
pattern: 'New Torrent in category \[([^\]]*)\] (.*) \(([^\)]*)\) uploaded! Download\: (https?\:\/\/.*[&\?]id=.+)' pattern: 'New Torrent in category \[([^\]]*)\] (.*) \(([^\)]*)\) uploaded! Download\: (https?\:\/\/[^\/]+\/).+id=(.+)'
vars: vars:
- category - category
- torrentName - torrentName
- torrentSize - torrentSize
- baseUrl - baseUrl
- torrentId
match: match:
torrenturl: "{{ .baseUrl }}&f={{ .torrentName }}.torrent" torrenturl: "{{ .baseUrl }}rss/?action=download&key={{ .key }}&token={{ .token }}&hash={{ .torrentId }}&title={{ .torrentName }}"
cookie: true
encode: encode:
- torrentName - torrentName