mirror of https://github.com/calzoneman/sync.git
Add error message for #798
This commit is contained in:
parent
cb95aaa4e8
commit
b25560c4a9
|
@ -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"
|
||||
},
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue