bogenpirat / remote-torrent-adder

A handy Chrome extension to add torrent files to torrent clients
237 stars 80 forks source link

catch jackett links #271

Closed emilio215 closed 4 years ago

emilio215 commented 4 years ago

im struggling to get the regex working for jackett links.

an example looks like

http://[MYIPADRESS]:[PORT]/dl/TRACKER/?jackett_apikey=[LONGSTATICSTRING]&file=The.Torrent.Name.S01.1080p.BluRay.DD5.1.x264

what ive tried

\?jackett_apikey= \dl

any help would be appreciated

JPRuskin commented 4 years ago

I think you need to escape at least the questionmark in that regex - though it's not exactly the same, playing on regexr.com may help.

So, suggestion: "\?jackett_apikey=".

emilio215 commented 4 years ago

just tried, no luck. thanks though ill check out that website.

bogenpirat commented 4 years ago

i just copy-pasted the suggestion from https://github.com/bogenpirat/remote-torrent-adder/issues/271#issuecomment-600841325 into my link catcher settings, tried it on this sample link and RTA catches the link just fine (just doesn't add anything because the url doesn't exist, obviously). is the link format incomplete?