summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/UlozTo.py
diff options
context:
space:
mode:
authorGravatar Jelenik <jelenik@jelenik.sk> 2014-05-26 20:12:30 +0200
committerGravatar Jelenik <jelenik@jelenik.sk> 2014-05-26 20:12:30 +0200
commitbe24d032c3c3a74c18fbd347f98104cafe28aacd (patch)
tree7840d72ea1604246c8539e59e6b3daf4e0e31d53 /module/plugins/hoster/UlozTo.py
parent[CaptchaBrotherhood] Pillow support (diff)
downloadpyload-be24d032c3c3a74c18fbd347f98104cafe28aacd.tar.xz
Update UlozTo.py - change of file_name_pattern
- last used file_name_pattern was not present in html, I have it changed for info from title tag
Diffstat (limited to 'module/plugins/hoster/UlozTo.py')
-rw-r--r--module/plugins/hoster/UlozTo.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/module/plugins/hoster/UlozTo.py b/module/plugins/hoster/UlozTo.py
index 65e941981..282d4605b 100644
--- a/module/plugins/hoster/UlozTo.py
+++ b/module/plugins/hoster/UlozTo.py
@@ -31,12 +31,12 @@ class UlozTo(SimpleHoster):
__name__ = "UlozTo"
__type__ = "hoster"
__pattern__ = r'http://(?:www\.)?(uloz\.to|ulozto\.(cz|sk|net)|bagruj.cz|zachowajto.pl)/(?:live/)?(?P<id>\w+/[^/?]*)'
- __version__ = "0.97"
+ __version__ = "0.98"
__description__ = """Uloz.to hoster plugin"""
__author_name__ = "zoidberg"
__author_mail__ = "zoidberg@mujmail.cz"
- FILE_NAME_PATTERN = r'<a href="#download" class="jsShowDownload">(?P<N>[^<]+)</a>'
+ FILE_NAME_PATTERN = r'<title>(?P<N>[^<]+) \| Uloz.to</title>'
FILE_SIZE_PATTERN = r'<span id="fileSize">.*?(?P<S>[0-9.]+\s[kMG]?B)</span>'
FILE_INFO_PATTERN = r'<p>File <strong>(?P<N>[^<]+)</strong> is password protected</p>'
FILE_OFFLINE_PATTERN = r'<title>404 - Page not found</title>|<h1 class="h1">File (has been deleted|was banned)</h1>'