Browse Source

[pbs] Add support for widget URLs (Fixes #2594)

totalwebcasting
Philipp Hagemeister 11 years ago
parent
commit
773c0b4bb8
2 changed files with 2 additions and 1 deletions
  1. +1
    -0
      test/test_all_urls.py
  2. +1
    -1
      youtube_dl/extractor/pbs.py

+ 1
- 0
test/test_all_urls.py View File

@ -141,6 +141,7 @@ class TestAllURLsMatching(unittest.TestCase):
def test_pbs(self):
# https://github.com/rg3/youtube-dl/issues/2350
self.assertMatch('http://video.pbs.org/viralplayer/2365173446/', ['PBS'])
self.assertMatch('http://video.pbs.org/widget/partnerplayer/980042464/', ['PBS'])
if __name__ == '__main__':
unittest.main()

+ 1
- 1
youtube_dl/extractor/pbs.py View File

@ -13,7 +13,7 @@ class PBSIE(InfoExtractor):
# Article with embedded player
(?:www\.)?pbs\.org/(?:[^/]+/){2,5}(?P<presumptive_id>[^/]+)/?(?:$|[?\#]) |
# Player
video\.pbs\.org/partnerplayer/(?P<player_id>[^/]+)/
video\.pbs\.org/(?:widget/)?partnerplayer/(?P<player_id>[^/]+)/
)
'''


Loading…
Cancel
Save