Code Monkey home page Code Monkey logo

Comments (10)

yujincheng08 avatar yujincheng08 commented on July 24, 2024

请尝试2.6.0版本

from biliroaming.

rhjdvsgsgks avatar rhjdvsgsgks commented on July 24, 2024

我不是很想用新版的 bilibili ,感觉有点太臃肿了,很多功能我都用不上
edit 稍等,我试试

from biliroaming.

yujincheng08 avatar yujincheng08 commented on July 24, 2024

@rhjdvsgsgks 但我也不可能为各种旧版本都来适配一下🤔

from biliroaming.

rhjdvsgsgks avatar rhjdvsgsgks commented on July 24, 2024

确实是这样,那我还是忍忍吧

虽然我很想试试260是否也有这个问题,但我手机是 armv7 的,而 apkpure 上只有 armv8 的包,装不上(尴尬

from biliroaming.

rhjdvsgsgks avatar rhjdvsgsgks commented on July 24, 2024

能否列一下明确支持哪些版本,是只支持最新版吗?

from biliroaming.

yujincheng08 avatar yujincheng08 commented on July 24, 2024

@rhjdvsgsgks 每次更新我都尽量兼容旧版本的。但是只保证最新版的完整功能支持。
还是那句话,我不可能各个版本都测试一遍兼容性。

from biliroaming.

rhjdvsgsgks avatar rhjdvsgsgks commented on July 24, 2024

您好,我自己尝试着研究了下,确实不好修,com.bapis.bilibili.pgc.gateway.player.v1.PlayURLMosscom.bilibili.bplus.followingcard.api.entity.cardBean.VideoCard#getCommentJumpUrl() 在242中根本不存在,但 com.bilibili.bplus.followingcard.api.entity.cardBean.VideoCard#getJumpUrl() 在242中与 com.bilibili.bplus.followingcard.api.entity.cardBean.VideoCard#getUrl() 的行为类似(redirectUrl 非空时返回的都是它自身),猜测可能是242之后才拆成了 getJumpUrlgetUrl 两部分,试了下直接把 getJumpUrl 替换成 getUrl ,在242上没遇到新的问题,找不到 getJumpUrl 的提示也没了,感觉这里可以加个判断,发现是老版本就去找 getUrl ,新版本去找 getJumpUrl ,这样这里就能修好了(虽然之前提到的功能还是不能用)
edit: 上面是错的,看了下 hook 的内容,如果没有那两个 method 的话可以不去 hook 它,不影响的

抓包发现242判断是否为下载请求参数和新版一样都是 playurl 里的 dl=1 ,但不知道为什么 BangumiPlayUrlHook.kt 附近的 params 里并没有出现下载请求的身影,好像请求 playurl 的相关地方没有被 hook 到一样,港澳台番剧也是,视频的解析并没有发往 biliplus 而是直接发出去了,自然收到了“该地区无法观看”的提示,但评论倒是能看

搜索推荐也是, JsonHook.kt 中的第二个 purify_search 附近的 param 里并没有出现 defaultwords 和 hot 的 json

(ps我不是很懂xposed和android编程,连为什么要 hook com.bilibili.nativelibrary.LibBili 都没搞明白,反编译这个也没看出什么,连入门都称不上,但还是希望您在闲暇之余能稍微透露下是如何找到该 hook 的 class ,剩下的我来“研究”,如果我真修好了就 pr 上来

from biliroaming.

yujincheng08 avatar yujincheng08 commented on July 24, 2024

@rhjdvsgsgks
com.bapis.bilibili.pgc.gateway.player.v1.PlayURLMosscom.bilibili.bplus.followingcard.api.entity.cardBean.VideoCard的hook失效不影响解锁。
purify_search那边换个类名就可以,具体自己打Log看点搜索栏时候两个parse函数返回了什么类。
番剧解锁是先尝试解析,发现有版权限制再使用biliplus修复解析结果。
LibBili的hook是为了去掉dl=1,有版权的番剧在解析地址时候有dl=1会解析失败。

from biliroaming.

rhjdvsgsgks avatar rhjdvsgsgks commented on July 24, 2024

#40 加了一行之后好像修好了
之前发现播放可正常解锁但下载不行,试着在 OkHttpURLConnection 这个 method 之前加个 log ,在播放时能显示但下载时没有,以为播放和下载调的不是同一个 method 所以没 hook 上,花了两三天把从 b.ehn 到 com.bilibili.lib.okhttp.huc.OkHttpURLConnection 之间所有被用到的 method 都 hook 了一遍在开始时输出 log ,最后发现是根本没去 hook ,加一行添加 url 的 hook 就好了

from biliroaming.

rhjdvsgsgks avatar rhjdvsgsgks commented on July 24, 2024

#43 加了两行好了
之前说的没错,第二个 purify_search 附近 (也就是 parseArray) 确实没有被解析热词和排名时使用,但有经过 fastJsonParse ,解析时的类名也和新版不一样,所以加进去就好了

from biliroaming.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.