Browse Source

[facebook] Allow '?' before '#!' (fixes #3477)

totalwebcasting
Jaime Marquínez Ferrándiz 10 years ago
parent
commit
a6da7b6b96
2 changed files with 2 additions and 1 deletions
  1. +1
    -0
      test/test_all_urls.py
  2. +1
    -1
      youtube_dl/extractor/facebook.py

+ 1
- 0
test/test_all_urls.py View File

@ -99,6 +99,7 @@ class TestAllURLsMatching(unittest.TestCase):
def test_facebook_matching(self):
self.assertTrue(FacebookIE.suitable('https://www.facebook.com/Shiniknoh#!/photo.php?v=10153317450565268'))
self.assertTrue(FacebookIE.suitable('https://www.facebook.com/cindyweather?fref=ts#!/photo.php?v=10152183998945793'))
def test_no_duplicates(self):
ies = gen_extractors()


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

@ -20,7 +20,7 @@ from ..utils import (
class FacebookIE(InfoExtractor):
_VALID_URL = r'''(?x)
https?://(?:\w+\.)?facebook\.com/
(?:[^#?]*\#!/)?
(?:[^#]*?\#!/)?
(?:video/video\.php|photo\.php|video/embed)\?(?:.*?)
(?:v|video_id)=(?P<id>[0-9]+)
(?:.*)'''


Loading…
Cancel
Save