diff options
author | 2014-09-08 00:29:57 +0200 | |
---|---|---|
committer | 2014-09-14 11:02:23 +0200 | |
commit | 68d662e689cd42687341c550fb6ebb74e6968d21 (patch) | |
tree | 486cef41bd928b8db704894233b2cef94a6e346f /module/plugins/hoster/XVideosCom.py | |
parent | save_join -> safe_join & save_path -> safe_filename (diff) | |
download | pyload-68d662e689cd42687341c550fb6ebb74e6968d21.tar.xz |
module -> pyload
Diffstat (limited to 'module/plugins/hoster/XVideosCom.py')
-rw-r--r-- | module/plugins/hoster/XVideosCom.py | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/module/plugins/hoster/XVideosCom.py b/module/plugins/hoster/XVideosCom.py deleted file mode 100644 index 4f2611740..000000000 --- a/module/plugins/hoster/XVideosCom.py +++ /dev/null @@ -1,28 +0,0 @@ -# -*- coding: utf-8 -*- - -import re - -from urllib import unquote - -from module.plugins.Hoster import Hoster - - -class XVideosCom(Hoster): - __name__ = "XVideos.com" - __type__ = "hoster" - __version__ = "0.1" - - __pattern__ = r'http://(?:www\.)?xvideos\.com/video([0-9]+)/.*' - - __description__ = """XVideos.com hoster plugin""" - __author_name__ = None - __author_mail__ = None - - - def process(self, pyfile): - site = self.load(pyfile.url) - pyfile.name = "%s (%s).flv" % ( - re.search(r"<h2>([^<]+)<span", site).group(1), - re.match(self.__pattern__, pyfile.url).group(1), - ) - self.download(unquote(re.search(r"flv_url=([^&]+)&", site).group(1))) |