snobu / destreamer

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

[Feature request] Allow login with cookie #460

Open recolic opened 1 year ago

recolic commented 1 year ago

Some microsoft tenant requires special browser and special plugin to login (such as intune-portal and microsoft-edge-dev). It's hard to login successfully on a fresh browser profile without heavy customization.

If destreamer allows user to authenticate with existing cookie string and skip all authentication-related logic, it will benefit some user. Proposed example usage:

``` ./destreamer.sh -i https://msit.microsoftstream.com/video/09f9a0ff-0400-9fb2-890d-f1eb03636ef3 --cookie 'wfeSessionId=0783a468-390a-4930-a4e8-879918151ccc; RedirectToThinEmbed=value=True&exp=2022-09-28T18:13:27.3600991Z; .AspNet.Cookies=chunks:4; .AspNet.CookiesC1=H4sIAAAAAAAEAM2823arvLYm-kSzGgeTNXwZbAQmlghCB9DNbICcYBCYxCTGPP3uOPnn-uda1Xarql0X-yItw8EIqav379CBcbrH1il_Pifn-EXY6fm4i5sqrNfPGV8ONjkfrofh3da7w9OhV45u07tiJFZSIRHG39RVY9bqNxbRiAni6Hu8_R-ne9xoma6DtKrli-qJSXZ2p2ThHBltlDxMSZgueGefMexxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxP3B9teg_5viTXHPhhcU_3s-HPwN4jcNhy3u3pSr9j3B4__O14H8UxbzDyvlH1-0PnV8e_PBWfy-wQ_7h0z6BjD1f8s-e_IOezaeMl9e3oi29y_rM5j__fDXlPpftd5Ev2bUqt_d832QWjv6p_qN4ccF6NF9uHHeb6Lq5bpPv5fCa3v5jicg7ASroN5soAvO3IcVu4rv7oWOdF71-6_Cld3PXn15wuN_ximb7I8mnTeLP7im6P9vWaF9eQ-d8-38A1ADAweBDAAA; ai_session=JDAFpZ+hsc7//hNZCvrzkx|1664306216633|1664306262931.4; RUM_EPISODES=s=1664306286385&r=https://msit.microsoftstream.com/video/09f9a0ff-0400-9fb2-890d-f1eb03636ef3' ```