Skip to content

Commit e3747bb

Browse files
committed
Fixed pyload#228
1 parent 9292f3d commit e3747bb

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

module/plugins/hoster/RapidgatorNet.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,14 @@ class RapidgatorNet(SimpleHoster):
2929
__name__ = "RapidgatorNet"
3030
__type__ = "hoster"
3131
__pattern__ = r"http://(?:www\.)?(rapidgator.net)/file/(\w+)"
32-
__version__ = "0.18"
32+
__version__ = "0.19"
3333
__description__ = """rapidgator.net"""
3434
__author_name__ = ("zoidberg", "chrox", "stickell")
3535

3636
API_URL = 'http://rapidgator.net/api/file'
3737

38-
FILE_INFO_PATTERN = r'Downloading:(\s*<[^>]*>)*\s*(?P<N>.*?)(\s*<[^>]*>)*\s*File size:\s*<strong>(?P<S>.*?)</strong>'
38+
FILE_NAME_PATTERN = r'Downloading:(?:\s*<[^>]*>)*\s*(?P<N>.*?)(?:\s*<[^>]*>)'
39+
FILE_SIZE_PATTERN = r'File size:\s*<strong>(?P<S>.*?)</strong>'
3940
FILE_OFFLINE_PATTERN = r'<title>File not found</title>'
4041

4142
JSVARS_PATTERN = r"\s+var\s*(startTimerUrl|getDownloadUrl|captchaUrl|fid|secs)\s*=\s*'?(.*?)'?;"

0 commit comments

Comments
 (0)