diff options
author | Stefano <l.stickell@yahoo.it> | 2013-06-28 16:34:52 +0200 |
---|---|---|
committer | Stefano <l.stickell@yahoo.it> | 2013-06-28 16:34:52 +0200 |
commit | 0903563a3e3fe087e21fb54d1a77f388492f87d7 (patch) | |
tree | 7a894bccb7fbb4e502fd798f30522e6f674daf5f /module/plugins/hoster | |
parent | StreamcloudEu: increased version number after 40831c996c0c80e369d2232bd707e0b... (diff) | |
download | pyload-0903563a3e3fe087e21fb54d1a77f388492f87d7.tar.xz |
Fixed #170
Diffstat (limited to 'module/plugins/hoster')
-rw-r--r-- | module/plugins/hoster/HundredEightyUploadCom.py | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/module/plugins/hoster/HundredEightyUploadCom.py b/module/plugins/hoster/HundredEightyUploadCom.py new file mode 100644 index 000000000..d8b744359 --- /dev/null +++ b/module/plugins/hoster/HundredEightyUploadCom.py @@ -0,0 +1,36 @@ +# -*- coding: utf-8 -*- + +############################################################################ +# This program is free software: you can redistribute it and/or modify # +# it under the terms of the GNU Affero General Public License as # +# published by the Free Software Foundation, either version 3 of the # +# License, or (at your option) any later version. # +# # +# This program is distributed in the hope that it will be useful, # +# but WITHOUT ANY WARRANTY; without even the implied warranty of # +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # +# GNU Affero General Public License for more details. # +# # +# You should have received a copy of the GNU Affero General Public License # +# along with this program. If not, see <http://www.gnu.org/licenses/>. # +############################################################################ + +from module.plugins.hoster.XFileSharingPro import XFileSharingPro, create_getInfo + + +class HundredEightyUploadCom(XFileSharingPro): + __name__ = "HundredEightyUploadCom" + __type__ = "hoster" + __pattern__ = r"http://(?:\w*\.)?180upload\.com/(\w+).*" + __version__ = "0.01" + __description__ = """180upload.com hoster plugin""" + __author_name__ = ("stickell") + __author_mail__ = ("l.stickell@yahoo.it") + + FILE_NAME_PATTERN = r'Filename:</b></td><td nowrap>(?P<N>.+)</td></tr>-->' + FILE_SIZE_PATTERN = r'Size:</b></td><td>(?P<S>[\d.]+) (?P<U>[A-Z]+)\s*<small>' + + HOSTER_NAME = "180upload.com" + + +getInfo = create_getInfo(HundredEightyUploadCom) |