Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
SiCKRAGE
sickrage
Commits
bb8a5b8a
Commit
bb8a5b8a
authored
Dec 15, 2017
by
echel0n
Browse files
Fix unicode issues for Newpct torrent provider
parent
c0f1698d
Changes
2
Hide whitespace changes
Inline
Side-by-side
changelog.md
View file @
bb8a5b8a
# 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
...
...
sickrage/providers/torrent/newpct.py
View file @
bb8a5b8a
...
...
@@ -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
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment