mirror of
https://github.com/gordielachance/plugin.audio.subsonic
synced 2025-02-16 19:50:56 +01:00
Do not touch internals of Python.
This commit is contained in:
parent
fe27001e90
commit
6122515bd3
2
addon.py
2
addon.py
@ -54,6 +54,8 @@ class Plugin(object):
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
mode = self.addon_args.get("mode", ["main_page"])[0]
|
mode = self.addon_args.get("mode", ["main_page"])[0]
|
||||||
|
|
||||||
|
if not mode.startswith("_"):
|
||||||
getattr(self, mode)()
|
getattr(self, mode)()
|
||||||
|
|
||||||
def add_track(self, track, show_artist=False):
|
def add_track(self, track, show_artist=False):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user