Passing url from the promise in the right way

This commit is contained in:
Fabio Manganiello 2019-02-13 09:38:40 +01:00
parent 34e2dffe99
commit 09f5c92541

View file

@ -241,8 +241,8 @@ $(document).ready(function() {
},
};
startStreaming(resource, subtitles).then((response) => {
requestArgs.args.resource = response.url;
startStreaming(resource, subtitles).then((url) => {
requestArgs.args.resource = url;
// XXX subtitles currently break the Chromecast playback,
// see https://github.com/balloob/pychromecast/issues/74
// if (response.subtitles) {