Update kill_else_if_buffering.py
This commit is contained in:
parent
a7d5c3f3a2
commit
eb579adda9
@ -17,7 +17,7 @@ import requests
|
|||||||
import platform
|
import platform
|
||||||
from uuid import getnode
|
from uuid import getnode
|
||||||
from operator import itemgetter
|
from operator import itemgetter
|
||||||
|
import unicodedata
|
||||||
|
|
||||||
## EDIT THESE SETTINGS ##
|
## EDIT THESE SETTINGS ##
|
||||||
PLEX_HOST = ''
|
PLEX_HOST = ''
|
||||||
@ -92,6 +92,7 @@ if __name__ == '__main__':
|
|||||||
percent_comp = int((float(s['viewOffset']) / float(s['duration'])) * 100)
|
percent_comp = int((float(s['viewOffset']) / float(s['duration'])) * 100)
|
||||||
time_to_comp = int(int(s['duration']) - int(s['viewOffset'])) / 1000 / 60
|
time_to_comp = int(int(s['duration']) - int(s['viewOffset'])) / 1000 / 60
|
||||||
title = s['title']
|
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])
|
add_to_dictlist(user_dict, user, [id, percent_comp, title, user, time_to_comp])
|
||||||
|
|
||||||
except KeyError:
|
except KeyError:
|
||||||
|
Loading…
Reference in New Issue
Block a user