mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-30 22:25:19 +00:00 
			
		
		
		
	[Cleanup] Remove some unnecessary groups in regexes (#1738)
Authored by: Ashish0804
This commit is contained in:
		| @@ -16,7 +16,7 @@ from ..utils import ( | ||||
|  | ||||
|  | ||||
| class ShemarooMeIE(InfoExtractor): | ||||
|     _VALID_URL = r'(?:https?://)(?:www\.)?shemaroome\.com/(?:movies|shows)/(?P<id>[^?#]+)' | ||||
|     _VALID_URL = r'https?://(?:www\.)?shemaroome\.com/(?:movies|shows)/(?P<id>[^?#]+)' | ||||
|     _TESTS = [{ | ||||
|         'url': 'https://www.shemaroome.com/movies/dil-hai-tumhaara', | ||||
|         'info_dict': { | ||||
| @@ -78,7 +78,7 @@ class ShemarooMeIE(InfoExtractor): | ||||
|         iv = [0] * 16 | ||||
|         m3u8_url = intlist_to_bytes(aes_cbc_decrypt(url_data, key, iv)) | ||||
|         m3u8_url = m3u8_url[:-compat_ord((m3u8_url[-1]))].decode('ascii') | ||||
|         formats = self._extract_m3u8_formats(m3u8_url, video_id, fatal=False, headers={'stream_key': data_json['stream_key']}) | ||||
|         formats, m3u8_subs = self._extract_m3u8_formats_and_subtitles(m3u8_url, video_id, fatal=False, headers={'stream_key': data_json['stream_key']}) | ||||
|         self._sort_formats(formats) | ||||
|  | ||||
|         release_date = self._html_search_regex( | ||||
| @@ -91,6 +91,7 @@ class ShemarooMeIE(InfoExtractor): | ||||
|             subtitles.setdefault('EN', []).append({ | ||||
|                 'url': self._proto_relative_url(sub_url), | ||||
|             }) | ||||
|         subtitles = self._merge_subtitles(subtitles, m3u8_subs) | ||||
|         description = self._html_search_regex(r'(?s)>Synopsis(</.+?)</', webpage, 'description', fatal=False) | ||||
|  | ||||
|         return { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Ashish Gupta
					Ashish Gupta