summary refs log tree commit diff
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2014-09-13 07:39:26 +0200
committerPhilipp Hagemeister <phihag@phihag.de>2014-09-13 07:39:29 +0200
commit6f6ed04172af7caf2a7dcef706a4f17d11872c90 (patch)
tree482ab9241970a431000e63dffd1952e65de8ef0e
parent5309602106a0365745de6d5f5c7cd248b54d8d43 (diff)
downloadyoutube-dl-6f6ed04172af7caf2a7dcef706a4f17d11872c90.tar.gz
youtube-dl-6f6ed04172af7caf2a7dcef706a4f17d11872c90.tar.xz
youtube-dl-6f6ed04172af7caf2a7dcef706a4f17d11872c90.zip
[prosiebensat1] Make upload_date optional
The site has a crazy incorrect date in German formatting, but the correct date is nowhere to be found.
-rw-r--r--youtube_dl/extractor/prosiebensat1.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/youtube_dl/extractor/prosiebensat1.py b/youtube_dl/extractor/prosiebensat1.py
index 421998e91..5b2a723c1 100644
--- a/youtube_dl/extractor/prosiebensat1.py
+++ b/youtube_dl/extractor/prosiebensat1.py
@@ -145,7 +145,6 @@ class ProSiebenSat1IE(InfoExtractor):
                 'ext': 'mp4',
                 'title': 'Kurztrips zum Valentinstag',
                 'description': 'md5:8ba6301e70351ae0bedf8da00f7ba528',
-                'upload_date': '20130206',
                 'duration': 307.24,
             },
             'params': {
@@ -240,7 +239,7 @@ class ProSiebenSat1IE(InfoExtractor):
         thumbnail = self._og_search_thumbnail(page)
 
         upload_date = unified_strdate(self._html_search_regex(
-            self._UPLOAD_DATE_REGEXES, page, 'upload date', fatal=False))
+            self._UPLOAD_DATE_REGEXES, page, 'upload date', default=None))
 
         formats = []