diff options
| author | Astounds <kirito@disroot.org> | 2026-04-05 18:47:21 -0500 |
|---|---|---|
| committer | Astounds <kirito@disroot.org> | 2026-04-05 18:47:21 -0500 |
| commit | 3795d9e4ff7aad090d0968ecd6a6132d922a68dc (patch) | |
| tree | 5c720bd900ccaaff7c38eb96fdc3a6a3b5e1f9e5 /babel.cfg | |
| parent | 3cf221a1edcfe08e08b4af21c591561e1467af13 (diff) | |
| download | yt-local-feature/hls.tar.lz yt-local-feature/hls.tar.xz yt-local-feature/hls.zip | |
fix(playlists): make playlist parsing robust against filename and formatting issuesfeature/hls
- Use glob lookup to find playlist files even with trailing spaces in filenames
- Sanitize lines (strip whitespace) before JSON parsing to ignore trailing spaces/empty lines
- Handle JSONDecodeError gracefully to prevent 500 errors from corrupt entries
- Return empty list on FileNotFoundError in read_playlist instead of crashing
- Extract _find_playlist_path and _parse_playlist_lines helpers for reuse
Diffstat (limited to 'babel.cfg')
0 files changed, 0 insertions, 0 deletions
