From db5992179699477354d73f5b510c661a1bac1bef Mon Sep 17 00:00:00 2001 From: Christopher <4Christopher@gmx.de> Date: Sun, 12 May 2013 12:22:46 +0200 Subject: Movie2kTo.py: Added regular expression for matching the hoster URL. --- module/plugins/crypter/Movie2kTo.py | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'module/plugins/crypter/Movie2kTo.py') diff --git a/module/plugins/crypter/Movie2kTo.py b/module/plugins/crypter/Movie2kTo.py index f2c5ece55..81f700e8c 100644 --- a/module/plugins/crypter/Movie2kTo.py +++ b/module/plugins/crypter/Movie2kTo.py @@ -9,7 +9,7 @@ class Movie2kTo(Crypter): __name__ = 'Movie2kTo' __type__ = 'container' __pattern__ = r'http://(?:www\.)?movie2k\.to/(.*)\.html' - __version__ = '0.4' + __version__ = '0.5' __config__ = [('accepted_hosters', 'str', 'List of accepted hosters', 'Xvidstage, Putlocker, '), ('dir_quality', 'bool', 'Show the quality of the footage in the folder name', 'True'), ('whole_season', 'bool', 'Download whole season', 'False'), @@ -137,7 +137,18 @@ class Movie2kTo(Crypter): self.logDebug('id: %s, %s: %s' % (h_id, hoster, url)) links.append(url) except: - self.logDebug('Failed to find the URL') + self.logDebug('Failed to find the URL (possibility 1)') + try: + url = re.search(r'