diff options
Diffstat (limited to 'module/plugins/hoster')
| -rw-r--r-- | module/plugins/hoster/MediafireCom.py | 2 | ||||
| -rw-r--r-- | module/plugins/hoster/OneFichierCom.py | 4 | ||||
| -rw-r--r-- | module/plugins/hoster/UploadedTo.py | 4 | ||||
| -rw-r--r-- | module/plugins/hoster/YoutubeCom.py | 4 | 
4 files changed, 8 insertions, 6 deletions
| diff --git a/module/plugins/hoster/MediafireCom.py b/module/plugins/hoster/MediafireCom.py index 3ba191160..5352e0261 100644 --- a/module/plugins/hoster/MediafireCom.py +++ b/module/plugins/hoster/MediafireCom.py @@ -11,7 +11,7 @@ class MediafireCom(SimpleHoster):      __version__ = "0.90"      __status__  = "testing" -    __pattern__ = r'https?://(?:www\.)?mediafire\.com/(file/|view/\??|download(\.php\?|/)|\?)(?P<ID>\w{15})' +    __pattern__ = r'https?://(?:www\.)?mediafire\.com/(file/|view/\??|download(\.php\?|/)|\?)(?P<ID>\w*)'      __config__  = [("use_premium", "bool", "Use premium account if available", True)]      __description__ = """Mediafire.com hoster plugin""" diff --git a/module/plugins/hoster/OneFichierCom.py b/module/plugins/hoster/OneFichierCom.py index c564dc677..04a00d572 100644 --- a/module/plugins/hoster/OneFichierCom.py +++ b/module/plugins/hoster/OneFichierCom.py @@ -8,7 +8,7 @@ from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo  class OneFichierCom(SimpleHoster):      __name__    = "OneFichierCom"      __type__    = "hoster" -    __version__ = "0.86" +    __version__ = "0.87"      __status__  = "testing"      __pattern__ = r'https?://(?:www\.)?(?:(?P<ID1>\w+)\.)?(?P<HOST>1fichier\.com|alterupload\.com|cjoint\.net|d(es)?fichiers\.com|dl4free\.com|megadl\.fr|mesfichiers\.org|piecejointe\.net|pjointe\.com|tenvoi\.com)(?:/\?(?P<ID2>\w+))?' @@ -28,7 +28,7 @@ class OneFichierCom(SimpleHoster):      COOKIES     = [("1fichier.com", "LG", "en")] -    NAME_PATTERN    = r'>FileName :</td>\s*<td.*>(?P<N>.+?)<' +    NAME_PATTERN    = r'>File\s*Name :</td>\s*<td.*>(?P<N>.+?)<'      SIZE_PATTERN    = r'>Size :</td>\s*<td.*>(?P<S>[\d.,]+) (?P<U>[\w^_]+)'      OFFLINE_PATTERN = r'File not found !\s*<' diff --git a/module/plugins/hoster/UploadedTo.py b/module/plugins/hoster/UploadedTo.py index c90f2bb0f..890a1698a 100644 --- a/module/plugins/hoster/UploadedTo.py +++ b/module/plugins/hoster/UploadedTo.py @@ -12,7 +12,7 @@ from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo  class UploadedTo(SimpleHoster):      __name__    = "UploadedTo"      __type__    = "hoster" -    __version__ = "0.96" +    __version__ = "0.97"      __status__  = "testing"      __pattern__ = r'https?://(?:www\.)?(uploaded\.(to|net)|ul\.to)(/file/|/?\?id=|.*?&id=|/)(?P<ID>\w+)' @@ -31,6 +31,7 @@ class UploadedTo(SimpleHoster):      OFFLINE_PATTERN      = r'>Page not found'      TEMP_OFFLINE_PATTERN = r'<title>uploaded\.net - Maintenance' +    PREMIUM_ONLY_PATTERN = r'This file exceeds the max\. filesize which can be downloaded by free users\.'      LINK_FREE_PATTERN    = r"url:\s*'(.+?)'"      LINK_PREMIUM_PATTERN = r'<div class="tfree".*\s*<form method="post" action="(.+?)"' @@ -77,6 +78,7 @@ class UploadedTo(SimpleHoster):          self.html = self.load("http://uploaded.net/io/ticket/captcha/%s" % self.info['pattern']['ID'],                                post={'recaptcha_challenge_field': challenge,                                      'recaptcha_response_field' : response}) +        self.check_errors()          super(UploadedTo, self).handle_free(pyfile)          self.check_errors() diff --git a/module/plugins/hoster/YoutubeCom.py b/module/plugins/hoster/YoutubeCom.py index 865eeef2e..86cca7cf1 100644 --- a/module/plugins/hoster/YoutubeCom.py +++ b/module/plugins/hoster/YoutubeCom.py @@ -33,7 +33,7 @@ def which(program):  class YoutubeCom(Hoster):      __name__    = "YoutubeCom"      __type__    = "hoster" -    __version__ = "0.44" +    __version__ = "0.45"      __status__  = "testing"      __pattern__ = r'https?://(?:[^/]*\.)?(youtube\.com|youtu\.be)/watch\?(?:.*&)?v=.+' @@ -54,7 +54,7 @@ class YoutubeCom(Hoster):      URL_REPLACEMENTS = [(r'youtu\.be/', 'youtube.com/')]      #: Invalid characters that must be removed from the file name -    invalidChars = u'\u2605:?><"|\\' +    invalid_chars = u'\u2605:?><"|\\'      #: name, width, height, quality ranking, 3D      formats = {5  : (".flv" , 400 , 240 , 1 , False), | 
