diff options
Diffstat (limited to 'module/plugins/decrypter')
-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 |