summary refs log tree commit diff
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2014-08-22 03:16:08 +0200
committerPhilipp Hagemeister <phihag@phihag.de>2014-08-22 03:16:08 +0200
commit756b046f3ea3444112a73daf3e34b56493ede086 (patch)
tree3459afbe93aa338ea19af740bce18d936125fae3
parent388ac0b18a263a3745eba3c6be2a1b8252db36b1 (diff)
downloadyoutube-dl-756b046f3ea3444112a73daf3e34b56493ede086.tar.gz
youtube-dl-756b046f3ea3444112a73daf3e34b56493ede086.tar.xz
youtube-dl-756b046f3ea3444112a73daf3e34b56493ede086.zip
[pbs] recognize class=partnerPlayer as well (Fixes #3564)
-rw-r--r--youtube_dl/extractor/pbs.py14
1 files changed, 13 insertions, 1 deletions
diff --git a/youtube_dl/extractor/pbs.py b/youtube_dl/extractor/pbs.py
index dee4af6f1..2adfde909 100644
--- a/youtube_dl/extractor/pbs.py
+++ b/youtube_dl/extractor/pbs.py
@@ -54,6 +54,18 @@ class PBSIE(InfoExtractor):
                 'duration': 801,
             },
         },
+        {
+            'url': 'http://www.pbs.org/wnet/gperf/dudamel-conducts-verdi-requiem-hollywood-bowl-full-episode/3374/',
+            'md5': 'c62859342be2a0358d6c9eb306595978',
+            'info_dict': {
+                'id': '2365297708',
+                'ext': 'mp4',
+                'description': 'md5:68d87ef760660eb564455eb30ca464fe',
+                'title': 'Dudamel Conducts Verdi Requiem at the Hollywood Bowl - Full',
+                'duration': 6559,
+                'thumbnail': 're:^https?://.*\.jpg$',
+            }
+        }
     ]
 
     def _extract_ids(self, url):
@@ -75,7 +87,7 @@ class PBSIE(InfoExtractor):
                 return media_id, presumptive_id
 
             url = self._search_regex(
-                r'<iframe\s+id=["\']partnerPlayer["\'].*?\s+src=["\'](.*?)["\']>',
+                r'<iframe\s+(?:class|id)=["\']partnerPlayer["\'].*?\s+src=["\'](.*?)["\']>',
                 webpage, 'player URL')
             mobj = re.match(self._VALID_URL, url)