mirror of
				https://github.com/TeamNewPipe/NewPipe
				synced 2025-10-30 23:03:00 +00:00 
			
		
		
		
	-Removed playlist cleaning.
This commit is contained in:
		| @@ -324,7 +324,6 @@ public class MediaSourceManager { | |||||||
|     private void maybeSynchronizePlayer() { |     private void maybeSynchronizePlayer() { | ||||||
|         maybeUnblock(); |         maybeUnblock(); | ||||||
|         maybeSync(); |         maybeSync(); | ||||||
|         cleanPlaylist(); |  | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /*////////////////////////////////////////////////////////////////////////// |     /*////////////////////////////////////////////////////////////////////////// | ||||||
| @@ -477,20 +476,6 @@ public class MediaSourceManager { | |||||||
|                 "index=[" + currentIndex + "], item=[" + currentItem.getTitle() + "]"); |                 "index=[" + currentIndex + "], item=[" + currentItem.getTitle() + "]"); | ||||||
|         playlist.invalidate(currentIndex, this::loadImmediate); |         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 |     // MediaSource Playlist Helpers | ||||||
|     //////////////////////////////////////////////////////////////////////////*/ |     //////////////////////////////////////////////////////////////////////////*/ | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 John Zhen Mo
					John Zhen Mo