Browse Source

Fix Torrenleech .torrent URLs

They appear to have switched to relative links. Use the download base url with the link scraped from the page.
pull/7273/head
allthestairs 7 years ago
committed by GitHub
parent
commit
8157050b97
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      couchpotato/core/media/_base/providers/torrent/torrentleech.py

2
couchpotato/core/media/_base/providers/torrent/torrentleech.py

@ -50,7 +50,7 @@ class Base(TorrentProvider):
results.append({
'id': link['href'].replace('/torrent/', ''),
'name': six.text_type(link.string),
'url': url['href'],
'url': self.urls['download'] % url['href'],
'detail_url': self.urls['download'] % details['href'],
'size': self.parseSize(result.find_all('td')[4].string),
'seeders': tryInt(result.find('td', attrs = {'class': 'seeders'}).string),

Loading…
Cancel
Save