snobu / destreamer

Save Microsoft Stream videos for offline enjoyment.
MIT License
2.36k stars 440 forks source link

Administrator view #147

Open belasor opened 4 years ago

belasor commented 4 years ago

Hey everyone,

I need to download around 40 Videos from a user. I can access all the videos as a admin, however when I want to download them with my account through destreamer I´m getting an error message.

Downloading a video from my uploads is no problem.

Unhandled error! Timeout or fatal error, please check your downloads directory and try again

Is that currently not support?

snobu commented 4 years ago

Can you check if you get more error detail if you pass -v? If you can watch a video in your browser, then destreamer should be able to download it if you log in with the same credentials.

belasor commented 4 years ago

Sure, I just tried it again, and it is not working

 { Error: Request failed with status code 403
    at createError (C:\Users\c\Desktop\Streamdownloader\destreamer\node_modules\axios\lib\core\createError.js:16:15)
    at settle (C:\Users\c\Desktop\Streamdownloader\destreamer\node_modules\axios\lib\core\settle.js:17:12)
    at IncomingMessage.handleStreamEnd (C:\Users\c\Desktop\Streamdownloader\destreamer\node_modules\axios\lib\adapters\http.js:236:11)
    at IncomingMessage.emit (events.js:203:15)
    at endReadableNT (_stream_readable.js:1145:12)
    at process._tickCallback (internal/process/next_tick.js:63:19)
  config:
   { url:
      'videos/e4c4d471-1596-442e-adc6-dcc918eb383f?api-version=1.4-private',
     method: 'get',
     headers:
      { Accept: 'application/json, text/plain, */*',
        'User-Agent': 'destreamer/2.0 (Hammer of Dawn)',
        Authorization:
         'Bearer 
     baseURL: 'https://euwe-1.api.microsoftstream.com/api/',
....

Unhandled error! Timeout or fatal error, please check your downloads directory and try again

snobu commented 4 years ago

That's a 403 Forbidden HTTP response coming back from the MS Stream API. Destreamer won't be able to download that video, at least not with the credentials that have been used in the pop-up browser window.

belasor commented 4 years ago

Yeah I know, that is why I'm asking the question.

I'm accessing the video as Admin, so I can see the videos and also play the videos from other users.

The downloading is working fine, when I'm using the credentials of the user, but as a admin I'm receiving the error above.

lukaarma commented 4 years ago

It may be that as an Admin there is a slightly different API approach that we don't know of @snobu? I'll see if I can upload something and take a look

bruno-telstar commented 4 years ago

Hi everyone.

I have the same issue here. As a Global Admin, I wan to download all videos from all users, but I get the 403 Forbidden. But when I log on to Stream Website with this global admin user, I am able to access and download all videos.

If someone have any updates related to this issue, please let me know.

Best regards,

Bruno.

lukaarma commented 4 years ago

I found out I can upload videos too! I'll try to reproduce the issue and I'll see if I can come up with something @bruno-telstar

Stay tuned

Update

no dice :/ It worked flawless even when I owned the video and I just realised writing this how dumb I was because owner != admin Well I can't help you since i don't have a way to get admin privileges anytime soon

flamingghost commented 3 years ago

For a workaround, as an Admin you can download videos already through the webpage under the video options.

syakirazmi commented 2 years ago

For a workaround, as an Admin you can download videos already through the webpage under the video options. yeah, but the problem is, the method is quite slow. We all uses destreamer because it is faster than the manual way