Update tables to support season titles

This commit is contained in:
JonnyWong16 2021-03-04 18:30:16 -08:00
parent f92ba453c8
commit eb728a0d54
No known key found for this signature in database
GPG key ID: B1F1F9807184697A
6 changed files with 12 additions and 5 deletions

View file

@ -865,4 +865,11 @@ MEDIA_TYPE_HEADERS = {
'video': 'Videos',
'audio': 'Tracks',
'photo': 'Photos'
}
function short_season(title) {
if (title.startsWith('Season ') && /^\d+$/.test(title.substring(7))) {
return 'S' + title.substring(7)
}
return title
}