Sonarr and custom RSS

Sonarr version (exact version): 2.0.0.4689
Mono version (if Sonarr is not running on Windows): 4.8.0
OS: QTS 4.3
((Debug logs)):
17-4-26 19:21:40.3|Info|RssSyncService|Starting RSS Sync
17-4-26 19:21:41.2|Info|DownloadDecisionMaker|Processing 28 releases
17-4-26 19:21:42.1|Warn|ProcessDownloadDecisions|Couldn’t add report to download queue. The Handmaids Tale S01E03 720p WEBRip HEVC X265-RMTeam

[v2.0.0.4689] MonoTorrent.TorrentException: Invalid torrent file specified —> MonoTorrent.BEncoding.BEncodingException: Could not find what value to decode
at MonoTorrent.BEncoding.BEncodedValue.Decode (MonoTorrent.BEncoding.RawReader reader) [0x00090] in M:\BuildAgent\work\b69c1fe19bfc2c38\src\MonoTorrent\BEncoding\IBEncodedValue.cs:146
at MonoTorrent.BEncoding.BEncodedValue.Decode (System.IO.Stream stream) [0x0000e] in M:\BuildAgent\work\b69c1fe19bfc2c38\src\MonoTorrent\BEncoding\IBEncodedValue.cs:99
at MonoTorrent.Torrent.Load (System.IO.Stream stream, System.String path) [0x0000c] in M:\BuildAgent\work\b69c1fe19bfc2c38\src\MonoTorrent\Torrent.cs:705
— End of inner exception stack trace —
at MonoTorrent.Torrent.Load (System.IO.Stream stream, System.String path) [0x00027] in M:\BuildAgent\work\b69c1fe19bfc2c38\src\MonoTorrent\Torrent.cs:711
at MonoTorrent.Torrent.Load (System.Byte[] data) [0x0000d] in M:\BuildAgent\work\b69c1fe19bfc2c38\src\MonoTorrent\Torrent.cs:556
at NzbDrone.Core.MediaFiles.TorrentInfo.TorrentFileInfoReader.GetHashFromTorrentFile (System.Byte[] fileContents) [0x00000] in M:\BuildAgent\work\b69c1fe19bfc2c38\src\NzbDrone.Core\MediaFiles\TorrentInfo\TorrentFileInfoReader.cs:14
at NzbDrone.Core.Download.TorrentClientBase1[TSettings].DownloadFromWebUrl (NzbDrone.Core.Parser.Model.RemoteEpisode remoteEpisode, System.String torrentUrl) [0x0019d] in M:\BuildAgent\work\b69c1fe19bfc2c38\src\NzbDrone.Core\Download\TorrentClientBase.cs:180 at NzbDrone.Core.Download.TorrentClientBase1[TSettings].Download (NzbDrone.Core.Parser.Model.RemoteEpisode remoteEpisode) [0x00148] in M:\BuildAgent\work\b69c1fe19bfc2c38\src\NzbDrone.Core\Download\TorrentClientBase.cs:117
at NzbDrone.Core.Download.DownloadService.DownloadReport (NzbDrone.Core.Parser.Model.RemoteEpisode remoteEpisode) [0x00171] in M:\BuildAgent\work\b69c1fe19bfc2c38\src\NzbDrone.Core\Download\DownloadService.cs:66
at NzbDrone.Core.Download.ProcessDownloadDecisions.ProcessDecisions (System.Collections.Generic.List`1[T] decisions) [0x0014e] in M:\BuildAgent\work\b69c1fe19bfc2c38\src\NzbDrone.Core\Download\ProcessDownloadDecisions.cs:74

17-4-26 19:21:42.1|Info|RssSyncService|RSS Sync Completed. Reports found: 28, Reports grabbed: 0

Description of issue:

I just set up ascript which searches for the latest x265 releases from MagnetDL and generates an RSS feed from them. The RSS works fine, is xml compliant and is tested OK with Sonarr.
However, while it appears that Sonarr finds the release I’m looking for (The Handmaids Tale S01E03 720p WEBRip HEVC X265-RMTeam) it doesn’t add it to Transmission.

My question is: is a .torrent file needed by Sonarr to add tasks to Transmission or is it fine with a magnet link? If the magnet link is taken into account, why doesn’t Sonarr send it to Transmission? The RSS I cooked up just pulls up the magnet link and no .torrent file address, is that the problem?

Lastly, thanks to everyone involved in the Sonarr project!

No, a magnet link is fine.

Sonarr was processing the magnet as a torrent and that failed, likely because it doesn’t know it’s a torrent. Sonarr relies on the link starting with magnet: to determine if it’s a magnet or a torrent.

Some examples of supported RSS feeds are here: Sonarr/src/NzbDrone.Core.Test/Files/Indexers/TorrentRss at develop · Sonarr/Sonarr · GitHub

Sonarr uses those files in tests to verify support, so making your feed similar should yield a successful result.

Hi Markus and thanks for your answer!

I’ve checked the few RSS linked in your message and didn’t see any major difference compared to the one I generate.
I’ve copy-pasted its source for the 3 most recent items, maybe you can have a look and you’ll spot the problem?

https://pastebin.com/6mdskDEK

What do ((trace logs)) show when Sonarr is fetching it? That should log the URL, which may indicate where the issue lies.

Thank again Markus.

I’ve checked the trace and debug logs and while looking at them it came to my mind that maybe the tag in the RSS was interfering with the transaction between Sonarr and Transmission so I removed it from the RSS.
Sonarr now successfully sends the information to Transmission. I’ll have to test it further with the next release I’m looking for but it appears to be working.

Thanks again for your support Markus!

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.