iWas-Coder / iWas-Coder/web-dl

Cannot parse keys from audio adaptationset

Open
#8 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
35
Forks
11
PR merge metrics
No merged PRs in 30d

Description

Shows up as:

```
Traceback (most recent call last):
File "/path/to/Downloads/web-dl/./web-dl.py", line 49, in
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](https://github.com/iWas-Coder/web-dl/files/14379498/stream.mpd.zip)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the failure with the provided stream.mpd.zip manifest, then inspect modules/decryptor.py around line 129 and the loop in decrypt.py that filters audio adaptation sets. Done means the audio adaptation set is recognized even without a lang attribute and key extraction no longer raises IndexError.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.