Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ChuckCassadyJR opened this issue Nov 19, 2021 · 7 comments

Comments

@ChuckCassadyJR
Copy link

ChuckCassadyJR commented Nov 19, 2021

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
Copy link
Author

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
Copy link
Collaborator

rnhmjoj commented Nov 20, 2021

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
Copy link
Collaborator

rnhmjoj commented Nov 23, 2021

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
Copy link
Author

ChuckCassadyJR commented Nov 23, 2021

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
Copy link
Collaborator

rnhmjoj commented Nov 23, 2021

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
Copy link
Author

ChuckCassadyJR commented Nov 23, 2021

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
Copy link
Collaborator

rnhmjoj commented Nov 28, 2021

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: rakshasa/rtorrent#602

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants