diff options
author | Nicolas F <ovdev@fratti.ch> | 2019-10-12 19:04:24 +0200 |
---|---|---|
committer | wm4 <1387750+wm4@users.noreply.github.com> | 2019-10-13 19:08:46 +0200 |
commit | 06765e6ac9b734309150acac6d3e18526738ee4e (patch) | |
tree | c3af9a9bed47992cbb578f4d5fe2fc626e525937 /DOCS/man/options.rst | |
parent | 648d7859300562a99f035e06a0d42245c3c46e23 (diff) | |
download | mpv-06765e6ac9b734309150acac6d3e18526738ee4e.tar.bz2 mpv-06765e6ac9b734309150acac6d3e18526738ee4e.tar.xz |
ytdl_hook: check youtube-dl version if it breaks
Some failures by youtube-dl prompt the user to submit a bug report.
If such a failure occurs, we can compare youtube-dl's version to the
current calendar date to see how old it is. We don't make this check
on every youtube-dl failure, as failing to extract an URL is quite
common, and waiting for a second blocking python interpreter startup
for every such case would be a bit unpleasant.
Here the assumption is made that any youtube-dl version older than
3 months is probably severely out of date. Users will be warned about
this.
We also output the trimmed stderr of youtube-dl with msg.error, as this
appeared to have been the behaviour of utils.subprocess without stderr
capturing. Since this uses mp.command_native now, we'll have to do this
ourselves where appropriate.
Diffstat (limited to 'DOCS/man/options.rst')
0 files changed, 0 insertions, 0 deletions