mirror of
				https://github.com/ytdl-org/youtube-dl
				synced 2025-10-31 01:33:15 +00:00 
			
		
		
		
	[twitter:card] Relax _VALID_URL (closes #11225)
This commit is contained in:
		
							parent
							
								
									c131fc3372
								
							
						
					
					
						commit
						748a462fbe
					
				| @ -25,7 +25,7 @@ class TwitterBaseIE(InfoExtractor): | ||||
| 
 | ||||
| class TwitterCardIE(TwitterBaseIE): | ||||
|     IE_NAME = 'twitter:card' | ||||
|     _VALID_URL = r'https?://(?:www\.)?twitter\.com/i/(?:cards/tfw/v1|videos/tweet)/(?P<id>\d+)' | ||||
|     _VALID_URL = r'https?://(?:www\.)?twitter\.com/i/(?:cards/tfw/v1|videos(?:/tweet)?)/(?P<id>\d+)' | ||||
|     _TESTS = [ | ||||
|         { | ||||
|             'url': 'https://twitter.com/i/cards/tfw/v1/560070183650213889', | ||||
| @ -84,6 +84,9 @@ class TwitterCardIE(TwitterBaseIE): | ||||
|                 'title': 'Twitter web player', | ||||
|                 'thumbnail': 're:^https?://.*\.jpg', | ||||
|             }, | ||||
|         }, { | ||||
|             'url': 'https://twitter.com/i/videos/752274308186120192', | ||||
|             'only_matching': True, | ||||
|         }, | ||||
|     ] | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Sergey M․
						Sergey M․