mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 14:45:14 +00:00 
			
		
		
		
	[compat] Remove more functions
Removing any more will require changes to a large number of extractors
This commit is contained in:
		| @@ -1,8 +1,8 @@ | ||||
| import json | ||||
| import time | ||||
| import urllib.error | ||||
| 
 | ||||
| from .fragment import FragmentFD | ||||
| from ..compat import compat_urllib_error | ||||
| from ..utils import RegexNotFoundError, dict_get, int_or_none, try_get | ||||
| 
 | ||||
| 
 | ||||
| @@ -128,7 +128,7 @@ class YoutubeLiveChatFD(FragmentFD): | ||||
|                     elif info_dict['protocol'] == 'youtube_live_chat': | ||||
|                         continuation_id, offset, click_tracking_params = parse_actions_live(live_chat_continuation) | ||||
|                     return True, continuation_id, offset, click_tracking_params | ||||
|                 except compat_urllib_error.HTTPError as err: | ||||
|                 except urllib.error.HTTPError as err: | ||||
|                     count += 1 | ||||
|                     if count <= fragment_retries: | ||||
|                         self.report_retry_fragment(err, frag_index, count, fragment_retries) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 pukkandan
					pukkandan