summaryrefslogtreecommitdiff
path: root/plugins/youtube
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/youtube')
-rwxr-xr-xplugins/youtube8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/youtube b/plugins/youtube
index d9efb0e..5614860 100755
--- a/plugins/youtube
+++ b/plugins/youtube
@@ -35,14 +35,14 @@ class Plugin:
print ('ZYKLONB print :%s' % what)
class YouTube (Plugin):
- re_videos = list (map (lambda x: re.compile (x), [
+ re_videos = [re.compile (x) for x in [
r'youtube\.[a-z]+/[^ ]*[&?]v=([-\w]+)',
r'youtube\.[a-z]+/v/([-\w]+)',
r'youtu\.be/([-\w]+)'
- ]))
- re_playlists = list (map (lambda x: re.compile (x), [
+ ]]
+ re_playlists = [re.compile (x) for x in [
r'youtube\.[a-z]+/playlist[&?][^ ]*(?<=&|\?)list=([-\w]+)',
- ]))
+ ]]
def print_info (self, channel, url, cb):
try: