movie id can be found ignoring the kodi skin

This commit is contained in:
Ronald Schaten 2021-03-19 15:24:43 +01:00
parent a561932844
commit 1af7508eb8

View File

@ -115,16 +115,7 @@ def get_feature(movieid):
# entry point # entry point
if __name__ == '__main__': if __name__ == '__main__':
if (sys.argv[1] == 'experience'): movieid = xbmc.getInfoLabel('ListItem.DBID').decode('utf-8')
# 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)
cinematic_path = ADDON.getSettingString('cinematic_path') cinematic_path = ADDON.getSettingString('cinematic_path')
feature = get_feature(movieid) feature = get_feature(movieid)
print(feature) print(feature)