Skip to content

Conversation

@auouymous
Copy link
Member

The first patch fixes an issue caused by yt-dlp that results in a truncated download and a partial file containing the full download which must be manually renamed or deleted outside of gPodder.

The second patch cleans up YoutubeDL partial files after cancelling a download.

If a partial file exists with an extension appended to it, it should
always be renamed even if the partial file without an extension was
written to. Yt-dlp sometimes writes part of the file to the partial
file (bug), but always writes all of the file to a partial file with an
extension.
YoutubeDL can append an extension to the partial file, creating
additional partial files. Adaptive formats create up to three more
partial files. Cancelling a download will leave behind these extra
partial files, and requires manual removal outside of gPodder.
@elelay
Copy link
Member

elelay commented Feb 2, 2022

LGTM 👍

@auouymous auouymous merged commit 8f9b95b into gpodder:master Feb 8, 2022
@auouymous auouymous deleted the ytdl-partial-files branch February 8, 2022 06:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants