mirror of
https://github.com/TeamPiped/Piped-Backend
synced 2025-09-04 04:21:20 +02:00
Merge pull request #477 from TeamPiped/check-georestricted-topic
Add another content unavailable message for georestricted check
This commit is contained in:
commit
c2132f16dd
@ -114,7 +114,7 @@ public class StreamHandlers {
|
||||
exception = e.getCause();
|
||||
if (
|
||||
// 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)
|
||||
) {
|
||||
ExceptionUtils.rethrow(e);
|
||||
|
Loading…
x
Reference in New Issue
Block a user