mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2024-11-17 15:24:55 +00:00
-Removed playlist cleaning.
This commit is contained in:
parent
111a0f9f17
commit
de534b58c5
@ -324,7 +324,6 @@ public class MediaSourceManager {
|
||||
private void maybeSynchronizePlayer() {
|
||||
maybeUnblock();
|
||||
maybeSync();
|
||||
cleanPlaylist();
|
||||
}
|
||||
|
||||
/*//////////////////////////////////////////////////////////////////////////
|
||||
@ -477,20 +476,6 @@ public class MediaSourceManager {
|
||||
"index=[" + currentIndex + "], item=[" + currentItem.getTitle() + "]");
|
||||
playlist.invalidate(currentIndex, this::loadImmediate);
|
||||
}
|
||||
|
||||
/**
|
||||
* Scans the entire playlist for {@link ManagedMediaSource}s that requires correction,
|
||||
* and replaces these sources with a {@link PlaceholderMediaSource} if they are not part
|
||||
* of the excluded items.
|
||||
* */
|
||||
private void cleanPlaylist() {
|
||||
if (DEBUG) Log.d(TAG, "cleanPlaylist() called.");
|
||||
for (final PlayQueueItem item : playQueue.getStreams()) {
|
||||
if (isCorrectionNeeded(item)) {
|
||||
playlist.invalidate(playQueue.indexOf(item));
|
||||
}
|
||||
}
|
||||
}
|
||||
/*//////////////////////////////////////////////////////////////////////////
|
||||
// MediaSource Playlist Helpers
|
||||
//////////////////////////////////////////////////////////////////////////*/
|
||||
|
Loading…
Reference in New Issue
Block a user