add itemTitleKeys to config and move getItemTitle to its own file, use everywhere title strings are used
This commit is contained in:
parent
a9091db9ef
commit
fb5a5c5cf7
16 changed files with 41 additions and 49 deletions
|
|
@ -79,7 +79,7 @@ def load_config():
|
|||
|
||||
#add missing defaults
|
||||
for section in (
|
||||
'capabilities', 'cantPlay', 'itemName', 'media', 'posters',
|
||||
'capabilities', 'cantPlay', 'itemName', 'itemTitleKeys', 'media', 'posters',
|
||||
'site', 'tv', 'user.ui', 'user.ui.part', 'user.ui.showFolder',
|
||||
'menuExtras', 'languages'
|
||||
):
|
||||
|
|
|
|||
|
|
@ -620,6 +620,7 @@
|
|||
"plural": "Movies"
|
||||
},
|
||||
"itemRequiresVideo": true,
|
||||
"itemTitleKeys": ["title", "director", "year"],
|
||||
"itemViews": [
|
||||
{"id": "info", "title": "Info"},
|
||||
{"id": "player", "title": "Player"},
|
||||
|
|
|
|||
|
|
@ -636,6 +636,7 @@
|
|||
"plural": "Movies"
|
||||
},
|
||||
"itemRequiresVideo": false,
|
||||
"itemTitleKeys": ["title", "director", "year"],
|
||||
"itemViews": [
|
||||
{"id": "info", "title": "Info"},
|
||||
{"id": "documents", "title": "Documents"},
|
||||
|
|
|
|||
|
|
@ -515,6 +515,7 @@
|
|||
"plural": "Videos"
|
||||
},
|
||||
"itemRequiresVideo": true,
|
||||
"itemTitleKeys": ["title", "director", "year"],
|
||||
"itemViews": [
|
||||
{"id": "info", "title": "Info"},
|
||||
{"id": "player", "title": "Player"},
|
||||
|
|
|
|||
|
|
@ -435,6 +435,7 @@
|
|||
"plural": "Videos"
|
||||
},
|
||||
"itemRequiresVideo": true,
|
||||
"itemTitleKeys": ["title", "director", "year"],
|
||||
"itemViews": [
|
||||
{"id": "info", "title": "Info"},
|
||||
{"id": "player", "title": "Player"},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue