TorrentBytes cut of longer titles

fix #4590
This commit is contained in:
Ruud
2015-01-31 10:32:15 +01:00
parent 770c2be14c
commit b00e69e222

View File

@@ -56,7 +56,7 @@ class Base(TorrentProvider):
full_id = link['href'].replace('details.php?id=', '')
torrent_id = full_id[:6]
name = toUnicode(link.contents[0].encode('ISO-8859-1')).strip()
name = toUnicode(link.get('title', link.contents[0]).encode('ISO-8859-1')).strip()
results.append({
'id': torrent_id,