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

解决柠檬匹配不到做种、下载人数的问题 #55

Open
hxs2660 opened this issue Jan 19, 2021 · 0 comments
Open

解决柠檬匹配不到做种、下载人数的问题 #55

hxs2660 opened this issue Jan 19, 2021 · 0 comments

Comments

@hxs2660
Copy link

hxs2660 commented Jan 19, 2021

由于柠檬站点details.php和别的站点不一样,比如details_tv.php、details_movie.php,所以不能匹配到正确的信息,解决方法,把第281行的代码删掉,
peer_url = link.replace('details.php', 'viewpeerlist.php', 1)
改成下面的:

if link.find('lemonhd.org'):
    peer_url = re.sub(r'/(de.*).php','/viewpeerlist.php',link)
else:
    peer_url = link.replace('details.php', 'viewpeerlist.php', 1)

不知道怎么写正则表达式能替换所有站点,先解决柠檬吧

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

1 participant