-
Notifications
You must be signed in to change notification settings - Fork 122
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
feat(xunlei): auto get token device_id for xunlei 3.21.0 #505
feat(xunlei): auto get token device_id for xunlei 3.21.0 #505
Conversation
close opennaslab#277,还能自动获取 device_id,这样迅雷在 1.21.1 就能开箱即用了无需其他配置
Thanks to your contribution, the maintainers will review it as soon as they can! |
✅ Deploy Preview for kubespider ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
感谢贡献! |
牛逼! |
/cc @qingchoulove 这个ci失败和之前的修改有关系吗? |
kubespider/download_provider/xunlei_download_provider/provider.py
Outdated
Show resolved
Hide resolved
解决了,forget |
kubespider/download_provider/xunlei_download_provider/provider.py
Outdated
Show resolved
Hide resolved
已邀请你成为org成员,请查收: https://github.com/opennaslab |
这我随缘敲代码的,看对眼了提个pr,这也能加吗(捂脸 |
cbc65b5
to
87dce34
Compare
可以的 |
这个版本的docker镜像哪里下载? |
cnk3x/xunlei,这个支持更新,拉下来启动然后网页上更新就行了 |
ok, thanks |
This comment was marked as resolved.
This comment was marked as resolved.
环境变量参数 里有参数阻止更新,且默认开启 Edit: 这个 3.11.2 镜像更新到 3.21.0 启动异常:cnk3x/xunlei#163,用 3.7.1 的镜像启动就行 |
例如: 可能存在下表不连续情况 ```json { "type": "user#download-url", "name": "哪吒之魔童降世.国粤英.Ne.Zha.2019.BD1080P&2160P.X264.DTS-HD.MA.7.1.Mandarin&Cantonese&English.CHS-ENG.FFans@星星", "file_name": "哪吒之魔童降世.国粤英.Ne.Zha.2019.BD1080P&2160P.X264.DTS-HD.MA.7.1.Mandarin&Cantonese&English.CHS-ENG.FFans@星星", "file_size": "33595559143", "space": "device_id#fcff376dffcfa69fae64eec2d7408391", "params": { "target": "device_id#fcff376dffcfa69fae64eec2d7408391", "url": "magnet:?xt=urn:btih:123154AEBE22EB9811FF501A7E1BE1824E0C8298", "total_file_count": "6", "parent_folder_id": "14c0745bb3e71c518163c7c3bced2cb7", "sub_file_index": "0,2,4,6,8,10", "mime_type": "", "file_id": "" } } ``` 不知道解析了什么返回None的情况 ```text kubespider-kubespider-1 | File "/app/kubespider/source_provider/btbtt12_disposable_source_provider/provider.py", line 59, in should_handle kubespider-kubespider-1 | if parse_url.hostname.endswith('btbtt12.com') and 'attach-dialog-fid' in parse_url.path: kubespider-kubespider-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ kubespider-kubespider-1 | AttributeError: 'NoneType' object has no attribute 'endswith' ``` [opennaslab#505](opennaslab#505) `3.21.0` 之后迅雷版本会自动获取 `device_id` `token`
例如: 可能存在下表不连续情况 ```json { "type": "user#download-url", "name": "哪吒之魔童降世.国粤英.Ne.Zha.2019.BD1080P&2160P.X264.DTS-HD.MA.7.1.Mandarin&Cantonese&English.CHS-ENG.FFans@星星", "file_name": "哪吒之魔童降世.国粤英.Ne.Zha.2019.BD1080P&2160P.X264.DTS-HD.MA.7.1.Mandarin&Cantonese&English.CHS-ENG.FFans@星星", "file_size": "33595559143", "space": "device_id#fcff376dffcfa69fae64eec2d7408391", "params": { "target": "device_id#fcff376dffcfa69fae64eec2d7408391", "url": "magnet:?xt=urn:btih:123154AEBE22EB9811FF501A7E1BE1824E0C8298", "total_file_count": "6", "parent_folder_id": "14c0745bb3e71c518163c7c3bced2cb7", "sub_file_index": "0,2,4,6,8,10", "mime_type": "", "file_id": "" } } ``` 不知道解析了什么返回None的情况 ```text kubespider-kubespider-1 | File "/app/kubespider/source_provider/btbtt12_disposable_source_provider/provider.py", line 59, in should_handle kubespider-kubespider-1 | if parse_url.hostname.endswith('btbtt12.com') and 'attach-dialog-fid' in parse_url.path: kubespider-kubespider-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ kubespider-kubespider-1 | AttributeError: 'NoneType' object has no attribute 'endswith' ``` [#505](#505) `3.21.0` 之后迅雷版本会自动获取 `device_id` `token`
Fixes #277
迅雷 3.21.0 将 token 直接放 index.html 里面了,就不用自己找 js 巴拉巴拉了,顺便还增加了获取 device_id,也不用开 F12 抓了,这样迅雷 provider 就能做到开箱即用了。
Release Note