mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-06 21:21:15 -07:00
Update tables to support season titles
This commit is contained in:
parent
f92ba453c8
commit
eb728a0d54
6 changed files with 12 additions and 5 deletions
|
@ -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
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue