vikstrous / pirate-get

A command line interface for The Pirate Bay
GNU Affero General Public License v3.0
337 stars 53 forks source link

Exception: <urlopen error [Errno -5] No address associated with hostname> #146

Open ChuckCassadyJR opened 2 years ago

ChuckCassadyJR commented 2 years ago

I've had this one once in the past while trying to download torrent files using command t[0/1/2/etc] but it resolved itself within a few hrs.

Its lasted > 24 hrs at this point. Any help?

ChuckCassadyJR commented 2 years ago

Think this is due to itorrents.org being down, may look at forking and providing a fallback torrent cache if this is permanent because otherwise this tool is broken.

rnhmjoj commented 2 years ago

Think this is due to itorrents.org being down

Looks like it. I don't use this feature much, so I don't know about alternative services. I'm open to suggestions.

rnhmjoj commented 2 years ago

because otherwise this tool is broken

Ah, if you mean pirate-get in general: that's not true. You can and should use magnets instead of .torrents, in fact the pirate bay stopped providing them long ago.

ChuckCassadyJR commented 2 years ago

Ah, if you mean pirate-get in general: that's not true.

Ah no sorry I just meant the .torrent download feature. It seems itorrents.org is back up, but it does make this feature unreliable if the site goes down (I know not a failing of pirate-get, but its less convenient for those who use the feature).

The torrent client I'm using (rTorrent for Arch Linux) does play nice with magnet links but not ones I can grab directly using pirate-get. Works fine with copying magnet links directly from TPB but I'm yet to take the time to work out whats different between the links from TPB and the ones pirate-get is returning.

rnhmjoj commented 2 years ago

Works fine with copying magnet links directly from TPB but I'm yet to take the time to work out whats different between the links from TPB and the ones pirate-get is returning.

The website and pirate-get are using the same API to get the info-hash, but the magnet URI is built up afterwards, so it could be slightly different. Can you send me one that works and one that doesn't?

ChuckCassadyJR commented 2 years ago

Thanks for looking at this @rnhmjoj

Here is one that works copied directly from TBP..

magnet:?xt=urn:btih:A4F39C22AD7644BC253BA50F936CA8E2D52B242A&dn=Pirates%20of%20the%20Carribean%3A%20The%20Curse%20of%20the%20Black%20Pearl(2003)DVDR&tr=udp%3A%2F%2Ftracker.coppersurfer.tk%3A6969%2Fannounce&tr=udp%3A%2F%2Ftracker.openbittorrent.com%3A6969%2Fannounce&tr=udp%3A%2F%2F9.rarbg.to%3A2710%2Fannounce&tr=udp%3A%2F%2F9.rarbg.me%3A2780%2Fannounce&tr=udp%3A%2F%2F9.rarbg.to%3A2730%2Fannounce&tr=udp%3A%2F%2Ftracker.opentrackr.org%3A1337&tr=http%3A%2F%2Fp4p.arenabg.com%3A1337%2Fannounce&tr=udp%3A%2F%2Ftracker.torrent.eu.org%3A451%2Fannounce&tr=udp%3A%2F%2Ftracker.tiny-vps.com%3A6969%2Fannounce&tr=udp%3A%2F%2Fopen.stealth.si%3A80%2Fannounce

And one from pirate-get for the same torrent, looks like the main difference is just tracker query strings..

magnet:?xt=urn:btih:A4F39C22AD7644BC253BA50F936CA8E2D52B242A&dn=Pirates%20of%20the%20Carribean%3A%20The%20Curse%20of%20the%20Black%20Pearl%282003%29DVDR

And in fact the error I get in rtorrent is Could not create download: Could not find any trackers

To clarify, I am using the copy to clipboard feature c[0/1/2 etc]

rnhmjoj commented 2 years ago

Beside the parenthesis escaping, the only difference is pirate-get doesn't add a predefined list of trackers. I wonder if this issue is related: https://github.com/rakshasa/rtorrent/issues/602