From 184f52099478c575e8e35a9a86d3cf57260304f0 Mon Sep 17 00:00:00 2001 From: blacktwin Date: Sat, 26 Aug 2017 22:42:30 -0400 Subject: [PATCH] clean title --- killstream/kill_session_bitrate.py | 1 + 1 file changed, 1 insertion(+) diff --git a/killstream/kill_session_bitrate.py b/killstream/kill_session_bitrate.py index e0ac713..313a00c 100644 --- a/killstream/kill_session_bitrate.py +++ b/killstream/kill_session_bitrate.py @@ -62,6 +62,7 @@ for video in response['MediaContainer']['Video']: id = video['Session']['id'] user = video['User']['title'] title = (video['grandparentTitle'] + ' - ' if video['type'] == 'episode' else '') + video['title'] + title = unicodedata.normalize('NFKD', title).encode('ascii','ignore').translate(None,"'") bitrate = media['bitrate'] sessions.append((id, user, title, bitrate))