ozencb / yts-scraper

Download .torrent files from YTS YIFY
MIT License
52 stars 23 forks source link

"Not a valid bencoded string." #8

Closed Azertyfied closed 4 years ago

Azertyfied commented 4 years ago

I'm sorry for asking for assistance once again, but I just can't succeed in downloading all the .torrent files based on my query [yts-scraper -q 1080p -r 7].

I try using the "yts-scraper -q 1080p -r 7" query, which works fine at first, but it always stops after a certain percentage, 19% in this case. I can never get to 100%, not with nor without the <-m> addition.

Since I didn't want to run the query again starting from page 1, I wanted to use your <-p> addition. But for some reason the pages in CMD differ from the ones on the actual https://yts.mx/ site. That isn't a huge issue however, since I can always go back or ahead a few pages to pick up where the scraper left off.

The main problem though is that I couldn't get any of the .torrent files to open after completion. I always get an error in Deluge, saying "not a valid bencoded string". Could you maybe try to run the entire <yts-scraper -q 1080p -r 7> command to see what happens to you? It would help if you could filter out certain years to narrow down the search. So an extensions to the <-y> addition where you could set both a start and end year. Is that possible?

Regardless of the outcome, thanks again for taking your time to look into this! :)

1 2

ozencb commented 4 years ago

Hello, there! Thank you for the feedback.

I started working on this bug but I reckon it will take some time to pinpoint the issue because at this moment YTS API is behaving rather oddly. I do not really know what is going on with it so I will have to look deeper into it.

It is also weird that it stops suddenly without any errors. I mean, if it was a broken URL or empty binary content it would result in an error, not a sudden termination. So, it seems we are in for a ride but it is going to be fun 😊

Regarding the issue with torrent files not opening; I only test these on Qbittorrent and they all work fine. Did you try another torrent client? Are all of them broken? I also heard that in some countries ISPs corrupt torrent files on purpose because of government restrictions so can you try using a VPN?

Best regards!

Azertyfied commented 4 years ago

Hi

Thanks for picking this up so quickly! I haven't tried another torrent client yet, I'll make sure to give that a try! I do use a VPN service already, but I'll toy around with that as well!

Have fun! :p

Azertyfied commented 4 years ago

image Just gave it try with qBittorrent and with several .torrent files, but the issue seems to persist.

ozencb commented 4 years ago

Have you tried a different VPN, preferably a tunnel to a country with looser torrenting restrictions?

Azertyfied commented 4 years ago

When trying a VPN based in for example India or Brazil instead of a western country, it does seem to make a difference. So in other words, the .torrent files are indeed still valid when using those countries. Good thinking! :p

ozencb commented 4 years ago

I am glad that worked you :) Since this particular issue is related to ISP's file corruption practices and not to the script itself, I will close it. I will work on the other problem when I have time.

Best regards