Torrent

:placard: Summary Parses .torrent files in the specified directory for embedded metadata.
:link: Repository https://github.com/stashapp/CommunityScrapers/tree/master/scrapers/torrent
:information_source: Source URL https://stashapp.github.io/CommunityScrapers/stable/index.yml
:open_book: Install How to install a scraper?

This script parses all torrent files in the specified directory for embedded metadata.

So I think I’ve properly installed it, but every time I try to scrape a scene against my collection or torrents, I get this message:

scraper torrent: could not unmarshal json from script output: EOF

Any idea what I need to fix? I’m running on the current version of Python.

check logs, usual culprit is bencode or just not a supported torrent

the torrent scraper pulls title, cover, metadata from the .torrent file. I believe the intended site for these would be EMP

Yup. They’re EMPs. I’ll go through that. Thanks.

So I looked at the logs, and every time I try to use the plugin, I get this error:

2026-03-12 21:48:43
Error   
scrapeSingleScene: input: scrapeSingleScene scraper torrent: could not unmarshal json from script output: EOF
2026-03-12 21:48:43
Error   
could not unmarshal json from script output: EOF
2026-03-12 21:48:43
Error   
[Scrape / Torrent] SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape
2026-03-12 21:48:43
Error   
[Scrape / Torrent]                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2026-03-12 21:48:43
Error   
[Scrape / Torrent]     TORRENTS_PATH = Path("C:\Users\username\Downloads\Torrents\finishedtorrents")
2026-03-12 21:48:43
Error   
[Scrape / Torrent]   File "C:\Users\username\.stash\scrapers\community\torrent\torrent.py", line 16

(I substituted username for my windows name.) Does that narrow it down?

yeah this points to something malformed in the file or it oculd be path parsing since you’re on windows?

Is there a right way to parse a path in windows? Do I have to move the folder of completed torrents into the stash folder?

I’m trying to use the torrent scraper to identify videos. I’m successfully able to scrape many of the incoming video files using the Stashdb and PornDB scrapers after running the Selective Scan task to generate hashes. But I always end up with some scenes that can’t be identified, so I wanted to use the Torrent scraper. However, I keep getting the following error.Note that I’m running this in windows.

26-03-21 22:36:58
Error   
error scraping from scraper torrent: scraper torrent: could not unmarshal json from script output: EOF
2026-03-21 22:36:58
Error   
could not unmarshal json from script output: EOF
2026-03-21 22:36:58
Error   
[Scrape / Torrent] SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape
2026-03-21 22:36:58
Error   
[Scrape / Torrent]                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2026-03-21 22:36:58
Error   
[Scrape / Torrent]     TORRENTS_PATH = Path(*location of finished torrents*)
2026-03-21 22:36:58
Error   
[Scrape / Torrent]   File *location of scrapers in my install*, line 16 

I’ve substituted the paths to hide my username. They’re Windows paths.

Any idea what I can do to fix this?

Bumping to see if there’s any answers.