clean title
This commit is contained in:
parent
91a439741e
commit
184f520994
@ -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))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user