summaryrefslogtreecommitdiffstats
path: root/module/plugins/decrypter/YoutubeChannel.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/decrypter/YoutubeChannel.py')
-rw-r--r--module/plugins/decrypter/YoutubeChannel.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/module/plugins/decrypter/YoutubeChannel.py b/module/plugins/decrypter/YoutubeChannel.py
index ba2ca1472..73cf76094 100644
--- a/module/plugins/decrypter/YoutubeChannel.py
+++ b/module/plugins/decrypter/YoutubeChannel.py
@@ -21,7 +21,7 @@ class YoutubeChannel(Plugin):
self.parent = parent
self.html = None
self.read_config()
- self.user = re.search(r"/user/(.+)", self.parent.url).group(1)
+ self.user = re.search(r"/user/(.+)", self.parent.url).group(1).split("#")[0]
def file_exists(self):
if "User not found" in self.req.load("http://gdata.youtube.com/feeds/api/users/%s" % self.user):
@@ -45,7 +45,7 @@ class YoutubeChannel(Plugin):
max_results = 50
url = "http://gdata.youtube.com/feeds/api/users/%s/%s?max-results=%i&start-index=%i" % (self.user, group, max_results, start_index)
rep = self.req.load(url)
- new_links = re.findall(r"href\='(http:\/\/www.youtube.com\/watch\?v\=[^']+)", rep)
+ new_links = re.findall(r"href\='(http:\/\/www.youtube.com\/watch\?v\=[^']+)&", rep)
if new_links != []:
temp_links.extend(new_links)
else: