From 5fd3fb6aba23338e4f242f90f2a3f60cf1ee772c Mon Sep 17 00:00:00 2001 From: Akamaru Date: Sat, 24 Dec 2016 23:52:30 +0100 Subject: [PATCH] Fixes Instagram: Pattern-Fix Plex: Studio-Fix --- miku/plugins/instagram.lua | 2 +- miku/plugins/plex.lua | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/miku/plugins/instagram.lua b/miku/plugins/instagram.lua index 0c5237c..4b8186d 100644 --- a/miku/plugins/instagram.lua +++ b/miku/plugins/instagram.lua @@ -2,7 +2,7 @@ local instagram = {} function instagram:init(config) instagram.triggers = { - "https?://www.instagram.com/p/(.*)" + "instagram.com/p/(.*)" } end diff --git a/miku/plugins/plex.lua b/miku/plugins/plex.lua index 745a653..7b3aee7 100644 --- a/miku/plugins/plex.lua +++ b/miku/plugins/plex.lua @@ -79,7 +79,11 @@ function plex:get_plex(query) end if data.studio then - studio = '\nStudio: '..data.studio + if string.match(data.studio, "None found, add some") then + studio = '' + else + studio = '\nStudio: '..data.studio + end else studio = '' end