m3u8_To_MP4 icon indicating copy to clipboard operation
m3u8_To_MP4 copied to clipboard

'utf-8' codec can't decode byte 0xe0 in position 1: invalid continuation byte

Open AliAtes opened this issue 2 years ago • 0 comments

2022-12-17 14:55:30,173 | INFO | Resolved available hosts: 2022-12-17 14:55:30,173 | INFO | 195.175.181.160:443 2022-12-17 14:55:30,174 | INFO | 195.175.181.128:443

summary m3u8_uri: https://btk-cdn01.cinema8.com/hls/content/entry/data/0/38/0_htzs22hi_0_97xxb0o1_2.mp4/index-v1-a1.m3u8; max_retry_times: 3; tmp_dir: C:\Users\ATES-PC\AppData\Local\Temp\m3u8_2138975056; mp4_file_path: ./m3u8_To_MP4.mp4;

Output exceeds the size limit. Open the full output data in a text editor

UnicodeDecodeError Traceback (most recent call last) d:\PRG\BTK_Akademi\my\dwnload.ipynb Hücre 3 in <cell line: 3>() 1 import m3u8_To_MP4 ----> 3 m3u8_To_MP4.multithread_download('https://btk-cdn01.cinema8.com/hls/content/entry/data/0/38/0_htzs22hi_0_97xxb0o1_2.mp4/index-v1-a1.m3u8')

File c:\Users\ATES-PC\anaconda3\lib\site-packages\m3u8_To_MP4_init_.py:131, in multithread_download(m3u8_uri, customized_http_header, max_retry_times, max_num_workers, mp4_file_dir, mp4_file_name, tmpdir) 114 ''' 115 Download mp4 video from given m3u uri. 116 (...) 122 :return: 123 ''' 124 with m3u8_To_MP4.v2_multithreads_processor.MultiThreadsUriCrawler(m3u8_uri, 125 customized_http_header, 126 max_retry_times, (...) 129 mp4_file_name, 130 tmpdir) as crawler: --> 131 crawler.fetch_mp4_by_m3u8_uri(True)

File c:\Users\ATES-PC\anaconda3\lib\site-packages\m3u8_To_MP4\v2_abstract_crawler_processor.py:214, in AbstractCrawler.fetch_mp4_by_m3u8_uri(self, as_mp4) 211 self._resolve_DNS() 213 # resolve ts segment uris --> 214 key_segments_pairs = self._create_tasks() ... 157 _encrypted_key = EncryptedKey(method=key.method, 158 value=encryped_value, iv=key.iv) 160 key_segments = m3u8_obj.segments.by_key(key)

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe0 in position 1: invalid continuation byte

AliAtes avatar Dec 17 '22 11:12 AliAtes