diff options
author | Stefano <l.stickell@yahoo.it> | 2013-05-12 00:31:23 +0200 |
---|---|---|
committer | Stefano <l.stickell@yahoo.it> | 2013-05-12 00:31:23 +0200 |
commit | ac94c1e73cae76877632bee17f7f4e345fd13188 (patch) | |
tree | 4b6bfc5b7f9b56c51297748cc647122b7e38637f /module/plugins/crypter/YoutubeBatch.py | |
parent | Merge pull request #112 from Vuolter/plugin/DeleteFinished (diff) | |
parent | YoutubeBatch.py, YoutubeCom.py: Synced regulare expression. (diff) | |
download | pyload-ac94c1e73cae76877632bee17f7f4e345fd13188.tar.xz |
Merge pull request #113 from 4Christopher/stable
YoutubeCom.py: Fixed regular expression.
Diffstat (limited to 'module/plugins/crypter/YoutubeBatch.py')
-rw-r--r-- | module/plugins/crypter/YoutubeBatch.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/module/plugins/crypter/YoutubeBatch.py b/module/plugins/crypter/YoutubeBatch.py index 567191bb9..72b72aab7 100644 --- a/module/plugins/crypter/YoutubeBatch.py +++ b/module/plugins/crypter/YoutubeBatch.py @@ -11,8 +11,8 @@ API_KEY = "AIzaSyCKnWLNlkX-L4oD1aEzqqhRw1zczeD6_k0" class YoutubeBatch(Crypter): __name__ = "YoutubeBatch" __type__ = "container" - __pattern__ = r"http://(?:[^/]*?)youtube\.com/((?:view_play_list|playlist|.*?feature=PlayList).*?[\?&](?:list|p)=)([a-zA-Z0-9-_]+)" - __version__ = "0.92" + __pattern__ = r"https?://(?:[^/]*?)youtube\.com/(?:(?:view_play_list|playlist|.*?feature=PlayList).*?[?&](?:list|p)=)([a-zA-Z0-9-_]+)" + __version__ = "0.93" __description__ = """Youtube.com Channel Download Plugin""" __author_name__ = ("RaNaN", "Spoob", "zoidberg", "roland") __author_mail__ = ("RaNaN@pyload.org", "spoob@pyload.org", "zoidberg@mujmail.cz", "roland@enkore.de") @@ -35,7 +35,7 @@ class YoutubeBatch(Crypter): def decrypt(self, pyfile): match_id = re.match(self.__pattern__, self.pyfile.url) new_links = [] - playlist_id = match_id.group(2) + playlist_id = match_id.group(1) new_links.extend(self.get_videos(playlist_id)) |