mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 14:45:14 +00:00 
			
		
		
		
	[techtalks] Relax _VALID_URL
This commit is contained in:
		| @@ -10,9 +10,9 @@ from ..utils import ( | |||||||
|  |  | ||||||
|  |  | ||||||
| class TechTalksIE(InfoExtractor): | class TechTalksIE(InfoExtractor): | ||||||
|     _VALID_URL = r'https?://techtalks\.tv/talks/(?:[^/]*/)?(?P<id>\d+)/' |     _VALID_URL = r'https?://techtalks\.tv/talks/(?:[^/]+/)?(?P<id>\d+)' | ||||||
|  |  | ||||||
|     _TEST = { |     _TESTS = [{ | ||||||
|         'url': 'http://techtalks.tv/talks/learning-topic-models-going-beyond-svd/57758/', |         'url': 'http://techtalks.tv/talks/learning-topic-models-going-beyond-svd/57758/', | ||||||
|         'info_dict': { |         'info_dict': { | ||||||
|             'id': '57758', |             'id': '57758', | ||||||
| @@ -38,7 +38,10 @@ class TechTalksIE(InfoExtractor): | |||||||
|             # rtmp download |             # rtmp download | ||||||
|             'skip_download': True, |             'skip_download': True, | ||||||
|         }, |         }, | ||||||
|     } |     }, { | ||||||
|  |         'url': 'http://techtalks.tv/talks/57758', | ||||||
|  |         'only_matching': True, | ||||||
|  |     }] | ||||||
|  |  | ||||||
|     def _real_extract(self, url): |     def _real_extract(self, url): | ||||||
|         mobj = re.match(self._VALID_URL, url) |         mobj = re.match(self._VALID_URL, url) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Sergey M․
					Sergey M․