This repository has been archived by the owner on Aug 11, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Trim down main class and call the correct followup implementation
- Loading branch information
Showing
10 changed files
with
259 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
from resources.lib import kodiLogging | ||
<%_ if (props.type == 'Contextmenu') { -%> | ||
from resources.lib import context | ||
<%_ } else if (props.type == 'Plugin') { -%> | ||
from resources.lib import plugin | ||
<%_ } else if (props.type == 'Script') { -%> | ||
from resources.lib import script | ||
<%_ } else if (props.type == 'Service') { -%> | ||
from resources.lib import service | ||
<%_ } else if (props.type == 'Subtitle') { -%> | ||
from resources.lib import subtitle | ||
<% } %> | ||
import logging | ||
import xbmcaddon | ||
|
||
# Keep this file to a minimum, as Kodi | ||
# doesn't keep a compiled copy of this | ||
ADDON = xbmcaddon.Addon() | ||
kodiLogging.config() | ||
|
||
<%_ if (props.type == 'Contextmenu') { -%> | ||
context.run() | ||
<%_ } else if (props.type == 'Plugin') { -%> | ||
plugin.run() | ||
<%_ } else if (props.type == 'Script') { -%> | ||
script.show_dialog() | ||
<%_ } else if (props.type == 'Service') { -%> | ||
service.run() | ||
<%_ } else if (props.type == 'Subtitle') { -%> | ||
subtitle.run() | ||
<% } %> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.