mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-12-08 20:48:48 +00:00
Licensed/copyright
This commit is contained in:
committed by
GitHub
parent
d7d1416c9c
commit
684c49c7c6
@@ -37,6 +37,10 @@ function check_if_error_or_blocked(id, channel, errored, callback) {
|
|||||||
} else if(!resp.items[0].status.embeddable) {
|
} else if(!resp.items[0].status.embeddable) {
|
||||||
callback(true);
|
callback(true);
|
||||||
return;
|
return;
|
||||||
|
} else if(resp.items[0].contentDetails.hasOwnProperty("licensedContent") &&
|
||||||
|
!resp.items[0].contentDetails.licensedContent) {
|
||||||
|
callback(true);
|
||||||
|
return;
|
||||||
} else if(resp.items[0].contentDetails.hasOwnProperty("regionRestriction") &&
|
} else if(resp.items[0].contentDetails.hasOwnProperty("regionRestriction") &&
|
||||||
resp.items[0].contentDetails.regionRestriction.hasOwnProperty("blocked") &&
|
resp.items[0].contentDetails.regionRestriction.hasOwnProperty("blocked") &&
|
||||||
resp.items[0].contentDetails.regionRestriction.blocked.length > 0) {
|
resp.items[0].contentDetails.regionRestriction.blocked.length > 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user