youtube-dl

Another place where youtube-dl lives on
git clone git://git.oshgnacknak.de/youtube-dl.git
Log | Files | Refs | README | LICENSE

commit 5e42f8a0adec94156b911399558a967214a9d3aa
parent 1ad6b891b21b45830736698a7b59c30d9605a562
Author: nyorain <nyorain@gmail.com>
Date:   Sat,  6 Aug 2016 01:21:39 +0200

Make --metadata-from-title non fatal

Output a warning if the metadata can't be parsed from the title (and don't write any metadata) instead of raising a critical error.

Diffstat:
Myoutube_dl/postprocessor/metadatafromtitle.py | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/youtube_dl/postprocessor/metadatafromtitle.py b/youtube_dl/postprocessor/metadatafromtitle.py @@ -38,7 +38,8 @@ class MetadataFromTitlePP(PostProcessor): title = info['title'] match = re.match(self._titleregex, title) if match is None: - raise MetadataFromTitlePPError('Could not interpret title of video as "%s"' % self._titleformat) + self._downloader.to_screen('[fromtitle] Could not interpret title of video as "%s"' % self._titleformat) + return [], info for attribute, value in match.groupdict().items(): value = match.group(attribute) info[attribute] = value