mirror of
https://github.com/blacktwin/JBOPS.git
synced 2025-12-17 05:25:36 +00:00
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']
|
id = video['Session']['id']
|
||||||
user = video['User']['title']
|
user = video['User']['title']
|
||||||
title = (video['grandparentTitle'] + ' - ' if video['type'] == 'episode' else '') + video['title']
|
title = (video['grandparentTitle'] + ' - ' if video['type'] == 'episode' else '') + video['title']
|
||||||
|
title = unicodedata.normalize('NFKD', title).encode('ascii','ignore').translate(None,"'")
|
||||||
bitrate = media['bitrate']
|
bitrate = media['bitrate']
|
||||||
sessions.append((id, user, title, bitrate))
|
sessions.append((id, user, title, bitrate))
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user