DownloadInfo doesn't have a 'filename' attribute by default — it's only set dynamically in update_status when a 'downloaded' status is received. When captions are silently skipped by yt-dlp (no matching language), the 'downloaded' status is never emitted, so 'filename' doesn't exist on the object at all. Using getattr(download.info, 'filename', None) instead of direct attribute access prevents AttributeError. |
||
|---|---|---|
| .. | ||
| tests | ||
| dl_formats.py | ||
| main.py | ||
| state_store.py | ||
| subscriptions.py | ||
| ytdl.py | ||