forked from 0x2620/pandora
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
|
|
@ -1281,18 +1281,6 @@ pandora.getItemIdAndPosition = function() {
|
|||
return ret;
|
||||
}
|
||||
|
||||
pandora.getItemTitle = function(itemData) {
|
||||
return (itemData.title || Ox._('Untitled')) + (
|
||||
Ox.len(itemData.director) || itemData.year
|
||||
? ' (' + (
|
||||
Ox.len(itemData.director)
|
||||
? itemData.director
|
||||
: [Ox._('Unknown Director')]
|
||||
).join(', ') + ')'
|
||||
: ''
|
||||
) + (itemData.year ? ' ' + itemData.year : '')
|
||||
};
|
||||
|
||||
pandora.getLargeClipTimelineURL = function(item, inPoint, outPoint, type, callback) {
|
||||
var fps = 25,
|
||||
width = Math.ceil((outPoint - inPoint) * fps),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue