summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorGravatar fragonib <devnull@localhost> 2011-05-17 21:58:24 +0200
committerGravatar fragonib <devnull@localhost> 2011-05-17 21:58:24 +0200
commit52de45a97f63efb1b5e3843ed3602bc04b058dd0 (patch)
treeb7d116a1cb6d664614ae16c7e7df9bc504ee72d0 /module
parentconvert sizes to ints (diff)
downloadpyload-52de45a97f63efb1b5e3843ed3602bc04b058dd0.tar.xz
Fixes commit 1478
Diffstat (limited to 'module')
-rw-r--r--module/plugins/hoster/MegauploadCom.py2
-rw-r--r--module/plugins/hoster/UploadStationCom.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/module/plugins/hoster/MegauploadCom.py b/module/plugins/hoster/MegauploadCom.py
index 4ab476d1e..7e9bf589f 100644
--- a/module/plugins/hoster/MegauploadCom.py
+++ b/module/plugins/hoster/MegauploadCom.py
@@ -50,7 +50,7 @@ def _translateAPIFileInfo(apiFileId, apiFileDataMap, apiHosterMap):
try:
fileInfo['status'] = MegauploadCom.API_STATUS_MAPPING[apiFileDataMap[apiFileId]]
fileInfo['name'] = apiFileDataMap['n']
- fileInfo['size'] = apiFileDataMap['s']
+ fileInfo['size'] = int(apiFileDataMap['s'])
fileInfo['hoster'] = apiHosterMap[apiFileDataMap['d']]
except:
pass
diff --git a/module/plugins/hoster/UploadStationCom.py b/module/plugins/hoster/UploadStationCom.py
index 65a44b765..a4695e30a 100644
--- a/module/plugins/hoster/UploadStationCom.py
+++ b/module/plugins/hoster/UploadStationCom.py
@@ -43,7 +43,7 @@ class UploadStationCom(Hoster):
__author_name__ = ("fragonib")
__author_mail__ = ("fragonib[AT]yahoo[DOT]es")
- FILE_OFFLINE_PATTERN = r'''<h1>File not available</h1>|<b>The file could not be found\. Please check the download link'''
+ FILE_OFFLINE_PATTERN = r'''<h1>File not available</h1>|<h1>File is not available</h1>'''
FILE_TITLE_PATTERN = r'''<div class=\"download_item\">(.*?)</div>'''
FILE_SIZE_PATTERN = r'''<div><span>File size: <b>(.*?) (KB|MB|GB)</b>'''
CAPTCHA_PRESENT_TOKEN = '<div class="speedBox" id="showCaptcha" style="display:none;">'