From 907a4f7b7a60c03522a0f3b958668c1504bc9dec Mon Sep 17 00:00:00 2001 From: Juszoe Date: Mon, 19 Jul 2021 11:38:40 +0800 Subject: [PATCH] fix pattern string --- nexusphp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nexusphp.py b/nexusphp.py index c01b835..fb8f636 100644 --- a/nexusphp.py +++ b/nexusphp.py @@ -284,7 +284,7 @@ def get_peer_page(): # https://lemonhd.org/details_movie.php?id=xxx # https://lemonhd.org/details_music.php?id=xxx # ... - peer_url = re.sub('details_\w+.php', 'viewpeerlist.php', link, 1) + peer_url = re.sub(r'details_\w+.php', 'viewpeerlist.php', link, 1) else: peer_url = link.replace('details.php', 'viewpeerlist.php', 1) try: