clean title

This commit is contained in:
blacktwin 2017-08-26 22:42:30 -04:00 committed by GitHub
parent 91a439741e
commit 184f520994

View File

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