1 parent
7a1b914824
commit
387a711538
1 file changed
+4
-3
@@ -1,7 +1,7 @@
|
|||||||
import traceback
|
import traceback
|
||||||
|
|
||||||
from bs4 import BeautifulSoup
|
from bs4 import BeautifulSoup
|
||||||
from couchpotato.core.helpers.encoding import tryUrlencode
|
from couchpotato.core.helpers.encoding import tryUrlencode, toUnicode
|
||||||
from couchpotato.core.helpers.variable import tryInt
|
from couchpotato.core.helpers.variable import tryInt
|
||||||
from couchpotato.core.logger import CPLog
|
from couchpotato.core.logger import CPLog
|
||||||
from couchpotato.core.media._base.providers.torrent.base import TorrentProvider
|
from couchpotato.core.media._base.providers.torrent.base import TorrentProvider
|
||||||
@@ -56,11 +56,12 @@ class Base(TorrentProvider):
|
|||||||
|
|
||||||
full_id = link['href'].replace('details.php?id=', '')
|
full_id = link['href'].replace('details.php?id=', '')
|
||||||
torrent_id = full_id[:6]
|
torrent_id = full_id[:6]
|
||||||
|
name = toUnicode(link.contents[0])
|
||||||
|
|
||||||
results.append({
|
results.append({
|
||||||
'id': torrent_id,
|
'id': torrent_id,
|
||||||
'name': link.contents[0],
|
'name': name,
|
||||||
'url': self.urls['download'] % (torrent_id, link.contents[0]),
|
'url': self.urls['download'] % (torrent_id, name),
|
||||||
'detail_url': self.urls['detail'] % torrent_id,
|
'detail_url': self.urls['detail'] % torrent_id,
|
||||||
'size': self.parseSize(cells[6].contents[0] + cells[6].contents[2]),
|
'size': self.parseSize(cells[6].contents[0] + cells[6].contents[2]),
|
||||||
'seeders': tryInt(cells[8].find('span').contents[0]),
|
'seeders': tryInt(cells[8].find('span').contents[0]),
|
||||||
|
|||||||
Reference in new issue
Block a user