Closed Iliannnn closed 5 months ago
Ah, good catch! I think I know what the issue is, but could you please tell me the inserted_at
datetime for this media item?
inserted_at: 2024-05-29T14:56:53Z
Ah yeah, in that case it's an unexpected consequence of #269.
It's not to do with changing resolution per se, but instead because when the upload date gets set it fires some code to compute the upload date index (the 99/98 at the end of the sXXXXeXXXXXX
string). This should normally only run once but #269 means re-downloading will update the upload date, fire this code again, and result in mismatched filepaths (ie: doesn't overwrite)
Easy fix, will look at it later today or tomorrow
Changes made in #284 and that'll go out with the next release!
I've also merged these changes back in with the YouTube API PR so it'll be available with the api-fast-indexing
tag shortly
Describe the bug When a force redownload of a video is performed and the new video has a different resolution, the old version of the video is not removed. This results in both versions occupying storage space unnecessarily.
To Reproduce Steps to reproduce the behavior:
Expected behavior When a force redownload of a video is performed with a different resolution, the old version of the video should be automatically removed to prevent duplicate storage usage.
Screenshots
Luckily, it does switch the path of the new file in the database. It just doesn't remove the old version:
Diagnostic info
Additional context
Not sure if it's expected. It's not a super big deal, but I wasn't sure if this function was meant to be this way. I was assuming it would replace the old version because of the "REDOWNLOAD Existing" feature name.