mirror of
				https://gitlab.com/ytdl-org/youtube-dl.git
				synced 2025-11-04 09:17:07 -05:00 
			
		
		
		
	[wsj] Recognize another URL pattern (closes #14704)
This commit is contained in:
		@@ -1,3 +1,9 @@
 | 
				
			|||||||
 | 
					version <unreleased>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Extractors
 | 
				
			||||||
 | 
					+ [wsj] Recognize another URL pattern (#14704)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
version 2017.11.06
 | 
					version 2017.11.06
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Core
 | 
					Core
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -13,7 +13,7 @@ class WSJIE(InfoExtractor):
 | 
				
			|||||||
    _VALID_URL = r'''(?x)
 | 
					    _VALID_URL = r'''(?x)
 | 
				
			||||||
                        (?:
 | 
					                        (?:
 | 
				
			||||||
                            https?://video-api\.wsj\.com/api-video/player/iframe\.html\?.*?\bguid=|
 | 
					                            https?://video-api\.wsj\.com/api-video/player/iframe\.html\?.*?\bguid=|
 | 
				
			||||||
                            https?://(?:www\.)?(?:wsj|barrons)\.com/video/[^/]+/|
 | 
					                            https?://(?:www\.)?(?:wsj|barrons)\.com/video/(?:[^/]+/)+|
 | 
				
			||||||
                            wsj:
 | 
					                            wsj:
 | 
				
			||||||
                        )
 | 
					                        )
 | 
				
			||||||
                        (?P<id>[a-fA-F0-9-]{36})
 | 
					                        (?P<id>[a-fA-F0-9-]{36})
 | 
				
			||||||
@@ -38,6 +38,9 @@ class WSJIE(InfoExtractor):
 | 
				
			|||||||
    }, {
 | 
					    }, {
 | 
				
			||||||
        'url': 'http://www.barrons.com/video/capitalism-deserves-more-respect-from-millennials/F301217E-6F46-43AE-B8D2-B7180D642EE9.html',
 | 
					        'url': 'http://www.barrons.com/video/capitalism-deserves-more-respect-from-millennials/F301217E-6F46-43AE-B8D2-B7180D642EE9.html',
 | 
				
			||||||
        'only_matching': True,
 | 
					        'only_matching': True,
 | 
				
			||||||
 | 
					    }, {
 | 
				
			||||||
 | 
					        'url': 'https://www.wsj.com/video/series/a-brief-history-of/the-modern-cell-carrier-how-we-got-here/980E2187-401D-48A1-B82B-1486CEE06CB9',
 | 
				
			||||||
 | 
					        'only_matching': True,
 | 
				
			||||||
    }]
 | 
					    }]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def _real_extract(self, url):
 | 
					    def _real_extract(self, url):
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user