2022-10-01, 18:31
Hello to all!!
Need some help with multiselect dialog:
I have this piece of code:
This code gives me this dialog:
This list comes from a folder with json files, which are created when the database is created. So this list will change as new genres are created:
But when I select for example "Action" and "Kids", "new_value_str" returns "0, 2".
I know "0" is the first item and "2" is the third item in the list.
But I would like instead of returning "0, 2", return to "Action, Kids" It's possible?
Need some help with multiselect dialog:
I have this piece of code:
Code:
genre_list = [x.split('.')[0] for x in genre_list_ext]
sDialog = xbmcgui.Dialog().multiselect('Select Genre', genre_list)
new_value_str = sDialog
This code gives me this dialog:
This list comes from a folder with json files, which are created when the database is created. So this list will change as new genres are created:
But when I select for example "Action" and "Kids", "new_value_str" returns "0, 2".
I know "0" is the first item and "2" is the third item in the list.
But I would like instead of returning "0, 2", return to "Action, Kids" It's possible?