Skip to content

Commit 85e5038

Browse files
committed
Use preexisting ContentNotAvailableException
1 parent efa8090 commit 85e5038

File tree

2 files changed

+2
-14
lines changed

2 files changed

+2
-14
lines changed

extractor/src/main/java/org/schabi/newpipe/extractor/exceptions/ConsentRequiredException.java

Lines changed: 0 additions & 12 deletions
This file was deleted.

extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/extractors/YoutubeMixPlaylistExtractor.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import org.schabi.newpipe.extractor.StreamingService;
1010
import org.schabi.newpipe.extractor.downloader.Downloader;
1111
import org.schabi.newpipe.extractor.downloader.Response;
12-
import org.schabi.newpipe.extractor.exceptions.ConsentRequiredException;
12+
import org.schabi.newpipe.extractor.exceptions.ContentNotAvailableException;
1313
import org.schabi.newpipe.extractor.exceptions.ExtractionException;
1414
import org.schabi.newpipe.extractor.exceptions.ParsingException;
1515
import org.schabi.newpipe.extractor.linkhandler.ListLinkHandler;
@@ -103,7 +103,7 @@ public void onFetchPage(@Nonnull final Downloader downloader)
103103
if (isNullOrEmpty(playlistData)) {
104104
final ExtractionException ex = new ExtractionException("Could not get playlistData");
105105
if (!YoutubeParsingHelper.isConsentAccepted()) {
106-
throw new ConsentRequiredException(
106+
throw new ContentNotAvailableException(
107107
"Consent is required in some countries to view Mix playlists",
108108
ex);
109109
}

0 commit comments

Comments
 (0)