destreamer: Error when using multiple download with list.txt

So, I’ve tried the new functionality for downloading a whole bunch of videos from a text file. I’ve put the urls in the text file, one url per each line like it says on the instruction of readme.

I launched this: node destreamer.js --username MYUSERNAME --outputdirectory "videos" \ --videoUrls list.txt

(Also tried using the correct escape character for powershell, same result), I get this:

Video URLs: [ 'list.txt' ]
Username: MYUSERNAME
Output Directory: videos
Video/Audio Quality: undefined
Using youtube-dl version 2020.03.08
Using ffmpeg version git-2020-03-15-c467328 Copyright (c) 2000-2020 the FFmpeg developers
Launching headless Chrome to perform the OpenID Connect dance...
Navigating to STS login page...
We are logged in.
Got cookie. Consuming cookie...
Calling Microsoft Stream API...
ApiGatewayUri: https://euwe-1.api.microsoftstream.com/api/
ApiGatewayVersion: 1.3-private
Fetching title and HLS URL...
Error when calling Microsoft Stream API: 400 undefined400
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd">
<HTML><HEAD><TITLE>Bad Request</TITLE>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=us-ascii"></HEAD>
<BODY><h2>Bad Request - Invalid URL</h2>
<hr><p>HTTP Error 400. The request URL is invalid.</p>
</BODY></HTML>

And chromium crash, not even downloading the first video. It seems an error calling microsoft stream API… is it a bug?

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 23 (6 by maintainers)

Commits related to this issue

Most upvoted comments

same as above but you should see a proper url list now

destreamer.ts.zip

Ok done, guess now you’ve fixed it, seems clean

PS C:\destreamer-dev> node destreamer.js -V list.txt -s -v
Video URLs: [ 'list.txt' ]
Username: undefined
There will be no video downloaded, it's only a simulation
Using youtube-dl version 2020.03.08
Using ffmpeg version git-2020-03-15-c467328 Copyright (c) 2000-2020 the FFmpeg developers
[VERBOSE] URL List:
[
  'https://web.microsoftstream.com/video/60f3xxxxxxxxxx',
  'https://web.microsoftstream.com/video/6ca0xxxxxxxxxxxxx',
  'https://web.microsoftstream.com/video/15f7xxxxxxxxxxxxx',
  'https://web.microsoftstream.com/video/a8dcxxxxxxxxxxx'
]
Launching headless Chrome to perform the OpenID Connect dance...
Navigating to STS login page...