Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot parse keys from audio adaptationset #8

Open
lwerdna opened this issue Feb 22, 2024 · 3 comments
Open

Cannot parse keys from audio adaptationset #8

lwerdna opened this issue Feb 22, 2024 · 3 comments

Comments

@lwerdna
Copy link

lwerdna commented Feb 22, 2024

Shows up as:

Traceback (most recent call last):
  File "/path/to/Downloads/web-dl/./web-dl.py", line 49, in <module>
    main()
  File "/path/to/Downloads/web-dl/./web-dl.py", line 35, in main
    video_keys, audio_keys = decryptor.extract_keys(args.url())
  File "/path/to/Downloads/web-dl/modules/decryptor.py", line 129, in extract_keys
    selected_adaptationset_audio_idx = adaptationsets_audio[0][0]
IndexError: list index out of range

since adaptationsets_audio is empty. The audio adaptationset element doesn't contain "lang" in my case, so the loop in decrypt.py passes over it and doesn't pick up the keys.

Here's the offending dash manifest: stream.mpd.zip

@iWas-Coder
Copy link
Owner

Hello! Thanks for opening the issue, it's very much appreciated :)
Will work on it, all updates will be referenced in this thread.

@montvid
Copy link

montvid commented Oct 10, 2024

Got the same error, how to fix it?

[] AdaptationSet #0: (?)
[
] AdaptationSet #1: (audio, \x7f\x7f\x7f)
[*] AdaptationSet #2: (audio, Lithuanian)
Traceback (most recent call last):
File "/home/kvb/web-dl/./web-dl.py", line 49, in
main()
File "/home/kvb/web-dl/./web-dl.py", line 35, in main
video_keys, audio_keys = decryptor.extract_keys(args.url())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/kvb/web-dl/modules/decryptor.py", line 122, in extract_keys
selected_adaptationset_video_idx = adaptationsets_video[0][0]
~~~~~~~~~~~~~~~~~~~~^^^
IndexError: list index out of range

@iWas-Coder
Copy link
Owner

Hello, thanks for commenting on the issue! From what I remember, there are some fields in the manifest which greatly vary between instances, and I couldn't find any common specification on how the structure should be for these kinds of media.

If you're able to attach the manifest file, it'll help a lot to adapt the implementation and try to make it more robust.

I'm currenly working actively on some other projects, but eventually I'll come back to this one and try to resolve all posted issues.

Thanks again for the contribution and for your interest, it's very much appretiated! 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants