Add checks for kisscartoon/kissanime/mega to direct the user to the FAQ

This commit is contained in:
Calvin Montgomery 2018-10-21 22:26:43 -07:00
parent 801d3d9be1
commit 1f28c0b87d
2 changed files with 15 additions and 1 deletions

View File

@ -2,7 +2,7 @@
"author": "Calvin Montgomery",
"name": "CyTube",
"description": "Online media synchronizer and chat",
"version": "3.59.0",
"version": "3.59.1",
"repository": {
"url": "http://github.com/calzoneman/sync"
},

View File

@ -1466,6 +1466,20 @@ function parseMediaLink(url) {
id: url,
type: "cm"
};
} else if (tmp.match(/kissanime|kimcartoon|kisscartoon/i)) {
Callbacks.queueFail({
link: url,
msg: "Kisscartoon and Kissanime are not supported. See https://git.io/vxS9n" +
" for more information about why these cannot be supported."
});
throw new Error("ERROR_QUEUE_KISS");
} else if (tmp.match(/mega\.nz/)) {
Callbacks.queueFail({
link: url,
msg: "Mega.nz is not supported. See https://git.io/fx6fz" +
" for more information about why mega.nz cannot be supported."
});
throw new Error("ERROR_QUEUE_MEGA");
} else if (tmp.match(/\.(mp4|flv|webm|og[gv]|mp3|mov|m4a)$/)) {
return {
id: url,