Juszoe / flexget-nexusphp

A flexget plugin for filter nexusphp torrents
GNU General Public License v3.0
516 stars 115 forks source link

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

Open hxs2660 opened 3 years ago

hxs2660 commented 3 years ago

由于柠檬站点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)

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