mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-18 03:18:19 -07:00
Merge pull request #3621 from jesse231/append-year
This commit is contained in:
commit
9f78268a9b
@ -210,7 +210,18 @@ import { setBackdropTransparency, TRANSPARENCY_LEVEL } from '../../../components
|
||||
itemName = parentName || '';
|
||||
}
|
||||
|
||||
LibraryMenu.setTitle(itemName);
|
||||
// Display the item with its premiere date if it has one
|
||||
let title = itemName;
|
||||
if (item.PremiereDate) {
|
||||
try {
|
||||
const year = datetime.parseISO8601Date(item.PremiereDate).getFullYear();
|
||||
title += ` (${year})`;
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
}
|
||||
}
|
||||
|
||||
LibraryMenu.setTitle(title);
|
||||
|
||||
const documentTitle = parentName || (item ? item.Name : null);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user