mirror of
https://github.com/anxdpanic/plugin.video.youtube.git
synced 2025-12-15 15:10:34 -08:00
Misc tidy ups
This commit is contained in:
parent
a8827d8303
commit
d5b3935485
2 changed files with 10 additions and 11 deletions
|
|
@ -15,9 +15,12 @@ __all__ = ('run',)
|
|||
|
||||
|
||||
def run(provider, context=None):
|
||||
from .compatibility import xbmc
|
||||
if not context:
|
||||
from .context import XbmcContext
|
||||
|
||||
profiler = xbmc.getCondVisibility('System.GetBool(debug.showloginfo)')
|
||||
context = XbmcContext()
|
||||
|
||||
profiler = context.get_infobool('System.GetBool(debug.showloginfo)')
|
||||
if profiler:
|
||||
from .debug import Profiler
|
||||
|
||||
|
|
@ -29,10 +32,6 @@ def run(provider, context=None):
|
|||
from .plugin import XbmcPlugin
|
||||
|
||||
plugin = XbmcPlugin()
|
||||
if not context:
|
||||
from .context import XbmcContext
|
||||
|
||||
context = XbmcContext()
|
||||
|
||||
context.log_debug('Starting Kodion framework by bromix...')
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue