iWas-Coder / iWas-Coder/web-dl
Cannot parse keys from audio adaptationset
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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