Do not download playlist
authorChristian Weiske <cweiske@cweiske.de>
Thu, 8 Feb 2018 21:15:49 +0000 (22:15 +0100)
committerChristian 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

index f0b67723c6d983c366cac89cbfea5382ff52e79d..18cfaff288604064aba615ad9236a859a8cf8d4a 100644 (file)
@@ -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)