ipcjs / bilibili-helper

各种油猴脚本
https://greasyfork.org/zh-CN/users/86730-ipcjs
3.92k stars 328 forks source link

账号授权失败,显示【请使用最新版本扫码登陆】 #1304

Open ryukoui opened 10 months ago

ryukoui commented 10 months ago

脚本问题:@ipcjs

描述

点击【账号授权】后,经过BALH页面后回到Bilibili却跳出个确认框写【请使用最新版本扫码登陆】。点确认后会强制退出登陆。用扫码登陆后再次账号授权也是同样的状态。

日志

Verbose 日志 ``` debug: atRun: -1, loading debug: [解除B站区域限制 v8.5.2 (Tampermonkey)] run on: https://www.bilibili.com/bangumi/media/md21174614 debug: window.__playinfo__ debug: XMLHttpRequest的描述符: {"writable":true,"enumerable":false,"configurable":true} debug: injectAjax at: function(a,b){return new e.fn.init(a,b,h)} info: mode: default blocked_vip: server: https://www.biliplus.com upos_server: flv_prefer_ws: remove_pre_ad: generate_sub: enable_in_av: readyState: loading isLogin: isLoginBiliBili: true debug: atRun: 0, interactive warn: danmukuBox not found! debug: retryUntil.ajaxBy$: function(a,b){return new e.fn.init(a,b,h)} debug: ajax: https://www.biliplus.com/api/bangumi?season=47083&access_key={{access_key}} debug: atRun: 1, interactive debug: /x/web-interface/nav {"uname":"foolpp","isLogin":true,"level":5,"vipType":2,"vipStatus":1,"isFromReport":false} debug: setAreaLimitSeason 000 true debug: atRun: 2, complete debug: /x/web-interface/nav {"uname":"foolpp","isLogin":true,"level":5,"vipType":2,"vipStatus":1,"isFromReport":false} debug: season47083 {"code":0,"message":"success","result":{"activity":{"head_bg_url":"","id":2101,"title":"2024一月新番"},"actors":"莱欧斯:熊谷健太郎\n玛露西尔:千本木彩花\n齐尔查克:泊明日菜\n森西:中博史\n法琳:早见沙织\n娜玛莉:三木晶\n菊朗:川田绅司","alias":"","areas":[{"id":2,"name":"日本"}],"bkg_cover":"","cover":"https://i0.hdslb.com/bfs/bangumi/image/9034fc3b61ebcbd6e869bd6c9f7f375f84ee81ad.png","delivery_fragment_video":false,"enable_vt":false,"episodes":[{"aid":325254878,"badge":"限免","badge_info":{"bg_color":"#999999","bg_color_night":"#727272","text":"受限"},"badge_type":0,"bvid":"BV13w41157Fk","cid":1395128368,"cover":"https://i0.hdslb.com/bfs/archive/828c00862056072cd0d3447caa2fd074db54cdc6.png","dimension":{"height":1080,"rotate":0,"width":1920},"duration":1530028,"enable_vt":false,"ep_id":806232,"from":"bangumi","id":806232,"is_view_hide":false,"link":"https://www.bilibili.com/bangumi/play/ep806232","long_title":"清汤锅与挞","pub_time":1704375000,"pv":0,"release_date":"","rights":{"allow_demand":0,"allow_dm":0,"allow_download":0,"area_limit":1},"share_copy":"《迷宫饭》第1话 清汤锅与挞","share_url":"https://www.bilibili.com/bangumi/play/ep806232","short_link":"https://b23.tv/ep806232","showDrmLoginDialog":false,"skip":{"ed":{"end":0,"start":0},"op":{"end":0,"start":0}},"status":2,"subtitle":"已观看600.2万次","title":"1","vid":""},{"aid":325357652,"badge":"会员","badge_info":{"bg_color":"#999999","bg_color_night":"#727272","text":"受限"},"badge_type":0,"bvid":"BV1Vw411G7nX","cid":1381303985,"cover":"https://i0.hdslb.com/bfs/archive/63f6a7139c6eeace1a4ce5aeee54acea496f5d27.png","dimension":{"height":1080,"rotate":0,"width":1920},"duration":1561000,"enable_vt":false,"ep_id":806233,"from":"bangumi","id":806233,"is_view_hide":false,"link":"https://www.bilibili.com/bangumi/play/ep806233","long_title":"烤蛇尾鸡 | 蛋包饭与什锦天妇罗","pub_time":1704979800,"pv":0,"release_date":"","rights":{"allow_demand":0,"allow_dm":0,"allow_download":0,"area_limit":1},"share_copy":"《迷宫饭》第2话 烤蛇尾鸡 | 蛋包饭与什锦天妇罗","share_url":"https://www.bilibili.com/bangumi/play/ep806233","short_link":"https://b23.tv/ep806233","showDrmLoginDialog":false,"skip":{"ed":{"end":0,"start":0},"op":{"end":0,"start":0}},"status":13,"subtitle":"已观看600.2万次","title":"2","vid":""}],"evaluate":"迷宫饭。是“吃”,还是“被吃”,这是一个问题。\n在迷宫深处,莱欧斯眼看着红龙吃掉了妹妹,自己在将死之际回到了地面。\n尽管他想要马上再次挑战迷宫,但是钱和粮食都被留在了最深处。\n面对妹妹可能会被消化掉的危机,莱欧斯下定了决心。\n“食物就在迷宫中自给自足吧!”\n史莱姆,蛇尾鸡,宝箱怪,还有龙!\n吃着来袭的魔物们,打通迷宫吧,冒险者!","freya":{"bubble_desc":"","bubble_show_cnt":0,"icon_show":1},"hide_ep_vv_vt_dm":1,"icon_font":{"name":"playdata-square-line@500","text":"600.2万"},"jp_title":"","link":"bilibili://pgc/media/21174614","media_id":21174614,"mode":2,"new_ep":{"desc":"连载中, 每周四 21:30更新","id":806233,"is_new":1,"title":"2"},"payment":{"discount":100,"pay_type":{"allow_discount":0,"allow_pack":0,"allow_ticket":0,"allow_time_limit":0,"allow_vip_discount":0,"forbid_bb":0},"price":"0.0","promotion":"","tip":"大会员专享观看特权哦~","view_start_time":0,"vip_discount":100,"vip_first_promotion":"","vip_price":"0","vip_promotion":"成为大会员抢先看"},"play_strategy":{"strategies":["common_section-formal_first_ep","common_section-common_section","common_section-next_season","formal-finish-next_season","formal-end-other_section","formal-end-next_season","ord"]},"positive":{"id":100047,"title":"正片"},"publish":{"is_finish":0,"is_started":1,"pub_time":"2024-01-04 21:30:00","pub_time_show":"01月04日21:30","unknow_pub_date":0,"weekday":0},"record":"","rights":{"allow_bp":0,"allow_bp_rank":0,"allow_download":0,"allow_review":0,"area_limit":328,"ban_area_show":1,"can_watch":1,"copyright":"dujia","forbid_pre":0,"freya_white":0,"is_cover_show":0,"is_preview":1,"only_vip_download":0,"resource":"","watch_platform":0},"season_id":47083,"season_title":"迷宫饭","seasons":[{"badge":"独家","badge_info":{"bg_color":"#00C0FF","bg_color_night":"#0B91BE","text":"独家"},"badge_type":1,"cover":"https://i0.hdslb.com/bfs/bangumi/image/9034fc3b61ebcbd6e869bd6c9f7f375f84ee81ad.png","enable_vt":false,"horizontal_cover_1610":"https://i0.hdslb.com/bfs/bangumi/image/1e14b813265e1ddf5b166eef8ae89e2a8130f5a7.png","horizontal_cover_169":"https://i0.hdslb.com/bfs/bangumi/image/968fdd0c9310d7a1818857b4d5e3bdaf370f7771.png","icon_font":{"name":"playdata-square-line@500","text":"600.2万"},"media_id":21174614,"new_ep":{"cover":"https://i0.hdslb.com/bfs/archive/63f6a7139c6eeace1a4ce5aeee54acea496f5d27.png","id":806233,"index_show":"更新至第2话"},"season_id":47083,"season_title":"TV","season_type":1,"stat":{"favorites":466230,"series_follow":466229,"views":6002111,"vt":0}}],"section":[{"attr":0,"episode_id":0,"episode_ids":[],"episodes":[{"aid":495727993,"badge":"","badge_info":{"bg_color":"#999999","bg_color_night":"#727272","text":"受限"},"badge_type":0,"bvid":"BV1qK411s7sw","cid":1392893144,"cover":"https://i0.hdslb.com/bfs/archive/253a442301a554f9a4cfb5d4a15f362dd31dcda8.png","dimension":{"height":1080,"rotate":0,"width":1920},"duration":94000,"enable_vt":false,"ep_id":810115,"from":"bangumi","icon_font":{"name":"playdata-square-line@500","text":"15.8万"},"id":810115,"is_view_hide":false,"link":"https://www.bilibili.com/bangumi/play/ep810115","long_title":"","pub_time":1704427200,"pv":0,"release_date":"","rights":{"allow_demand":0,"allow_dm":0,"allow_download":0,"area_limit":1},"share_copy":"《迷宫饭》PV2 ","share_url":"https://www.bilibili.com/bangumi/play/ep810115","short_link":"https://b23.tv/ep810115","showDrmLoginDialog":false,"skip":{"ed":{"end":0,"start":0},"op":{"end":0,"start":0}},"stat":{"coin":737,"danmakus":9,"likes":1560,"play":158330,"reply":93,"vt":0},"stat_for_unity":{"coin":737,"danmaku":{"icon":"danmu-square-line@500","pure_text":"","text":"9","value":9},"likes":1560,"reply":93,"vt":{"icon":"playdata-square-line@500","pure_text":"15.8万播放","text":"15.8万","value":158330}},"status":2,"subtitle":"已观看600.2万次","title":"PV2","vid":""},{"aid":919765356,"badge":"","badge_info":{"bg_color":"#999999","bg_color_night":"#727272","text":"受限"},"badge_type":0,"bvid":"BV12u4y1H7Fy","cid":1367986499,"cover":"https://i0.hdslb.com/bfs/archive/e1acf88c35887aea78982cef4703209a0da05ceb.png","dimension":{"height":1080,"rotate":0,"width":1920},"duration":81000,"enable_vt":false,"ep_id":797672,"from":"bangumi","icon_font":{"name":"playdata-square-line@500","text":"30.6万"},"id":797672,"is_view_hide":false,"link":"https://www.bilibili.com/bangumi/play/ep797672","long_title":"","pub_time":1702634400,"pv":0,"release_date":"","rights":{"allow_demand":0,"allow_dm":0,"allow_download":0,"area_limit":1},"share_copy":"《迷宫饭》PV1 ","share_url":"https://www.bilibili.com/bangumi/play/ep797672","short_link":"https://b23.tv/ep797672","showDrmLoginDialog":false,"skip":{"ed":{"end":0,"start":0},"op":{"end":0,"start":0}},"stat":{"coin":652,"danmakus":58,"likes":2444,"play":306016,"reply":376,"vt":0},"stat_for_unity":{"coin":652,"danmaku":{"icon":"danmu-square-line@500","pure_text":"","text":"58","value":58},"likes":2444,"reply":376,"vt":{"icon":"playdata-square-line@500","pure_text":"30.6万播放","text":"30.6万","value":306016}},"status":2,"subtitle":"已观看600.2万次","title":"PV1","vid":""},{"aid":537348784,"badge":"","badge_info":{"bg_color":"#999999","bg_color_night":"#727272","text":"受限"},"badge_type":0,"bvid":"BV1Wi4y1e7oc","cid":1367986265,"cover":"https://i0.hdslb.com/bfs/archive/c4974152a62f37bcf8d0089e18aa5fbe692f0517.png","dimension":{"height":1080,"rotate":0,"width":1920},"duration":79000,"enable_vt":false,"ep_id":797673,"from":"bangumi","icon_font":{"name":"playdata-square-line@500","text":"42.8万"},"id":797673,"is_view_hide":false,"link":"https://www.bilibili.com/bangumi/play/ep797673","long_title":"","pub_time":1702634400,"pv":0,"release_date":"","rights":{"allow_demand":0,"allow_dm":0,"allow_download":0,"area_limit":1},"share_copy":"《迷宫饭》先导PV ","share_url":"https://www.bilibili.com/bangumi/play/ep797673","short_link":"https://b23.tv/ep797673","showDrmLoginDialog":false,"skip":{"ed":{"end":0,"start":0},"op":{"end":0,"start":0}},"stat":{"coin":591,"danmakus":117,"likes":4721,"play":427608,"reply":522,"vt":0},"stat_for_unity":{"coin":591,"danmaku":{"icon":"danmu-square-line@500","pure_text":"","text":"117","value":117},"likes":4721,"reply":522,"vt":{"icon":"playdata-square-line@500","pure_text":"42.8万播放","text":"42.8万","value":427608}},"status":2,"subtitle":"已观看600.2万次","title":"先导PV","vid":""}],"id":100049,"title":"PV","type":2,"type2":0},{"attr":0,"episode_id":0,"episode_ids":[],"episodes":[{"aid":878143822,"badge":"","badge_info":{"bg_color":"#999999","bg_color_night":"#727272","text":"受限"},"badge_type":0,"bvid":"BV1eN4y1B7Yf","cid":1391206270,"cover":"https://i0.hdslb.com/bfs/archive/7af4a77bce288322cd4aaec45602b2b5b1d70bdc.png","dimension":{"height":1080,"rotate":0,"width":1920},"duration":65000,"enable_vt":false,"ep_id":809810,"from":"bangumi","icon_font":{"name":"playdata-square-line@500","text":"6.8万"},"id":809810,"is_view_hide":false,"link":"https://www.bilibili.com/bangumi/play/ep809810","long_title":"《迷宫饭》超前点映会现场精彩回顾","pub_time":1704184200,"pv":0,"release_date":"","rights":{"allow_demand":0,"allow_dm":0,"allow_download":0,"area_limit":1},"share_copy":"《迷宫饭》线下活动 《迷宫饭》超前点映会现场精彩回顾","share_url":"https://www.bilibili.com/bangumi/play/ep809810","short_link":"https://b23.tv/ep809810","showDrmLoginDialog":false,"skip":{"ed":{"end":0,"start":0},"op":{"end":0,"start":0}},"stat":{"coin":99,"danmakus":67,"likes":5370,"play":68316,"reply":120,"vt":0},"stat_for_unity":{"coin":99,"danmaku":{"icon":"danmu-square-line@500","pure_text":"","text":"67","value":67},"likes":5370,"reply":120,"vt":{"icon":"playdata-square-line@500","pure_text":"6.8万播放","text":"6.8万","value":68316}},"status":2,"subtitle":"已观看600.2万次","title":"线下活动","vid":""}],"id":100229,"title":"线下活动","type":2,"type2":0}],"series":{"display_type":0,"series_id":6916,"series_title":"迷宫饭"},"share_copy":"《迷宫饭》我在地下城里做吃播","share_sub_title":"我在地下城里做吃播","share_url":"https://www.bilibili.com/bangumi/play/ss47083","show":{"wide_screen":0},"show_season_type":1,"square_cover":"https://i0.hdslb.com/bfs/bangumi/image/d8b847d42f3a198bb3f65da7740db4272345a6fb.png","staff":"原作:九井谅子(《迷宫饭》/角川书店发行)\n导演:宫岛善博\n剧本统筹:上野贵美子\n角色设计:竹田直树\n片头主题曲:《Sleep Walking Orchestra》BUMP OF CHICKEN(TOY'S FACTORY)\n音乐:光田康典\n动画制作:TRIGGER","stat":{"coins":34363,"danmakus":25080,"favorite":12457,"favorites":466230,"follow_text":"46.6万追番","likes":98480,"reply":7764,"share":17145,"views":6002111,"vt":0},"status":13,"styles":["漫画改","奇幻","美食","冒险"],"subtitle":"已观看600.2万次","title":"迷宫饭","total":24,"type":1,"up_info":{"avatar":"https://i1.hdslb.com/bfs/face/040528a1ec634b9907ba3a9ba957819bb07def06.jpg","avatar_subscript_url":"","follower":6697293,"is_follow":0,"mid":928123,"nickname_color":"#FB7299","pendant":{"image":"","name":"","pid":0},"theme_type":0,"uname":"哔哩哔哩番剧","verify_type":3,"vip_label":{"bg_color":"#FB7299","bg_style":1,"border_color":"","text":"十年大会员","text_color":"#FFFFFF"},"vip_status":1,"vip_type":2},"user_status":{"area_limit":0,"ban_area_show":0,"follow":0,"follow_status":0,"login":0,"pay":0,"pay_pack_paid":0,"sponsor":0}}} debug: userAgent Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 ```

