ytdl-org / youtube-dl

Command-line program to download videos from YouTube.com and other video sites
http://ytdl-org.github.io/youtube-dl/
The Unlicense
130.2k stars 9.82k forks source link

Onedrive playback #30868

Open chrispaivacwb opened 2 years ago

chrispaivacwb commented 2 years ago

Checklist

Description

Microsoft Teams records meetings and store them in a personal onedrive folder and share with attendees with a link with just read access.

I tried to use youtube-dl using --cookies option but I got this output.

youtube-dl.exe --cookies microsoft.com_cookies.txt https://i9techco-my.sharepoint.com/:v:/g/personal/matt_i9tech_co/EZqnGHacevpBkXVuK00NeUUBpS8JcGZqyu25MMQ1mKJ_YQ
[generic] EZqnGHacevpBkXVuK00NeUUBpS8JcGZqyu25MMQ1mKJ_YQ: Requesting header
[redirect] Following redirect to https://login.microsoftonline.com/abd81be1-7844-474d-9cd9-9a914e01536f/oauth2/authorize?client_id=00000003-0000-0ff1-ce00-000000000000&response_mode=form_post&protectedtoken=true&response_type=code%20id_token&resource=00000003-0000-0ff1-ce00-000000000000&scope=openid&nonce=6D5C09FF1CF2B1F589A99EB58E80A11F4B5D867AEA10F068-EE37BDB85E8CC258FCD82788AD4B8909D289D3AF68415567F6E0522C62FCD294&redirect_uri=https%3A%2F%2Fi9techco-my.sharepoint.com%2F_forms%2Fdefault.aspx&state=OD0w&claims=%7B%22id_token%22%3A%7B%22xms_cc%22%3A%7B%22values%22%3A%5B%22CP1%22%5D%7D%7D%7D&wsucxt=1&cobrandid=11bd8083-87e0-41b5-bb78-0bc43c8a8e8a&client-request-id=87ed34a0-d0c1-1000-bfef-183592b41e7b
[generic] authorize?client_id=00000003-0000-0ff1-ce00-000000000000&response_mode=form_post&protectedtoken=true&response_type=code id_token&resource=00000003-0000-0ff1-ce00-000000000000&scope=openid&nonce=6D5C09FF1CF2B1F589A99EB58E80A11F4B5D867AEA10F068-EE37BDB85E8CC258FCD82788AD4B8909D289D3AF68415567F6E0522C62FCD294&redirect_uri=https://i9techco-my.sharepoint.com/_forms/default: Requesting header
WARNING: Falling back on generic information extractor.
[generic] authorize?client_id=00000003-0000-0ff1-ce00-000000000000&response_mode=form_post&protectedtoken=true&response_type=code id_token&resource=00000003-0000-0ff1-ce00-000000000000&scope=openid&nonce=6D5C09FF1CF2B1F589A99EB58E80A11F4B5D867AEA10F068-EE37BDB85E8CC258FCD82788AD4B8909D289D3AF68415567F6E0522C62FCD294&redirect_uri=https://i9techco-my.sharepoint.com/_forms/default: Downloading webpage
[generic] authorize?client_id=00000003-0000-0ff1-ce00-000000000000&response_mode=form_post&protectedtoken=true&response_type=code id_token&resource=00000003-0000-0ff1-ce00-000000000000&scope=openid&nonce=6D5C09FF1CF2B1F589A99EB58E80A11F4B5D867AEA10F068-EE37BDB85E8CC258FCD82788AD4B8909D289D3AF68415567F6E0522C62FCD294&redirect_uri=https://i9techco-my.sharepoint.com/_forms/default: Extracting information
ERROR: Unsupported URL: https://login.microsoftonline.com/abd81be1-7844-474d-9cd9-9a914e01536f/oauth2/authorize?client_id=00000003-0000-0ff1-ce00-000000000000&response_mode=form_post&protectedtoken=true&response_type=code%20id_token&resource=00000003-0000-0ff1-ce00-000000000000&scope=openid&nonce=6D5C09FF1CF2B1F589A99EB58E80A11F4B5D867AEA10F068-EE37BDB85E8CC258FCD82788AD4B8909D289D3AF68415567F6E0522C62FCD294&redirect_uri=https%3A%2F%2Fi9techco-my.sharepoint.com%2F_forms%2Fdefault.aspx&state=OD0w&claims=%7B%22id_token%22%3A%7B%22xms_cc%22%3A%7B%22values%22%3A%5B%22CP1%22%5D%7D%7D%7D&wsucxt=1&cobrandid=11bd8083-87e0-41b5-bb78-0bc43c8a8e8a&client-request-id=87ed34a0-d0c1-1000-bfef-183592b41e7b
dirkf commented 2 years ago

You should be able to download the video from your browser.

Use "" around the URL, although that isn't the problem here.

Apparently your cookies file isn't cutting it with Sharepoint. microsoft.com isn't one of the domains mentioned: you need cookies for sharepoint.com and possibly also microsoftonline.com.

dirkf commented 2 years ago

@chrispaivacwb ?