mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 06:35:12 +00:00 
			
		
		
		
	remove unnecessary regex group names
This commit is contained in:
		| @@ -66,42 +66,36 @@ class GoogleDriveIE(InfoExtractor): | ||||
|         ) | ||||
|         try: | ||||
|             title = self._html_search_regex( | ||||
|                 r'"title","(?P<title>.*?)"', | ||||
|                 r'"title"\s+,\s+"[^"]+', | ||||
|                 webpage, | ||||
|                 'title', | ||||
|                 group='title' | ||||
|                 'title' | ||||
|             ) | ||||
|             fmt_stream_map = self._html_search_regex( | ||||
|                 r'"fmt_stream_map","(?P<fmt_stream_map>.*?)"', | ||||
|                 r'"fmt_stream_map"\s+,\s+"[^"]+', | ||||
|                 webpage, | ||||
|                 'fmt_stream_map', | ||||
|                 group='fmt_stream_map' | ||||
|                 'fmt_stream_map' | ||||
|             ) | ||||
|             fmt_list = self._html_search_regex( | ||||
|                 r'"fmt_list","(?P<fmt_list>.*?)"', | ||||
|                 r'"fmt_list"\s+,\s+"[^"]+', | ||||
|                 webpage, | ||||
|                 'fmt_list', | ||||
|                 group='fmt_list' | ||||
|                 'fmt_list' | ||||
|             ) | ||||
| #			timestamp = self._html_search_regex( | ||||
| #				r'"timestamp","(?P<timestamp>.*?)"', | ||||
| #				r'"timestamp"\s+,\s+"[^"]+', | ||||
| #				webpage, | ||||
| #				'timestamp', | ||||
| #				group='timestamp' | ||||
| #				'timestamp' | ||||
| #			) | ||||
|             length_seconds = self._html_search_regex( | ||||
|                 r'"length_seconds","(?P<length_seconds>.*?)"', | ||||
|                 r'"length_seconds"\s+,\s+"[^"]+', | ||||
|                 webpage, | ||||
|                 'length_seconds', | ||||
|                 group='length_seconds' | ||||
|                 'length_seconds' | ||||
|             ) | ||||
|         except RegexNotFoundError: | ||||
|             try: | ||||
|                 reason = self._html_search_regex( | ||||
|                     r'"reason","(?P<reason>.*?)"', | ||||
|                     r'"reason","[^"]+', | ||||
|                     webpage, | ||||
|                     'reason', | ||||
|                     group='reason' | ||||
|                     'reason' | ||||
|                 ) | ||||
|                 self.report_warning(reason) | ||||
|                 return | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 remitamine
					remitamine