Skip to content
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

Merged

Conversation

sgpublic
Copy link
Contributor

@sgpublic sgpublic commented May 6, 2024

Fixes #277

迅雷 3.21.0 将 token 直接放 index.html 里面了,就不用自己找 js 巴拉巴拉了,顺便还增加了获取 device_id,也不用开 F12 抓了,这样迅雷 provider 就能做到开箱即用了。

Release Note

- feat(xunlei): auto get pan_auth for xunlei 1.21.1 and above
- feat(xunlei): auto get device_id for xunlei

close opennaslab#277,还能自动获取 device_id,这样迅雷在 1.21.1 就能开箱即用了无需其他配置
Copy link
Contributor

gitautomator bot commented May 6, 2024

Thanks to your contribution, the maintainers will review it as soon as they can!

@gitautomator gitautomator bot added the enhancement New feature or request label May 6, 2024
@gitautomator gitautomator bot requested review from evell1992 and miRemid May 6, 2024 11:19
Copy link

netlify bot commented May 6, 2024

Deploy Preview for kubespider ready!

Name Link
🔨 Latest commit 87dce34
🔍 Latest deploy log https://app.netlify.com/sites/kubespider/deploys/663b666908986300080f0a3e
😎 Deploy Preview https://deploy-preview-505--kubespider.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@richardli1598
Copy link
Contributor

感谢贡献!

@richardli1598
Copy link
Contributor

牛逼!

@richardli1598
Copy link
Contributor

/cc @qingchoulove 这个ci失败和之前的修改有关系吗?

@richardli1598
Copy link
Contributor

/cc @qingchoulove 这个ci失败和之前的修改有关系吗?

解决了,forget

@richardli1598
Copy link
Contributor

已邀请你成为org成员,请查收: https://github.com/opennaslab

@sgpublic
Copy link
Contributor Author

sgpublic commented May 8, 2024

已邀请你成为org成员,请查收: https://github.com/opennaslab

这我随缘敲代码的,看对眼了提个pr,这也能加吗(捂脸

@sgpublic sgpublic force-pushed the feat-xunlei_auto_token branch from cbc65b5 to 87dce34 Compare May 8, 2024 11:47
@richardli1598
Copy link
Contributor

已邀请你成为org成员,请查收: https://github.com/opennaslab

这我随缘敲代码的,看对眼了提个pr,这也能加吗(捂脸

可以的

@richardli1598 richardli1598 merged commit 86cb500 into opennaslab:main May 8, 2024
8 checks passed
@sgpublic sgpublic changed the title feat(xunlei): auto get token device_id for xunlei 1.21.1 feat(xunlei): auto get token device_id for xunlei 3.21.0 May 9, 2024
@richardli1598
Copy link
Contributor

这个版本的docker镜像哪里下载?

@sgpublic
Copy link
Contributor Author

这个版本的docker镜像哪里下载?

cnk3x/xunlei,这个支持更新,拉下来启动然后网页上更新就行了

@richardli1598
Copy link
Contributor

ok, thanks

@richardli1598
Copy link
Contributor

但是说我是最新版本耶:
image

@sgpublic

This comment was marked as resolved.

@sgpublic
Copy link
Contributor Author

sgpublic commented Jun 27, 2024

但是说我是最新版本耶:

环境变量参数 里有参数阻止更新,且默认开启

Edit:

这个 3.11.2 镜像更新到 3.21.0 启动异常:cnk3x/xunlei#163,用 3.7.1 的镜像启动就行

zctmdc added a commit to zctmdc/kubespider that referenced this pull request Aug 15, 2024
例如:
可能存在下表不连续情况
```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`
@zctmdc zctmdc mentioned this pull request Aug 15, 2024
richardli1598 pushed a commit that referenced this pull request Aug 16, 2024
例如:
可能存在下表不连续情况
```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`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

迅雷配置有点复杂,可以加自动提取吗
2 participants