Tyrrrz/YoutubeExplode

Occasionally streams are very slow to download (`n`-sig deciphering)

開放

#706 建立於 2023年5月2日

 (3 則留言) (0 個反應) (0 位負責人)C# (587 個分叉)github user discovery
bugbug/caused by youtubehelp wanted

倉庫指標

星標
 (3,708 顆星)
PR 合併指標
 (平均合併 3天) (30 天內合併 1 個 PR)

描述

Version

v6.2.13 / master

Details

When using the TVHTML5_SIMPLY_EMBEDDED_PLAYER client (or any other JS-enabled client, but this is the one we're using), occasionally YouTube may return a stream that has the n parameter. This parameter is an encrypted signature, similar to sig, but is responsible for rate throttling.

It also incorporates much more complicated cipher functions, so the existing deciphering code will not be enough to tackle it.

Currently, these kinds of streams are not too common, but I assume they will become more prolific as time goes on. It's not a huge issue now as the TVHTML5_SIMPLY_EMBEDDED_PLAYER client is only used for age-restricted videos.

Steps to reproduce

Updated, much more consistent steps to reproduce that require a VPN:

貢獻者指南