mirror of
https://github.com/TeamPiped/Piped-Backend.git
synced 2024-08-14 23:51:41 +00:00
Add one more content unavailable message for georestricted check
This commit is contained in:
parent
5abb3107d5
commit
f2a7497d32
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue