movie id can be found ignoring the kodi skin
This commit is contained in:
parent
a561932844
commit
1af7508eb8
11
addon.py
11
addon.py
@ -115,16 +115,7 @@ def get_feature(movieid):
|
||||
|
||||
# entry point
|
||||
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')
|
||||
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)
|
||||
|
||||
movieid = xbmc.getInfoLabel('ListItem.DBID').decode('utf-8')
|
||||
cinematic_path = ADDON.getSettingString('cinematic_path')
|
||||
feature = get_feature(movieid)
|
||||
print(feature)
|
||||
|
Loading…
Reference in New Issue
Block a user