Skip to content

Commit 3c6e93c

Browse files
authored
Merge branch 'dev' into yt-webm-opus
2 parents 95f93bc + 06f2144 commit 3c6e93c

2 files changed

Lines changed: 1 addition & 15 deletions

File tree

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

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,6 @@ public class DecryptException extends ParsingException {
6666
}
6767
}
6868

69-
public class GemaException extends ContentNotAvailableException {
70-
GemaException(String message) {
71-
super(message);
72-
}
73-
}
74-
7569
public class SubtitlesException extends ContentNotAvailableException {
7670
SubtitlesException(String message, Throwable cause) {
7771
super(message, cause);
@@ -584,12 +578,6 @@ public String getErrorMessage() {
584578
String errorMessage = errorElement.text();
585579
if (errorMessage == null || errorMessage.isEmpty()) {
586580
errorReason = null;
587-
} else if (errorMessage.contains("GEMA")) {
588-
// Gema sometimes blocks youtube music content in germany:
589-
// https://www.gema.de/en/
590-
// Detailed description:
591-
// https://en.wikipedia.org/wiki/GEMA_%28German_organization%29
592-
errorReason = new StringBuilder("GEMA");
593581
} else {
594582
errorReason = new StringBuilder(errorMessage);
595583
errorReason.append(" ");
@@ -670,8 +658,6 @@ private JsonObject getPlayerConfig(String pageContent) throws ParsingException {
670658
} catch (Parser.RegexException e) {
671659
String errorReason = getErrorMessage();
672660
switch (errorReason) {
673-
case "GEMA":
674-
throw new GemaException(errorReason);
675661
case "":
676662
throw new ContentNotAvailableException("Content not available: player config empty", e);
677663
default:

extractor/src/main/java/org/schabi/newpipe/extractor/stream/StreamExtractor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ public List<Frameset> getFrames() throws IOException, ExtractionException {
270270
}
271271

272272
/**
273-
* Should analyse the webpage's document and extracts any error message there might be. (e.g. GEMA block)
273+
* Should analyse the webpage's document and extracts any error message there might be.
274274
*
275275
* @return Error message; null if there is no error message.
276276
*/

0 commit comments

Comments
 (0)