opennaslab / kubespider

A global resource download orchestration system, build your home download center.
https://kubespider.netlify.app/
Apache License 2.0
2.01k stars 114 forks source link

对迅雷的一些优化 #540

Closed zctmdc closed 4 weeks ago

zctmdc commented 1 month ago

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

{
    "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

gitautomator[bot] commented 1 month ago

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

netlify[bot] commented 1 month ago

Deploy Preview for kubespider ready!

Name Link
Latest commit 036c6b490597264c693c7e5c47377b04c2d89009
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 commented 1 month ago

cc @richardli1598

richardli1598 commented 4 weeks ago

感谢贡献!