Fix throwing correct reason
This commit is contained in:
@@ -964,6 +964,8 @@ public class YoutubeStreamExtractor extends StreamExtractor {
|
||||
if (detailedErrorMessage != null && detailedErrorMessage.contains("country")) {
|
||||
throw new GeographicRestrictionException(
|
||||
"This video is not available in client's country.");
|
||||
} else {
|
||||
throw new ContentNotAvailableException(reason);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user