Fix throwing correct reason

This commit is contained in:
TobiGr 2022-11-23 17:03:22 +01:00
parent 9de8405c9f
commit 4680df0bdf
1 changed files with 2 additions and 0 deletions

View File

@ -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);
}
}
}