summaryrefslogtreecommitdiffstats
path: root/module/plugins
diff options
context:
space:
mode:
authorGravatar spoob <spoob@gmx.de> 2010-01-13 14:28:55 +0100
committerGravatar spoob <spoob@gmx.de> 2010-01-13 14:28:55 +0100
commit5d1ecc6df93a6f4015fe5b83b3391ddd8c90f7b5 (patch)
tree935775250e2986f8596acf924808375ba8cd520d /module/plugins
parentMore YoutubeChannel Options (diff)
downloadpyload-5d1ecc6df93a6f4015fe5b83b3391ddd8c90f7b5.tar.xz
YoutubeChannel Checks File Exists
Diffstat (limited to 'module/plugins')
-rw-r--r--module/plugins/decrypter/YoutubeChannel.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/module/plugins/decrypter/YoutubeChannel.py b/module/plugins/decrypter/YoutubeChannel.py
index 2cea419de..a5751ed7c 100644
--- a/module/plugins/decrypter/YoutubeChannel.py
+++ b/module/plugins/decrypter/YoutubeChannel.py
@@ -13,7 +13,7 @@ class YoutubeChannel(Plugin):
props['name'] = "YoutubeChannel"
props['type'] = "container"
props['pattern'] = r"http://(www\.)?(de\.)?\youtube\.com/user/*"
- props['version'] = "0.4"
+ props['version'] = "0.9"
props['description'] = """Youtube.com Channel Download Plugin"""
props['author_name'] = ("RaNaN", "Spoob")
props['author_mail'] = ("RaNaN@pyload.org", "spoob@pyload.org")
@@ -23,12 +23,9 @@ class YoutubeChannel(Plugin):
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
+ if "User not found" in self.req.load("http://gdata.youtube.com/feeds/api/users/%s" % self.user):
+ return False
return True
def proceed(self, url, location):