Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modified time of video #73

Closed
airworksman opened this issue Mar 8, 2023 · 5 comments
Closed

Modified time of video #73

airworksman opened this issue Mar 8, 2023 · 5 comments
Labels
enhancement New feature or request

Comments

@airworksman
Copy link

Hi, with this gui, the date of the videos I download are based on when I downloaded them. With yt-dlp, it uses the last modified time by default. I prefer having this for the date. I found out that I need to set "--mtime" in my conf file. I tried it, but it still uses the download date. A problem on my end or a bug? The other settings in my conf seem to work fine.

Thanks.

@kannagi0303
Copy link
Owner

Thank you for using my GUI.

As I designed this GUI to bypass the merging action of yt-dlp (i.e., combining the video and audio streams), I have yt-dlp skip calling ffmpeg and instead call ffmpeg from the GUI for merging. This allows for more control, but it also means that the --mtime option will not work. However, I can modify the modification time of the file using my GUI to meet your needs, or you can let me know if you have any ideas for more flexible modification time control.

@airworksman
Copy link
Author

airworksman commented Mar 8, 2023

Thanks for the quick reply, I'm mostly just looking to have the date of my videos to be the date uploaded on youtube, I'm not actually sure if that is the modification time, but it's close enough, so an option to set the date would be great!

@kannagi0303
Copy link
Owner

Hello, apologies for the lengthy message.

I have reviewed and verified data from several YouTube videos regarding the modification time which refers to the time when YouTube completes the conversion or modification of various video resolutions. I am not sure if there will be a significant difference between the modification time and the upload date. One of the videos I checked had a difference of over a month from the upload date. However, the data provided by YouTube includes an upload_date field, which only contains the year, month, and day, but it is enough for me to determine the time difference.

Based on my understanding of your response, the upload_date field should be more useful to you. If necessary, I can change the modification time of the file to 2023-03-08 00:00:00 as there is no time data in the information provided by YouTube. Alternatively, you can use the output template -o "%(upload_date)s - %(title)s which will directly add the upload date to the beginning of your file name.

Anyway, if there are no other issues, I think I can implement this feature in the next version.

Please feel free to share any thoughts or ideas you may have.

@airworksman
Copy link
Author

No problem! Ah yes, I think sometimes the youtube channel may make small changes to their video and this would change the modification time, but upload date would stay the same causing the difference in time?

I think providing an option would be best for whichever people prefer, maybe adding another dropdown menu to the UI for the file date? The download time could be the default, then two more options for using the upload date or modification time instead.

@kannagi0303 kannagi0303 added the enhancement New feature or request label Mar 8, 2023
@kannagi0303
Copy link
Owner

Hello,

I have released a new version that allows users to set either modification time or upload date. Due to significant changes in the new version, there may be some rough edges.

If you're interested, you can try it out and see how it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants