git.cweiske.de
/
playVideoOnDreamboxProxy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
303a7ee
)
Do not download playlist
author
Christian Weiske
<cweiske@cweiske.de>
Thu, 8 Feb 2018 21:15:49 +0000
(22:15 +0100)
committer
Christian Weiske
<cweiske@cweiske.de>
Thu, 8 Feb 2018 21:15:49 +0000
(22:15 +0100)
That broke falcon heavy launch video play because it output
multiple JSON blobs directly after each other that could not be
parsed.
www/functions.php
patch
|
blob
|
history
diff --git
a/www/functions.php
b/www/functions.php
index f0b67723c6d983c366cac89cbfea5382ff52e79d..18cfaff288604064aba615ad9236a859a8cf8d4a 100644
(file)
--- a/
www/functions.php
+++ b/
www/functions.php
@@
-29,6
+29,7
@@
function getPageUrl()
function getYoutubeDlJson($pageUrl, $youtubedlPath)
{
$cmd = $youtubedlPath
+ . ' --no-playlist'//would otherwise cause multiple json blocks
. ' --quiet'
. ' --dump-json'
. ' ' . escapeshellarg($pageUrl)