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

对迅雷的一些优化 #540

Merged
merged 1 commit into from
Aug 16, 2024
Merged

Conversation

zctmdc
Copy link
Contributor

@zctmdc zctmdc commented Aug 15, 2024

例如:
可能存在下标不连续情况

{
    "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的情况

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 3.21.0 之后迅雷版本会自动获取 device_id token

Fixes #

Proposed Changes

Release Note


例如:
可能存在下表不连续情况
```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`
Copy link
Contributor

gitautomator bot commented Aug 15, 2024

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

Copy link

netlify bot commented Aug 15, 2024

Deploy Preview for kubespider ready!

Name Link
🔨 Latest commit 036c6b4
🔍 Latest deploy log https://app.netlify.com/sites/kubespider/deploys/66be50f41e872c0008637208
😎 Deploy Preview https://deploy-preview-540--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.

@miRemid
Copy link
Collaborator

miRemid commented Aug 16, 2024

cc @richardli1598

@richardli1598
Copy link
Contributor

感谢贡献!

@richardli1598 richardli1598 merged commit bbab3d3 into opennaslab:main Aug 16, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants