mirror of
https://github.com/TeamNewPipe/NewPipeExtractor.git
synced 2025-04-29 08:20:34 +05:30
Fix throwing correct reason
This commit is contained in:
parent
9de8405c9f
commit
4680df0bdf
@ -964,6 +964,8 @@ public class YoutubeStreamExtractor extends StreamExtractor {
|
|||||||
if (detailedErrorMessage != null && detailedErrorMessage.contains("country")) {
|
if (detailedErrorMessage != null && detailedErrorMessage.contains("country")) {
|
||||||
throw new GeographicRestrictionException(
|
throw new GeographicRestrictionException(
|
||||||
"This video is not available in client's country.");
|
"This video is not available in client's country.");
|
||||||
|
} else {
|
||||||
|
throw new ContentNotAvailableException(reason);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user