From ea328b2201da2b1d1e120b9db9c4d0c6722011ee Mon Sep 17 00:00:00 2001 From: Sven Slootweg Date: Tue, 5 Jun 2012 04:37:45 +0200 Subject: [PATCH] Fix regex --- resolvers/putlocker.py | 2 +- resolvers/sockshare.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/resolvers/putlocker.py b/resolvers/putlocker.py index 7b74b46..2f1ff99 100644 --- a/resolvers/putlocker.py +++ b/resolvers/putlocker.py @@ -7,7 +7,7 @@ def resolve(url): except ImportError: raise ResolverError("The Python mechanize module is required to resolve PutLocker URLs.") - matches = re.search("https?:\/\/(www\.)?putlocker.com\/(file|embed)\/([A-Z0-9]+)", url) + matches = re.search("https?:\/\/(www\.)?putlocker\.com\/(file|embed)\/([A-Z0-9]+)", url) if matches is None: raise ResolverError("The provided URL is not a valid PutLocker URL.") diff --git a/resolvers/sockshare.py b/resolvers/sockshare.py index e1b179b..6f0c527 100644 --- a/resolvers/sockshare.py +++ b/resolvers/sockshare.py @@ -7,7 +7,7 @@ def resolve(url): except ImportError: raise ResolverError("The Python mechanize module is required to resolve SockShare URLs.") - matches = re.search("https?:\/\/(www\.)?sockshare.com\/(file|embed)\/([A-Z0-9]+)", url) + matches = re.search("https?:\/\/(www\.)?sockshare\.com\/(file|embed)\/([A-Z0-9]+)", url) if matches is None: raise ResolverError("The provided URL is not a valid SockShare URL.")