This commit is contained in:
James Barnsley
2020-12-04 22:57:23 +13:00
parent a187addd05
commit 7200ae07dd
4 changed files with 17 additions and 10 deletions

View File

@ -107150,20 +107150,27 @@ var MediaSession = /*#__PURE__*/function (_React$Component) {
play_state = _ref.play_state;
if (current_track) {
var title = current_track.title,
_current_track$album = current_track.album,
album = _current_track$album === void 0 ? {} : _current_track$album,
_current_track$artist = current_track.artists,
artists = _current_track$artist === void 0 ? [] : _current_track$artist,
_current_track$images = current_track.images,
images = _current_track$images === void 0 ? {} : _current_track$images;
navigator.mediaSession.metadata = new window.MediaMetadata({
title: stream_title || current_track.title,
artist: current_track.artists[0].name,
album: current_track.album.name,
title: stream_title || title,
artist: artists.length ? artists[0].name : null,
album: album.name,
artwork: [{
src: current_track.images ? current_track.images.small : '',
src: images ? images.small : '',
sizes: '96x96',
type: 'image/png'
}, {
src: current_track.images ? current_track.images.medium : '',
src: images ? images.medium : '',
sizes: '256x256',
type: 'image/png'
}, {
src: current_track.images ? current_track.images.huge : '',
src: images ? images.huge : '',
sizes: '512x512',
type: 'image/png'
}]
@ -107187,7 +107194,7 @@ var mapStateToProps = function mapStateToProps(state) {
current_track = _state$core.current_track,
stream_title = _state$core.stream_title;
return {
current_track: current_track ? items[current_track.uri] || current_track : null,
current_track: current_track ? items[current_track.uri] || current_track : {},
stream_title: stream_title,
play_state: state.mopidy.play_state,
time_position: state.mopidy.time_position,

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -106,7 +106,7 @@
// Release details
// These are automatically injected to built HTML
var build = "1607070160";
var build = "1607075780";
var version = "3.55.1";
// Construct the script tag