mirror of
https://github.com/alexta69/metube.git
synced 2026-09-21 13:35:01 +00:00
fccd207799
MeTube never sets ignoreerrors, so yt-dlp's trouble() raises DownloadError instead of returning nonzero for failures like "No video formats found!". That is the path issue #1047 reports, and it dropped the warnings that explain the failure because only the nonzero-return branch attached them. The exception branch now reports the retained warnings with the exception text as the final line, so the actual error stays prominent under the context. yt-dlp labels errors "ERROR:" but hands warnings to the logger unlabelled, so a last warning that repeats the error text is skipped. Retention is bounded to the last five distinct warnings: fragmented and live downloads emit a warning per fragment, and the joined message is persisted with the completed queue and broadcast to every client. Co-authored-by: Matt Van Horn <mvanhorn@users.noreply.github.com>