diff options
author | spoob <spoob@gmx.de> | 2010-01-13 14:24:29 +0100 |
---|---|---|
committer | spoob <spoob@gmx.de> | 2010-01-13 14:24:29 +0100 |
commit | fa885950149109926c8587876930a3f4e287ee26 (patch) | |
tree | 0614cf6e28fb873e7c9dccb6e898839c2a31ddba | |
parent | More YoutubeChannel Options (diff) | |
download | pyload-fa885950149109926c8587876930a3f4e287ee26.tar.xz |
More YoutubeChannel Options
-rw-r--r-- | module/plugins/decrypter/YoutubeChannel.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/module/plugins/decrypter/YoutubeChannel.py b/module/plugins/decrypter/YoutubeChannel.py index 2a3ae337f..2cea419de 100644 --- a/module/plugins/decrypter/YoutubeChannel.py +++ b/module/plugins/decrypter/YoutubeChannel.py @@ -21,14 +21,17 @@ class YoutubeChannel(Plugin): self.parent = parent self.html = None self.read_config() + self.user = re.search(r"/user/(.+)", self.parent.url).group(1) + def file_exists(self): """ returns True or False """ + rep = self.req.load("http://gdata.youtube.com/feeds/api/users/%s" % self.user) + print rep return True def proceed(self, url, location): - self.user = re.search(r"/user/(.+)", self.parent.url).group(1) max_videos = self.config['max_videos'] if not max_videos: max_videos = 1000 #max video a user can upload |