Exemplo n.º 1
0
 public function testGetCommandLine()
 {
     $obj = new YoutubeDl(['skip-download' => true, 'write-sub' => true, 'write-annotations' => true, 'audio-format' => 'mp3', 'add-header' => ['X-Requested-With:youtube-dl', 'X-ATT-DeviceId:GT-P7320/P7320XXLPG']]);
     $this->assertEquals('youtube-dl --skip-download --write-sub --write-annotations --audio-format mp3 --add-header X-Requested-With:youtube-dl --add-header X-ATT-DeviceId:GT-P7320/P7320XXLPG --print-json --ignore-config', $obj->getCommandLine());
 }