kylon / Sharedown

Electron application to download Sharepoint videos (especially meant for students)
GNU General Public License v3.0
376 stars 41 forks source link

How it works, under the hood? #87

Open VFansss opened 8 months ago

VFansss commented 8 months ago

Hi. First of all, thanks for your efforts.

I've found Sharedown while I was searching on how to download video from Sharepoint. Incredibly, this seems the ONLY solution working I've found online, in either involving ffmpeg and yt-dlp.

I'm asking myself: what actually is Sharedown under the hood?

Can I have some detail on what's performed on the bold parts of the process?

Because I would truly like to massive download video/content using yt-dlp (or ffmpeg) but for the love of me I can't find any way to find the right video url to pass to yt-dlp

MaximAndreevich commented 7 months ago

there is a guide on reddit how to use ffmpeg without any wrappers. I guess this is one of the scenarios. https://www.reddit.com/r/sharepoint/comments/nuk8q0/is_there_any_way_to_download_view_only_videos/ didn't work for me anyway :/

Also you can enable logging and check messages, there are steps described.

kylon commented 7 months ago

the app is open source so all steps are in https://github.com/kylon/Sharedown/blob/main/preload.js there is no url in the page, it tries to catch a known response with the video data and build video manifest url, the manifest url is what ffmpeg and yt-dlp will get

soufhehe commented 7 months ago

yt-dlp -f- --allow-unplayable-format -o "output" "manifest url" and type the audioID+videoID

without --allow-u it says that it is DRM protected.