filter landscape poster shapes from continue watching preview

This commit is contained in:
nklhrstv 2020-03-28 22:29:34 +02:00
parent c2c1f0dc3f
commit 11d9cf6073

View file

@ -8,7 +8,7 @@ const mapContinueWatchingPreviewState = (continue_watching_preview) => {
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,
videoId: lib_item.state.video_id,
progress: lib_item.state.timeOffset > 0 && lib_item.state.duration > 0 ?
lib_item.state.timeOffset / lib_item.state.duration