Commit bb8a5b8a authored by echel0n's avatar echel0n
Browse files

Fix unicode issues for Newpct torrent provider

parent c0f1698d
# Changelog
- * 3ddd4d7 - 2017-12-15: Added custom url setting to torrent9 provider
- * 54e8976 - 2017-12-15: Fix unicode issues for Newpct torrent provider
- * c0f1698 - 2017-12-15: Added custom url setting to torrent9 provider
- * 032e9ed - 2017-12-15: Release v9.2.64
- * 92337a7 - 2017-12-15: Added code to cleanup cached provider results with UNKNOWN quality Added code to prevent parsed search results with UNKNOWN quality from being cached
- * 9d35ea1 - 2017-12-14: Release v9.2.63
......
......@@ -166,7 +166,10 @@ class NewpctProvider(TorrentProvider):
def _process_title(self, title, url):
# Convert to unicode and strip unwanted characters
title = title.encode('latin-1').decode('utf8').strip()
try:
title = title.encode('latin-1').decode('utf8').strip()
except Exception:
title = title.strip()
# Check if subtitled
subtitles = re.search(r'\[V.O.[^\[]*]', title, flags=re.I)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment