From eb579adda9f6b61c640913e2ca4ac6a6deb7dd1e Mon Sep 17 00:00:00 2001 From: blacktwin Date: Fri, 14 Jul 2017 08:38:56 -0400 Subject: [PATCH] Update kill_else_if_buffering.py --- killstream/kill_else_if_buffering.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/killstream/kill_else_if_buffering.py b/killstream/kill_else_if_buffering.py index 1338d75..a3fcc3a 100644 --- a/killstream/kill_else_if_buffering.py +++ b/killstream/kill_else_if_buffering.py @@ -17,7 +17,7 @@ import requests import platform from uuid import getnode from operator import itemgetter - +import unicodedata ## EDIT THESE SETTINGS ## PLEX_HOST = '' @@ -92,6 +92,7 @@ if __name__ == '__main__': percent_comp = int((float(s['viewOffset']) / float(s['duration'])) * 100) time_to_comp = int(int(s['duration']) - int(s['viewOffset'])) / 1000 / 60 title = s['title'] + title = unicodedata.normalize('NFKD', title).encode('ascii','ignore') add_to_dictlist(user_dict, user, [id, percent_comp, title, user, time_to_comp]) except KeyError: