Open jvs3 opened 8 years ago
I know this is old, but since google brought me here as well, I'll answer for the future.
Unfortunately, one cannot rename in this fashion as ffmpeg is looking for d['filename']
to do it's conversions.
The way I see it, there are 3 options to fix this issue.
1.) (I believe this only works for YouTube)Simulate the playlist with the same ydl_opts
as if downloading, grab the desired video title and video id, pass the title through rename_files()
then
ydl.download(https://www.youtube.com/watch?v=<your_video_id>
without the "<>".
2.)rename all of the files after the download call you can use something like:
with youtube_dl.YoutubeDL(ydl_opts) as ydl: playlist_dict = ydl.extract_info(podcast['url'], download=False) for video in playlist_dict['entries']: title = video.get('title')
3.) skip pre defined post and import ffmpeg on your own and run that after the rename in the hook function.
What is the purpose of your issue?
If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:
Description of your issue, suggested solution and other information
When renaming a file at status=finished using a progress hook youtube-dl tries to post process the file using the old filename. Would it be possible to delay status=finished until post processing is also finished? Or to provide another status for the progress hook (status=postprocessed)?
Other information
Relevant program code