Lyrics in track formatter
This commit is contained in:
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -98,7 +98,7 @@
|
||||
|
||||
// Release details
|
||||
// These are automatically injected to built HTML
|
||||
var build = "1536208591";
|
||||
var build = "1536221360";
|
||||
var version = "3.25.1";
|
||||
|
||||
// Construct the script tag
|
||||
|
||||
@ -167,7 +167,7 @@ class PlaybackControls extends React.Component{
|
||||
<section className="progress">
|
||||
<ProgressSlider />
|
||||
<span className="current">{ this.props.time_position ? <Dater type="length" data={this.props.time_position} /> : '-' }</span>
|
||||
<span className="total">{ this.props.current_track ? <Dater type="length" data={this.props.current_track.length} /> : '-' }</span>
|
||||
<span className="total">{ this.props.current_track ? <Dater type="length" data={this.props.current_track.duration} /> : '-' }</span>
|
||||
</section>
|
||||
|
||||
<section className="volume">
|
||||
|
||||
@ -527,6 +527,9 @@ export let formatTrack = function(data){
|
||||
'track_number',
|
||||
'duration',
|
||||
'followers',
|
||||
'lyrics',
|
||||
'lyrics_path',
|
||||
'lyrics_results',
|
||||
'artists', // Array of simple records
|
||||
'album' // Array of simple records
|
||||
];
|
||||
|
||||
@ -166,10 +166,10 @@ export function getTrackLyrics(uri, path){
|
||||
lyrics_html = lyrics_html.replace(/(\])/g, ']</span>');
|
||||
|
||||
dispatch(coreActions.trackLoaded({
|
||||
uri: uri,
|
||||
lyrics: lyrics_html,
|
||||
lyrics_path: path
|
||||
}));
|
||||
uri: uri,
|
||||
lyrics: lyrics_html,
|
||||
lyrics_path: path
|
||||
}));
|
||||
}
|
||||
} else {
|
||||
dispatch(coreActions.handleException(
|
||||
|
||||
Reference in New Issue
Block a user