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

抓取影片信息時發生未知錯誤: not enough values to unpack (expected 2, got 1) #263

Open
FarawayBIKON opened this issue Nov 19, 2023 · 1 comment

Comments

@FarawayBIKON
Copy link

問題描述

抓取影片信息時發生未知錯誤: not enough values to unpack (expected 2, got 1)

錯誤截圖

image

config.json 配置

{
    "bangumi_dir": "/root/Baha/",
    "temp_dir": "",
    "classify_bangumi": true,
    "check_frequency": 5,
    "download_cd": 60,
    "parse_sn_cd": 3,
    "download_resolution": "1080",
    "lock_resolution": false,
    "only_use_vip": false,
    "default_download_mode": "latest",
    "use_copyfile_method": false,
    "multi-thread": 3,
    "multi_upload": 3,
    "segment_download_mode": true,
    "multi_downloading_segment": 2,
    "segment_max_retry": 8,
    "add_bangumi_name_to_video_filename": true,
    "add_resolution_to_video_filename": false,
    "customized_video_filename_prefix": "Baha-",
    "customized_bangumi_name_suffix": "",
    "customized_video_filename_suffix": "",
    "video_filename_extension": "mp4",
    "zerofill": 2,
    "ua": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36",
    "use_proxy": true,
    "proxy": "socks5h://socks5:[email protected]:5555",
    "no_proxy_akamai": true,
    "upload_to_server": false,
    "ftp": {
        "server": "",
        "port": "",
        "user": "",
        "pwd": "",
        "tls": true,
        "cwd": "",
        "show_error_detail": false,
        "max_retry_num": 15
    },
    "user_command": "shutdown -s -t 60",
    "coolq_notify": false,
    "coolq_settings": {
        "msg_argument_name": "message",
        "message_suffix": "追加的資訊",
        "query": [
            "http://127.0.0.1:5700/send_group_msg?access_token=abc&group_id=12345678",
            "http://127.0.0.1:5700/send_group_msg?access_token=abc&group_id=87654321"
        ]
    },
    "faststart_movflags": false,
    "audio_language": false,
    "use_mobile_api": false,
    "danmu": false,
    "check_latest_version": true,
    "read_sn_list_when_checking_update": true,
    "read_config_when_checking_update": true,
    "ads_time": 25,
    "mobile_ads_time": 25,
    "use_dashboard": true,
    "dashboard": {
        "host": "127.0.0.1",
        "port": 5000,
        "SSL": false,
        "BasicAuth": false,
        "username": "admin",
        "password": "admin"
    },
    "save_logs": true,
    "quantity_of_logs": 7,
    "config_version": 17.2,
    "database_version": 2.0,
    "classify_season": false,
    "plex_naming": false,
    "telebot_notify": false,
    "telebot_token": "",
    "telebot_use_chat_id": false,
    "telebot_chat_id": "",
    "discord_notify": false,
    "discord_token": "",
    "plex_refresh": false,
    "plex_url": "",
    "plex_token": "",
    "plex_section": "",
    "danmu_ban_words": []
}

sn_list.txt 配置

最好上傳 log 檔案
`2023-11-19 09:21:36 檢查更新 檢查更新成功
2023-11-19 09:21:37 使用命令行模式, 文件將保存在配置文件中指定的目錄下: /root/Baha
2023-11-19 09:21:37 讀取cookie 發現cookie檔案
2023-11-19 09:21:37 讀取cookie 已讀取cookie
2023-11-19 09:21:37 解析模式: sn=36029 Web解析
2023-11-19 09:21:37 抓取失敗: sn=36029 抓取影片信息時發生未知錯誤: not enough values to unpack (expected 2, got 1)
2023-11-19 09:21:37 抓取異常: sn=36029 異常詳情:
Traceback (most recent call last):
File "/root/aniGamerPlus/aniGamerPlus.py", line 55, in build_anime
anime['anime'] = Anime(sn)
File "/root/aniGamerPlus/Anime.py", line 72, in init
self.__get_src() # 获取网页, 产生 self._src (BeautifulSoup)
File "/root/aniGamerPlus/Anime.py", line 143, in __get_src
f = self.__request(req, no_cookies=True, use_pyhttpx=True)
File "/root/aniGamerPlus/Anime.py", line 289, in __request
f = self._pyhttpx_session.get(req, headers=current_header, cookies=cookies, timeout=10,
File "/usr/local/lib/python3.10/dist-packages/pyhttpx/session.py", line 566, in get
resp = self.request('GET', url, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/pyhttpx/session.py", line 208, in request
self.connpool, self.conn = self.get_conn(req)
File "/usr/local/lib/python3.10/dist-packages/pyhttpx/session.py", line 312, in get_conn
conn = connpool._get_conn()
File "/usr/local/lib/python3.10/dist-packages/pyhttpx/session.py", line 102, in _get_conn
return conn or self._new_conn()
File "/usr/local/lib/python3.10/dist-packages/pyhttpx/session.py", line 88, in _new_conn
conn.connect(
File "/usr/local/lib/python3.10/dist-packages/pyhttpx/layers/tls/pyssl.py", line 175, in connect
username,password = proxy_parse.auth.split(':')
ValueError: not enough values to unpack (expected 2, got 1)

2023-11-19 09:21:37 SN 解析冷卻 3 秒
`

@fs910175
Copy link

fs910175 commented Dec 4, 2023

應該是代理配置問題,先關掉驗證看看能不能正常抓到影片資訊。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants