mirror of
https://github.com/TeamPiped/Piped-Backend.git
synced 2024-08-14 23:51:41 +00: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
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