mirror of
https://github.com/TeamPiped/Piped-Backend
synced 2025-09-04 12:31:00 +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();
|
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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user