mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-30 22:25:19 +00:00 
			
		
		
		
	[facebook] Allow '?' before '#!' (fixes #3477)
This commit is contained in:
		| @@ -99,6 +99,7 @@ class TestAllURLsMatching(unittest.TestCase): | |||||||
|  |  | ||||||
|     def test_facebook_matching(self): |     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/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): |     def test_no_duplicates(self): | ||||||
|         ies = gen_extractors() |         ies = gen_extractors() | ||||||
|   | |||||||
| @@ -20,7 +20,7 @@ from ..utils import ( | |||||||
| class FacebookIE(InfoExtractor): | class FacebookIE(InfoExtractor): | ||||||
|     _VALID_URL = r'''(?x) |     _VALID_URL = r'''(?x) | ||||||
|         https?://(?:\w+\.)?facebook\.com/ |         https?://(?:\w+\.)?facebook\.com/ | ||||||
|         (?:[^#?]*\#!/)? |         (?:[^#]*?\#!/)? | ||||||
|         (?:video/video\.php|photo\.php|video/embed)\?(?:.*?) |         (?:video/video\.php|photo\.php|video/embed)\?(?:.*?) | ||||||
|         (?:v|video_id)=(?P<id>[0-9]+) |         (?:v|video_id)=(?P<id>[0-9]+) | ||||||
|         (?:.*)''' |         (?:.*)''' | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Jaime Marquínez Ferrándiz
					Jaime Marquínez Ferrándiz