summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorPhilipp Hagemeister <[email protected]>2013-06-27 20:47:03 +0200
committerPhilipp Hagemeister <[email protected]>2013-06-27 20:47:03 +0200
commit4269e78a80fae8a3227e11288f8fbbb944e3eb83 (patch)
tree5099f4280d97b4bfb65bbca99363f512b5480d46
parent6f5ac90cf314e8e1a7c5c416fb51e3a7b8483e9c (diff)
parentde282fc217e481bb3cce6158a09551658759fe01 (diff)
downloadyoutube-dl-4269e78a80fae8a3227e11288f8fbbb944e3eb83.tar.gz
youtube-dl-4269e78a80fae8a3227e11288f8fbbb944e3eb83.zip
Merge branch 'master' of github.com:rg3/youtube-dl
-rw-r--r--youtube_dl/extractor/generic.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/extractor/generic.py b/youtube_dl/extractor/generic.py
index f2bb4aa21..019bbe6e9 100644
--- a/youtube_dl/extractor/generic.py
+++ b/youtube_dl/extractor/generic.py
@@ -111,7 +111,7 @@ class GenericIE(InfoExtractor):
mobj = re.search(r'[^A-Za-z0-9]?(?:file|source)=(http[^\'"&]*)', webpage)
if mobj is None:
# Broaden the search a little bit: JWPlayer JS loader
- mobj = re.search(r'[^A-Za-z0-9]?file:\s*["\'](http[^\'"&]*)', webpage)
+ mobj = re.search(r'[^A-Za-z0-9]?file["\']?:\s*["\'](http[^\'"&]*)', webpage)
if mobj is None:
# Try to find twitter cards info
mobj = re.search(r'<meta (?:property|name)="twitter:player:stream" (?:content|value)="(.+?)"', webpage)
@@ -144,7 +144,7 @@ class GenericIE(InfoExtractor):
# Video Title - Tagline | Site Name
# and so on and so forth; it's just not practical
video_title = self._html_search_regex(r'<title>(.*)</title>',
- webpage, u'video title')
+ webpage, u'video title', default=u'video')
# video uploader is domain name
video_uploader = self._search_regex(r'(?:https?://)?([^/]*)/.*',