miyouzi / aniGamerPlus

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

cookie每日更新都会失败 #259

Closed ge90114b closed 2 months ago

ge90114b commented 1 year ago

問題描述

在這裏詳細説明你遇到了什麽問題

cookie每日都会失效

錯誤截圖

在這裏附上錯誤的窗口截圖

config.json 配置

{
    "bangumi_dir": "Z:\\动漫\\anidownloadertest\\bangumi",
    "temp_dir": "Z:\\动漫\\anidownloadertest\\cache",
    "classify_bangumi": true,
    "classify_season": false,
    "check_frequency": 5,
    "download_cd": 60,
    "parse_sn_cd": 5,
    "download_resolution": "1080",
    "lock_resolution": true,
    "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/117.0.0.0 Safari/537.36",
    "use_proxy": true,
    "proxy": "http://192.168.1.1:7861",
    "no_proxy_akamai": false,
    "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": 25,
    "use_dashboard": true,
    "dashboard": {
        "host": "0.0.0.0",
        "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
}

sn_list.txt 配置

35346 #overtake

最好上傳 log 檔案 2023-10-02 00:43:46 更新终了 2023-10-02 00:48:41 Dashboard 通過 Web 控制臺更新了 sn_list 2023-10-02 00:48:46 開始更新 2023-10-02 00:48:46 解析模式: sn=35346 Web解析 2023-10-02 00:48:47 收到新cookie: sn=35346 2023-10-02 00:48:47 用戶cookie刷新 : sn=35346
2023-10-02 00:48:48 收到cookie重置響應: sn=35346
2023-10-02 00:48:50 讀取cookie: sn=35346 cookie.txt最後修改時間: 2023-10-02 00:48:47 第0次嘗試 2023-10-02 00:48:50 讀取cookie: sn=35346 新cookie讀取失敗 2023-10-02 00:48:53 讀取cookie: sn=35346 cookie.txt最後修改時間: 2023-10-02 00:48:47 第1次嘗試 2023-10-02 00:48:53 讀取cookie: sn=35346 新cookie讀取失敗 2023-10-02 00:48:56 讀取cookie: sn=35346 cookie.txt最後修改時間: 2023-10-02 00:48:47 第2次嘗試 2023-10-02 00:48:56 讀取cookie: sn=35346 新cookie讀取失敗 2023-10-02 00:48:59 用戶cookie更新失敗! 使用游客身份訪問 2023-10-02 00:48:59 cookie狀態 已成功標記失效cookie 2023-10-02 00:48:59 更新資訊: sn=35346 正在檢查《Overtake!》 2023-10-02 00:48:59 SN 解析冷卻 5 秒 2023-10-02 00:49:04 加入任务列隊: sn=35346
2023-10-02 00:49:04 更新資訊 本次更新添加了 1 個新任務, 目前列隊中共有 1 個任務 2023-10-02 00:49:04 更新终了 2023-10-02 00:49:04 讀取cookie 未發現cookie檔案 2023-10-02 00:49:04 解析模式: sn=35346 Web解析 2023-10-02 00:49:05 收到新cookie: sn=35346 2023-10-02 00:49:05 用戶cookie刷新 ANIME_SIGN, __cf_bm, nologinuser : sn=35346
2023-10-02 00:49:06 正在等待: sn=35346 《Overtake! [1]》 由於不是VIP賬戶, 正在等待25s廣告時間

023-09-30 16:39:18 解析模式: sn=34030 Web解析 2023-09-30 16:39:19 收到新cookie: sn=34030 2023-09-30 16:39:19 用戶cookie刷新 : sn=34030
2023-09-30 16:39:20 收到cookie重置響應: sn=34030
2023-09-30 16:39:22 讀取cookie: sn=34030 cookie.txt最後修改時間: 2023-09-30 16:39:19 第0次嘗試 2023-09-30 16:39:22 讀取cookie: sn=34030 新cookie讀取失敗 2023-09-30 16:39:26 讀取cookie: sn=34030 cookie.txt最後修改時間: 2023-09-30 16:39:19 第1次嘗試 2023-09-30 16:39:26 讀取cookie: sn=34030 新cookie讀取失敗 2023-09-30 16:39:29 讀取cookie: sn=34030 cookie.txt最後修改時間: 2023-09-30 16:39:19 第2次嘗試 2023-09-30 16:39:29 讀取cookie: sn=34030 新cookie讀取失敗 2023-09-30 16:39:33 用戶cookie更新失敗! 使用游客身份訪問 2023-09-30 16:39:33 cookie狀態 已成功標記失效cookie 2023-09-30 16:39:34 正在等待: sn=34030 《BanG Dream! It's MyGO!!!!! [1]》 由於不是VIP賬戶, 正在等待25s廣告時間

miyouzi commented 1 year ago

請確認UA的設置是否是抓取Cookie的瀏覽器的,且Cookie是通過瀏覽器的無痕模式獲取的

ge90114b commented 1 year ago

原来要无痕模式吗 了解了