diff options
author | Jeix <devnull@localhost> | 2010-06-27 11:35:40 +0200 |
---|---|---|
committer | Jeix <devnull@localhost> | 2010-06-27 11:35:40 +0200 |
commit | 0c28ecf5b370b51874270de1aae52e02576073d3 (patch) | |
tree | c52b2c9f659e0d90e93a88361cd0553e5768ebe5 /module | |
parent | porno update, new plugins: (diff) | |
download | pyload-0c28ecf5b370b51874270de1aae52e02576073d3.tar.xz |
youporn fix
and cli config fix
Diffstat (limited to 'module')
-rw-r--r-- | module/plugins/hoster/YoupornCom.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/module/plugins/hoster/YoupornCom.py b/module/plugins/hoster/YoupornCom.py index 31e18821f..220d14a9e 100644 --- a/module/plugins/hoster/YoupornCom.py +++ b/module/plugins/hoster/YoupornCom.py @@ -31,7 +31,7 @@ class YoupornCom(Hoster): def download_html(self): url = self.parent.url - self.html = self.load(url) + self.html = self.load(url, post={"user_choice":"Enter"}) def get_file_url(self): """ returns the absolute downloadable filepath @@ -40,12 +40,12 @@ class YoupornCom(Hoster): self.download_html() file_url = re.search(r'(http://download.youporn.com/download/\d*/.*\?download=1&ll=1&t=dd)">', self.html).group(1) - print file_url return file_url def get_file_name(self): if self.html == None: self.download_html() + file_name_pattern = r".*<title>(.*) - Free Porn Videos - YouPorn.com Lite \(BETA\)</title>.*" return re.search(file_name_pattern, self.html).group(1) + '.flv' |