miyouzi / aniGamerPlus

巴哈姆特動畫瘋自動下載工具,支援命令行
GNU General Public License v3.0
677 stars 92 forks source link

因pyhttpx而sn解析失敗 #249

Closed Zeerating-032 closed 1 year ago

Zeerating-032 commented 1 year ago

問題描述

sn解析失敗,錯誤訊息在log,個人處理方法為刪除Anime.py第285行報錯之參數,pyhttpx版本2.10.3

錯誤截圖

忘記截圖了

config.json 配置

{
    "bangumi_dir": "",
    "temp_dir": "",
    "classify_bangumi": true,
    "classify_season": false,
    "check_frequency": 5,
    "download_resolution": "1080",
    "lock_resolution": false,
    "only_use_vip": false,
    "default_download_mode": "latest",
    "use_copyfile_method": false,
    "multi-thread": 1,
    "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": true,
    "customized_video_filename_prefix": "【動畫瘋】",
    "customized_bangumi_name_suffix": "",
    "customized_video_filename_suffix": "",
    "video_filename_extension": "mp4",
    "zerofill": 1,
    "ua": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.96 Safari/537.36",
    "use_proxy": false,
    "proxy": "http://user:passwd@example.com:1000",
    "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"
        ]
    },
    "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": "",
    "plex_naming": false,
    "faststart_movflags": false,
    "audio_language": false,
    "use_mobile_api": false,
    "danmu": false,
    "danmu_ban_words": [],
    "check_latest_version": true,
    "read_sn_list_when_checking_update": true,
    "read_config_when_checking_update": true,
    "ads_time": 25,
    "mobile_ads_time": 3,
    "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,
    "no_proxy_akamai": false,
    "download_cd": 60,
    "parse_sn_cd": 5
}

sn_list.txt 配置

最好上傳 log 檔案 2023-06-08 10:48:34 配置文件從 v16.2 升級到 v17.2 你的有效配置不會丟失! 2023-06-08 10:48:38 檢查更新 檢查更新成功 2023-06-08 10:49:54 檢查更新 檢查更新成功 2023-06-08 10:49:54 使用命令行模式, 文件將保存在配置文件中指定的目錄下: D:\mypython\aniGamerPlus\bangumi 2023-06-08 10:49:54 讀取cookie 未發現cookie檔案 2023-06-08 10:49:54 解析模式: sn=25223 Web解析 2023-06-08 10:49:54 抓取失敗: sn=25223 抓取影片信息時發生未知錯誤: request() got an unexpected keyword argument 'proxy_auth' 2023-06-08 10:49:54 抓取異常: sn=25223 異常詳情: Traceback (most recent call last): File "aniGamerPlus.py", line 55, in build_anime anime['anime'] = Anime(sn) File "D:\mypython\aniGamerPlus\Anime.py", line 73, in init self.get_src() # 获取网页, 产生 self._src (BeautifulSoup) File "D:\mypython\aniGamerPlus\Anime.py", line 141, in get_src f = self.request(req, no_cookies=True, use_pyhttpx=True) File "D:\mypython\aniGamerPlus\Anime.py", line 285, in request f = self._pyhttpx_session.get(req, headers=current_header, cookies=cookies, timeout=10, File "D:\mypython\aniGamerPlus.venv\lib\site-packages\pyhttpx\session.py", line 487, in get resp = self.request('GET', url, **kwargs) TypeError: request() got an unexpected keyword argument 'proxy_auth'