From 37048abb516b892e400624768ecef44e2e5e1ec9 Mon Sep 17 00:00:00 2001 From: Moritz Venn Date: Thu, 10 Jan 2013 17:03:22 +0100 Subject: [PATCH] pipzap: add experimental ACS support no guarantees that this a) works and b) will continue to work. --- pipzap/src/plugin.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pipzap/src/plugin.py b/pipzap/src/plugin.py index 76d34a0b..815076fb 100644 --- a/pipzap/src/plugin.py +++ b/pipzap/src/plugin.py @@ -422,6 +422,16 @@ def overwriteFunctions(): print("[pipzap] already initialized, aborting.") return + global ChannelContextMenu, ChannelSelection, ChannelSelectionBase + try: + from Plugins.Extensions.AdvancedChannelSelection import plugin + except ImportError as ie: + pass + else: + if config.plugins.AdvancedChannelSelection.enabled.value: + print("[pipzap] ACS is installed and activated, ugly just invited scary to the party xD") + from Plugins.Extensions.AdvancedChannelSelection.ChannelSelection import ChannelContextMenu, ChannelSelection, ChannelSelectionBase + baseMethods.ChannelContextMenu__init__ = ChannelContextMenu.__init__ ChannelContextMenu.__init__ = ChannelContextMenu___init__ -- 2.20.1