title cleaning.

This commit is contained in:
blacktwin 2017-08-21 10:27:11 -04:00 committed by GitHub
parent c6736ba1bb
commit 0fb8abe1a0

View File

@ -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