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

How to check when merging of formats gets completed? #2286

Open
Elite opened this issue Feb 1, 2014 · 1 comment
Open

How to check when merging of formats gets completed? #2286

Elite opened this issue Feb 1, 2014 · 1 comment
Labels

Comments

@Elite
Copy link

@Elite Elite commented Feb 1, 2014

When importing youtube-dl we have progress_hook to get download status, but how to know when format merging has finished?

@SleepProgger
Copy link

@SleepProgger SleepProgger commented Jul 14, 2015

I just had the same problem.
But, if you think about it: merging has finished when the download/extract_info/... function returns.
To get the final filename F.E: use:

info = ydl.extract_info(url, download=False)            
ydl.process_info(info)
print "Filename %s" % info['_filename']

Or use prepare_filename(info)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.