Merge pull request #7532 from dfederm/remove-audiopodcast
Remove unused AudioPodcast item type
This commit is contained in:
@@ -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
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
@@ -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');
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user