From fa885950149109926c8587876930a3f4e287ee26 Mon Sep 17 00:00:00 2001 From: spoob Date: Wed, 13 Jan 2010 14:24:29 +0100 Subject: More YoutubeChannel Options --- module/plugins/decrypter/YoutubeChannel.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'module/plugins/decrypter/YoutubeChannel.py') 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 -- cgit v1.2.3