You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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'
豆瓣收藏《侠探杰克》程序脚本会认为是电影,因为这个美剧豆瓣的页面没有用到“集数”关键词,建议可以加上用“单集片长”关键词
The text was updated successfully, but these errors were encountered: