replace landscape poster shapes with square in Library

This commit is contained in:
nklhrstv 2020-03-28 22:58:41 +02:00
parent 979926ab05
commit c630cfe854

View file

@ -15,7 +15,7 @@ const mapLibraryState = (library) => {
type: lib_item.type,
name: lib_item.name,
poster: lib_item.poster,
posterShape: lib_item.posterShape,
posterShape: lib_item.posterShape === 'landscape' ? 'square' : lib_item.posterShape,
progress: lib_item.state.timeOffset > 0 && lib_item.state.duration > 0 ?
lib_item.state.timeOffset / lib_item.state.duration
: