-
Notifications
You must be signed in to change notification settings - Fork 433
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add GeographicRestrictionException and SoundCloudGoPlusException to b…
…e able to display a different message This commit tries also to support HLS only tracks by requesting a segment request equal as the duration of the track, by parsing the HLS manifest (/0/track-length/) Warning: The corresponding code throws a StreamExtractException on every track, even if the track has a progressive stream.
- Loading branch information
Showing
3 changed files
with
101 additions
and
19 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
...src/main/java/org/schabi/newpipe/extractor/exceptions/GeographicRestrictionException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package org.schabi.newpipe.extractor.exceptions; | ||
|
||
public class GeographicRestrictionException extends ParsingException { | ||
public GeographicRestrictionException(String message) { | ||
super(message); | ||
} | ||
|
||
public GeographicRestrictionException(String message, Throwable cause) { | ||
super(message, cause); | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
...ctor/src/main/java/org/schabi/newpipe/extractor/exceptions/SoundCloudGoPlusException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package org.schabi.newpipe.extractor.exceptions; | ||
|
||
public class SoundCloudGoPlusException extends ParsingException { | ||
public SoundCloudGoPlusException() { | ||
super("This track is a SoundCloud Go+ track"); | ||
} | ||
|
||
public SoundCloudGoPlusException(Throwable cause) { | ||
super("This track is a SoundCloud Go+ track", cause); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters