nning / transmission-rss

Adds torrents from RSS feeds to Transmission web frontend
GNU General Public License v3.0
450 stars 47 forks source link

Unable to download anyfile - help needed on troubleshooting #121

Open exup opened 3 years ago

exup commented 3 years ago

Problem is I need help working out why I am not getting any successful download. The web client is working fine and downloads torrents manually from same website I am getting the rss feed. I open the feed url I can see the whole list of feeds. My regex is very simple for testing and should be at the start of all torrents but nothing is showing in web interface.

Question 1: I assume if it succesfully get a match and starts to download, you would see this in the web client Question 2 : Would you also see this in the logs? Question 3: The wait interval is that equivalent to 600 seconds? Question 4: What is meant by " no privilege dropping" in the log file.

I have edited the feed URL to be junk substituting the real strings with rubbish values.

`feeds:

log: target: /var/log/transmission-rss.log level: debug Log file # Logfile created on 2021-07-10 17:23:09 +1000 by logger.rb/v1.4.3 2021-07-10 17:27:11 (info) transmission-rss 1.2.0 2021-07-10 17:27:11 (debug) {"feeds"=>[{"url"=>"https://www.motorracing/rss/999999/sdfsdfsdf/8040/&:COOKIE:uid=999999;idh=rererere", "> 2021-07-10 17:27:11 (debug) no privilege dropping 2021-07-10 17:27:11 (debug) 50 uris from seenfile 2021-07-10 17:27:11 (debug) forked 14934 2021-07-10 17:27:11 (debug) aggregator start 2021-07-10 17:27:11 (debug) aggregate https://www.motorracing/rss/999999/sdfsdfsdf/8040/&:COOKIE:uid=999999;idh=rererere `

tim09010 commented 3 years ago

1: Yes. When a successful match starts, it appears in the web interface. 2: Yes. It looks something like: 2021-07-08 23:44:54 (debug) on_new_item event https://URL_TO_TORRENT 2021-07-08 23:44:54 (debug) request transmission:9091 2021-07-08 23:44:54 (debug) got session id 48-character-hash 2021-07-08 23:44:54 (debug) request transmission:9091 2021-07-08 23:44:55 (debug) torrent-add result: success (id 4)

(I run this in a Docker container, yours may look different if you aren't.)

3: Yes, it looks for new downloads every 10 minutes. 4: Unsure.

Regarding your problem, you have 50 items in your seenfile, which are downloads that your client will ignore when scanning for new downloads - this prevents the data from being downloaded again if you were to clear the download from the web interface. If you tried the RSS without a regex first, all the entries in the feed will be in this file and are therefore being ignored. Try clearing your seen file and restarting the container/program.

exup commented 3 years ago

OK I found the seen file, for me it is under /root/.config/transmission/seen delete its contents and yes, it pulled down all the successful matches. But here is the problem though seems the torrent file is invalid or corrupt.

2021-07-11 16:02:06 (debug) on_new_item event https://www.racingfor.me/download/172490/Moto2.2021.Round09.Netherlands.FP2.Web-Rip.720p.X264.English-VERUM 2021-07-11 16:02:06 (debug) request localhost:9091 2021-07-11 16:02:06 (debug) got session id qH.................................s99IN 2021-07-11 16:02:06 (debug) request localhost:9091 2021-07-11 16:02:07 (debug) torrent-add result: invalid or corrupt torrent file So my RSS feed in a browser looks like this MotoGP.2021.09.Netherlands.Race.1080p.X264.German https://www.motorracing/download/111/MotoGP.2021.09.Netherlands.Race.1080p.X264.German https://www.motorracing/details/111/MotoGP.2021.09.Netherlands.Race.1080p.X264.German MotoGP - MotoGP<br />Added: Tue, 06 Jul 2021 21:25:47<br />Size: 2.00 GB 2021-07-06 21:25:47

As a test from the command line, I ran

wget -O https://www.motorracing/download/173055/MotoGP.2021.09.Netherlands.Race.1080p.X264.German and it downloads a zero byte file without the correct extension. So I think the down load link needs to have credentials or cookie password much like how my RSS feed URL has them included. So the RSS feed works but then using the download link its denied. I assume the config.json file username and password is meant for the transmission-cli program and not for RSS feed username and password?

This from the torrent forum in question.

However, when you use an RSS-reader, this information isn't being passed on to the download page, so it will not allow access to the .torrent file, hence the 403 issue. To bypass this, we have created a tutorial that shows you how to include your User ID, Torrent Pass and "password" to the RSS url to supply the download page with the needed information. Unfortunately, some clients do not play nice and specific plugins are needed to make this work (the so-called Cookie-plugins). But again, not all clients allow such plugins to be used, making our feed unusable with those RSS readers.

The only option you have, is to drop a request with the developers of the software to implement a similar plugin system (we are not the only site that have an RSS link that requires a cookie), or switch download clients.

tim09010 commented 3 years ago

Interesting, I was unaware that credentials-based RSS was a thing. I don't think this client supports it I'm afraid and I don't think it's being maintained anymore either, so I wouldn't expect such support to be added anytime soon.

exup commented 3 years ago

OK thanks for helping, I will try another client. I think FlexGet is popular.