Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ixigua] UnicodeDecodeError: 'utf-8' codec can't decode byte 0x85 in position 6: invalid start byte #9915

Closed
9 of 10 tasks
Holmes-pengge opened this issue May 13, 2024 · 1 comment
Labels
duplicate This issue or pull request already exists site-bug Issue with a specific website

Comments

@Holmes-pengge
Copy link

DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

  • I understand that I will be blocked if I intentionally remove or skip any mandatory* field

Checklist

Provide a description that is worded well enough to be understood

下载西瓜视频报错

yt-dlp --cookies ixigua_cookies.txt -f "ba/b" --ignore-errors 'https://www.ixigua.com/6996881461559165471'
[Ixigua] Extracting URL: https://www.ixigua.com/6996881461559165471
[Ixigua] 699688146155916547: Downloading webpage
ERROR: 'utf-8' codec can't decode byte 0xa9 in position 2: invalid start byte

Provide verbose output that clearly demonstrates the problem

  • Run your yt-dlp command with -vU flag added (yt-dlp -vU <your command line>)
  • If using API, add 'verbose': True to YoutubeDL params instead
  • Copy the WHOLE output (starting with [debug] Command-line config) and insert it below

Complete Verbose Output

yt-dlp -vU   --cookies ixigua_cookies.txt   -f "ba/b"   --ignore-errors 'https://www.ixigua.com/6996881461559165471'                        
[debug] Command-line config: ['-vU', '--cookies', 'ixigua_cookies.txt', '-f', 'ba/b', '--ignore-errors', 'https://www.ixigua.com/6996881461559165471']
[debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version [email protected] from yt-dlp/yt-dlp [ff0779267] (zip)
[debug] Python 3.10.12 (CPython x86_64 64bit) - Linux-6.5.0-27-generic-x86_64-with-glibc2.35 (OpenSSL 3.0.2 15 Mar 2022, glibc 2.35)
[debug] exe versions: ffmpeg 4.4.2 (setts), ffprobe 4.4.2
[debug] Optional libraries: certifi-2020.06.20, requests-2.31.0, secretstorage-3.3.1, sqlite3-3.37.2, urllib3-2.2.1, websockets-11.0.3
[debug] Proxy map: {}
[debug] Request Handlers: urllib, requests
[debug] Loaded 1810 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
Latest version: [email protected] from yt-dlp/yt-dlp
yt-dlp is up to date ([email protected] from yt-dlp/yt-dlp)
[Ixigua] Extracting URL: https://www.ixigua.com/6996881461559165471
[Ixigua] 699688146155916547: Downloading webpage
ERROR: 'utf-8' codec can't decode byte 0x85 in position 6: invalid start byte
Traceback (most recent call last):
  File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 1606, in wrapper
    return func(self, *args, **kwargs)
  File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 1741, in __extract_info
    ie_result = ie.extract(url)
  File "/usr/local/bin/yt-dlp/yt_dlp/extractor/common.py", line 734, in extract
    ie_result = self._real_extract(url)
  File "/usr/local/bin/yt-dlp/yt_dlp/extractor/ixigua.py", line 69, in _real_extract
    formats = list(self._media_selector(json_data.get('videoResource')))
  File "/usr/local/bin/yt-dlp/yt_dlp/extractor/ixigua.py", line 53, in _media_selector
    'url': base64.b64decode(media['main_url']).decode(),
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x85 in position 6: invalid start byte
@Holmes-pengge Holmes-pengge added bug Bug that is not site-specific triage Untriaged issue labels May 13, 2024
@pukkandan pukkandan changed the title 西瓜视频链接解析错误 [ixigua] UnicodeDecodeError: 'utf-8' codec can't decode byte 0x85 in position 6: invalid start byte May 13, 2024
@pukkandan pukkandan added site-bug Issue with a specific website and removed bug Bug that is not site-specific labels May 13, 2024
@dirkf
Copy link
Contributor

dirkf commented May 13, 2024

Probably same as #9784.

@bashonly bashonly added duplicate This issue or pull request already exists and removed triage Untriaged issue labels May 13, 2024
@bashonly bashonly closed this as not planned Won't fix, can't repro, duplicate, stale May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists site-bug Issue with a specific website
Projects
None yet
Development

No branches or pull requests

4 participants