movie id can be found ignoring the kodi skin
This commit is contained in:
parent
a561932844
commit
1af7508eb8
9
addon.py
9
addon.py
@ -115,16 +115,7 @@ def get_feature(movieid):
|
|||||||
|
|
||||||
# entry point
|
# entry point
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
if (sys.argv[1] == 'experience'):
|
|
||||||
# addon is called like the experience plugin (Estuary skin does that)
|
|
||||||
movieid = xbmc.getInfoLabel('ListItem.DBID').decode('utf-8')
|
movieid = xbmc.getInfoLabel('ListItem.DBID').decode('utf-8')
|
||||||
else:
|
|
||||||
# addon is called like CinemaVision plugin (Aeon Nox does that)
|
|
||||||
for arg in sys.argv[1:]:
|
|
||||||
(name, value) = arg.split('=')
|
|
||||||
if name == 'dbid':
|
|
||||||
movieid = int(value)
|
|
||||||
|
|
||||||
cinematic_path = ADDON.getSettingString('cinematic_path')
|
cinematic_path = ADDON.getSettingString('cinematic_path')
|
||||||
feature = get_feature(movieid)
|
feature = get_feature(movieid)
|
||||||
print(feature)
|
print(feature)
|
||||||
|
Loading…
Reference in New Issue
Block a user