From 0fb8abe1a0269c14571b322efabc287be3125b2d Mon Sep 17 00:00:00 2001 From: blacktwin Date: Mon, 21 Aug 2017 10:27:11 -0400 Subject: [PATCH] title cleaning. --- killstream/create_wait_kill_trans.py | 1 + 1 file changed, 1 insertion(+) diff --git a/killstream/create_wait_kill_trans.py b/killstream/create_wait_kill_trans.py index 6597efa..5333625 100644 --- a/killstream/create_wait_kill_trans.py +++ b/killstream/create_wait_kill_trans.py @@ -112,6 +112,7 @@ def find_sessionID(response): user = video['User']['title'] sess_key = video['sessionKey'] 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)) else: pass