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

豆瓣收藏《侠探杰克》没有自动下载 #3

Closed
907739769 opened this issue Feb 8, 2022 · 2 comments
Closed

豆瓣收藏《侠探杰克》没有自动下载 #3

907739769 opened this issue Feb 8, 2022 · 2 comments

Comments

@907739769
Copy link

豆瓣收藏《侠探杰克》程序脚本会认为是电影,因为这个美剧豆瓣的页面没有用到“集数”关键词,建议可以加上用“单集片长”关键词

@907739769
Copy link
Author

907739769 commented Feb 8, 2022

    match_js = re.findall(r'<span class="pl">集数:</span>\s*(\d+)<br/>', text)
    match_pc = re.findall(r'<span class="pl">单集片长:</span>\s*(\d+)分钟<br/>', text)
    if (match_js is not None and len(match_js) > 0) or (match_pc is not None and len(match_pc) > 0):
        if match_js is not None and len(match_js) > 0:
            episode = int(str(match_js[0]))
        else:
            episode = 1
        type = 'Series'

@muyeyong
Copy link
Owner

这个可以在user_config.yml自定义配置,typeMappingPath:配置对应的type 和 rootFile 映射就可以了

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

No branches or pull requests

2 participants