Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(Track): Use defaultdict with a dict factory for data property
This is so both internal code and service code can save data to sub-keys without the parent keys needing to exist. This also fixes a bug introduced in v3.3.3 where it will fail to download tracks without the "hls" key in the data property. This can happen when manually making Audio tracks using the HLS descriptor, and not putting any of the hls data the HLS class sets in to_tracks().
- Loading branch information