Add error message for #798

This commit is contained in:
Calvin Montgomery 2019-03-27 21:05:45 -07:00
parent cb95aaa4e8
commit b25560c4a9
2 changed files with 8 additions and 1 deletions

View file

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

View file

@ -416,6 +416,13 @@ var Getters = {
/* HLS stream */
hl: function (id, callback) {
if (!/^https/.test(id)) {
callback(
"HLS links must start with HTTPS due to browser security " +
"policy. See https://git.io/vpDLK for details."
);
return;
}
var title = "Livestream";
var media = new Media(id, title, "--:--", "hl");
callback(false, media);