youtube-dl

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

commit 10eaeb20c5bff78444b4f38098dd8ef89e29cba4
parent fa8deaf38b0d576d693a6565dcdb3b29877a4c94
Author: Philipp Hagemeister <phihag@phihag.de>
Date:   Sun, 24 Aug 2014 02:29:02 +0200

[generic] Require og:video URLs to contain a dot

Diffstat:
Myoutube_dl/extractor/generic.py | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/youtube_dl/extractor/generic.py b/youtube_dl/extractor/generic.py @@ -833,7 +833,7 @@ class GenericIE(InfoExtractor): if m_video_type is not None: def check_video(vurl): vpath = compat_urlparse.urlparse(vurl).path - return not vpath.endswith('.swf') + return '.' in vpath and not vpath.endswith('.swf') found = list(filter( check_video, re.findall(r'<meta.*?property="og:video".*?content="(.*?)"', webpage)))