mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
add support for playlists in general iso albums only
This commit is contained in:
parent
4c75a9e079
commit
a4ea68f40b
2 changed files with 2 additions and 2 deletions
|
@ -176,7 +176,7 @@ import { appRouter } from '../appRouter';
|
||||||
}
|
}
|
||||||
// Return to start of track, unless we are already (almost) at the beginning. In the latter case, continue and move
|
// Return to start of track, unless we are already (almost) at the beginning. In the latter case, continue and move
|
||||||
// to the previous track, unless we are at the first track so no previous track exists.
|
// to the previous track, unless we are at the first track so no previous track exists.
|
||||||
if (currentPlayer._currentTime >= 2 || lastPlayerState.NowPlayingItem.IndexNumber == 1 ) {
|
if (currentPlayer._currentTime >= 2 || playbackManager.getCurrentPlaylistIndex(currentPlayer) <= 1) {
|
||||||
playbackManager.seekPercent(0, currentPlayer);
|
playbackManager.seekPercent(0, currentPlayer);
|
||||||
// This is done automatically by playbackManager, however, setting this here gives instant visual feedback.
|
// This is done automatically by playbackManager, however, setting this here gives instant visual feedback.
|
||||||
// TODO: Check why seekPercentage doesn't reflect the changes inmmediately, so we can remove this workaround.
|
// TODO: Check why seekPercentage doesn't reflect the changes inmmediately, so we can remove this workaround.
|
||||||
|
|
|
@ -770,7 +770,7 @@ export default function () {
|
||||||
}
|
}
|
||||||
// Return to start of track, unless we are already (almost) at the beginning. In the latter case, continue and move
|
// Return to start of track, unless we are already (almost) at the beginning. In the latter case, continue and move
|
||||||
// to the previous track, unless we are at the first track so no previous track exists.
|
// to the previous track, unless we are at the first track so no previous track exists.
|
||||||
if (currentPlayer._currentTime >= 2 || lastPlayerState.NowPlayingItem.IndexNumber == 1 ) {
|
if (currentPlayer._currentTime >= 2 || playbackManager.getCurrentPlaylistIndex(currentPlayer) <= 1) {
|
||||||
playbackManager.seekPercent(0, currentPlayer);
|
playbackManager.seekPercent(0, currentPlayer);
|
||||||
// This is done automatically by playbackManager, however, setting this here gives instant visual feedback.
|
// This is done automatically by playbackManager, however, setting this here gives instant visual feedback.
|
||||||
// TODO: Check why seekPercentage doesn't reflect the changes inmmediately, so we can remove this workaround.
|
// TODO: Check why seekPercentage doesn't reflect the changes inmmediately, so we can remove this workaround.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue