Add one more content unavailable message for georestricted check

This commit is contained in:
Kavin 2022-11-28 01:18:05 +00:00
parent 5abb3107d5
commit f2a7497d32
No known key found for this signature in database
GPG key ID: 49451E4482CC5BCD

View file

@ -114,7 +114,7 @@ public class StreamHandlers {
exception = e.getCause(); exception = e.getCause();
if ( if (
// Some videos, like topic channel videos are not available everywhere // Some videos, like topic channel videos are not available everywhere
!(exception instanceof ContentNotAvailableException contentNotAvailableException && contentNotAvailableException.getMessage().equals("This video is not available")) && !(exception instanceof ContentNotAvailableException contentNotAvailableException && (contentNotAvailableException.getMessage().equals("This video is not available") || contentNotAvailableException.getMessage().equals("Got error: \"Video unavailable\""))) &&
!(e.getCause() instanceof GeographicRestrictionException) !(e.getCause() instanceof GeographicRestrictionException)
) { ) {
ExceptionUtils.rethrow(e); ExceptionUtils.rethrow(e);