Remove unused AudioPodcast item type

This commit is contained in:
David Federman
2026-01-26 14:25:13 -08:00
parent 185519a4c3
commit d660a45e02
5 changed files with 3 additions and 9 deletions
+1 -2
View File
@@ -6,8 +6,7 @@ import 'material-design-icons-iconfont';
export function enableProgressIndicator(item) {
return (item.MediaType === 'Video' && item.Type !== 'TvChannel')
|| item.Type === 'AudioBook'
|| item.Type === 'AudioPodcast';
|| item.Type === 'AudioBook';
}
export function getProgressHtml(pct, options) {
@@ -43,7 +43,6 @@ const enableProgressIndicator = (
return (
(itemMediaType === ItemMediaKind.Video && itemType !== ItemKind.TvChannel)
|| itemType === ItemKind.AudioBook
|| itemType === ItemKind.AudioPodcast
);
};
-3
View File
@@ -256,9 +256,6 @@ export function canMarkPlayed (item) {
return true;
}
} else if (item.MediaType === 'Audio') {
if (item.Type === 'AudioPodcast') {
return true;
}
if (item.Type === 'AudioBook') {
return true;
}
@@ -69,7 +69,7 @@ function setState(button, played, updateAttribute) {
}
function setTitle(button, itemType, played) {
if (itemType !== 'AudioBook' && itemType !== 'AudioPodcast') {
if (itemType !== 'AudioBook') {
button.title = played ? globalize.translate('Watched') : globalize.translate('MarkPlayed');
} else {
button.title = played ? globalize.translate('Played') : globalize.translate('MarkPlayed');
+1 -2
View File
@@ -3,8 +3,7 @@ import { BaseItemKind } from '@jellyfin/sdk/lib/generated-client/models/base-ite
export const ItemKind = {
...BaseItemKind,
Timer: 'Timer',
SeriesTimer: 'SeriesTimer',
AudioPodcast: 'AudioPodcast'
SeriesTimer: 'SeriesTimer'
} as const;
// eslint-disable-next-line @typescript-eslint/no-redeclare