diff options
| author | Philipp Hagemeister <phihag@phihag.de> | 2013-02-18 23:30:33 +0100 | 
|---|---|---|
| committer | Philipp Hagemeister <phihag@phihag.de> | 2013-02-18 23:30:33 +0100 | 
| commit | e711babbd148187c14eb2b7895aced223527c956 (patch) | |
| tree | 92fc954efcf73881b34bd5237ec14c33d26addac | |
| parent | a72b0f2b6fff380fbd9bd0590b6aea110e46087d (diff) | |
Fix YP IE
| -rwxr-xr-x | youtube_dl/InfoExtractors.py | 10 | 
1 files changed, 5 insertions, 5 deletions
| diff --git a/youtube_dl/InfoExtractors.py b/youtube_dl/InfoExtractors.py index 61ba2a1b7..415aacd02 100755 --- a/youtube_dl/InfoExtractors.py +++ b/youtube_dl/InfoExtractors.py @@ -3729,13 +3729,13 @@ class YouPornIE(InfoExtractor):          webpage = self._download_webpage(req, video_id)          # Get the video title -        result = re.search(r'videoTitleArea">(?P<title>.*)</h1>', webpage) +        result = re.search(r'<h1.*?>(?P<title>.*)</h1>', webpage)          if result is None: -            raise ExtractorError(u'ERROR: unable to extract video title') +            raise ExtractorError(u'Unable to extract video title')          video_title = result.group('title').strip()          # Get the video date -        result = re.search(r'Date:</b>(?P<date>.*)</li>', webpage) +        result = re.search(r'Date:</label>(?P<date>.*) </li>', webpage)          if result is None:              self._downloader.to_stderr(u'WARNING: unable to extract video date')              upload_date = None @@ -3743,9 +3743,9 @@ class YouPornIE(InfoExtractor):              upload_date = result.group('date').strip()          # Get the video uploader -        result = re.search(r'Submitted:</b>(?P<uploader>.*)</li>', webpage) +        result = re.search(r'Submitted:</label>(?P<uploader>.*)</li>', webpage)          if result is None: -            self._downloader.to_stderr(u'ERROR: unable to extract uploader') +            self._downloader.to_stderr(u'WARNING: unable to extract uploader')              video_uploader = None          else:              video_uploader = result.group('uploader').strip() | 
