1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-11-05 17:05:03 -05:00

Merge pull request #1343 from CoRpO/develop

Fix for RARBG provider
This commit is contained in:
Alexandre Beloin 2015-02-18 11:05:13 -05:00
commit 4f7310b6f7

View File

@ -198,7 +198,7 @@ class RarbgProvider(generic.TorrentProvider):
torrent_name = str(torrentName)
torrentId = result.find_all('td')[1].find_all('a')[0]['href'][1:].replace(
'torrent/', '')
torrent_download_url = (self.urls['download'] % (torrentId, torrent_name + '-[rarbg.com].torrent')).encode('utf8')
torrent_download_url = (self.urls['download'] % (torrentId, urllib.quote(torrent_name) + '-[rarbg.com].torrent')).encode('utf8')
except (AttributeError, TypeError):
continue