其他

  1. 浏览器版本: Chrome 120.0.6099.217
  2. 国家/地区: 日本
Howard20181 commented 10 months ago

新登录 API 可能不适用于海外地区 在找到新方法之前先暂时不改

ryukoui commented 10 months ago

现在是否还有手动获得access_key的方式?

Howard20181 commented 10 months ago

从 biliplus 的 F12 取的还是有效的

Howard20181 commented 10 months ago

我发现个问题,biliPlus 登录用的是同一个 API 只不过要手动扫码,那个你能登录上吗? 如果可以,本脚本可以加个选项让用户手动扫码

ryukoui commented 10 months ago

我现在试了一下biliPlus 的登录和获取access key。两个都成功,用获得的key也成功让脚本授权了。多谢指点 看样如果有手动扫码应该能用

Howard20181 commented 10 months ago

好吧,我加个选项选择是否自动确认登录

aq6699 commented 10 months ago

海外授權後一直 出現 请使用最新版本扫码登陆

能教一下怎麼解決嗎

ryukoui commented 10 months ago

海外授權後一直 出現 请使用最新版本扫码登陆

能教一下怎麼解決嗎

就像楼上说的那样手动授权

  1. biliplus 上登陆
  2. 利用开发者工具获得biliplus上的access_key
  3. 同样利用开发者工具将获得的access_key输入进localStorage内
  4. 确认是否成功授权

更具体的操作可以参考这个issue

aq6699 commented 10 months ago

海外授權後已出現請使用最新版本掃碼登陸 能教一下怎麼解決嗎

就像樓上說的手動授權

  1. biliplus登陸
  2. 利用開發者工具取得biliplus上的access_key
  3. 利用開發者工具將所得的access_key輸入到localStorage內
  4. 確認是否成功授權

更具體的操作可以參考這個問題

我開啟舊版頁面就能看了

chouex commented 9 months ago

如果照樓上操作都不行, 可能是因為biliplus上面的access_key都過期, 即使biliplus上面顯示了用戶名, 如果無法顯示观看历史要先重新登錄biliplus.

之後就能看番了

8MiYile commented 9 months ago

这个插件会导致浏览器,手机和TV端同时退出登录,请不要使用

Tian-Zun commented 6 months ago

現階段依然無效