From c7167eff6d6faaa7490842f5eb78658a98c63ff7 Mon Sep 17 00:00:00 2001 From: Sebastian Held Date: Mon, 13 Apr 2015 21:29:34 +0200 Subject: [PATCH] fix (workaround) not well-formed xml error --- youtube_dl/extractor/generic.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/youtube_dl/extractor/generic.py b/youtube_dl/extractor/generic.py index 7ad555e9f..81a4dedf3 100644 --- a/youtube_dl/extractor/generic.py +++ b/youtube_dl/extractor/generic.py @@ -930,7 +930,10 @@ class GenericIE(InfoExtractor): urlrs, playlist_id=video_id, playlist_title=video_title) # Look for BrightCove: - bc_urls = BrightcoveIE._extract_brightcove_urls(webpage) + try: + bc_urls = BrightcoveIE._extract_brightcove_urls(webpage) + except: + bc_urls = None if bc_urls: self.to_screen('Brightcove video detected.') entries = [{