title cleaning.
This commit is contained in:
parent
c6736ba1bb
commit
0fb8abe1a0
@ -112,6 +112,7 @@ def find_sessionID(response):
|
|||||||
user = video['User']['title']
|
user = video['User']['title']
|
||||||
sess_key = video['sessionKey']
|
sess_key = video['sessionKey']
|
||||||
title = (video['grandparentTitle'] + ' - ' if video['type'] == 'episode' else '') + video['title']
|
title = (video['grandparentTitle'] + ' - ' if video['type'] == 'episode' else '') + video['title']
|
||||||
|
title = unicodedata.normalize('NFKD', title).encode('ascii','ignore')
|
||||||
sessions.append((sess_id, user, title, sess_key))
|
sessions.append((sess_id, user, title, sess_key))
|
||||||
else:
|
else:
|
||||||
pass
|
pass
|
||||||
|
Loading…
Reference in New Issue
Block a user