Current track merged from tltrack; Additional backend artwork
This commit is contained in:
BIN
src/assets/backgrounds/browse-dirble.jpg
Executable file
BIN
src/assets/backgrounds/browse-dirble.jpg
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 11 KiB |
BIN
src/assets/backgrounds/browse-itunes.jpg
Executable file
BIN
src/assets/backgrounds/browse-itunes.jpg
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 26 KiB |
BIN
src/assets/backgrounds/browse-somafm.jpg
Executable file
BIN
src/assets/backgrounds/browse-somafm.jpg
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 14 KiB |
BIN
src/assets/backgrounds/browse-soundcloud.jpg
Executable file
BIN
src/assets/backgrounds/browse-soundcloud.jpg
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 16 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 50 KiB After Width: | Height: | Size: 13 KiB |
@ -45,19 +45,23 @@ export default class EditRadioModal extends React.Component{
|
||||
|
||||
addSeed(){
|
||||
if (this.state.uri == ''){
|
||||
this.setState({error_message: 'Cannot be empty'})
|
||||
return null
|
||||
this.setState({error_message: 'Cannot be empty'});
|
||||
return null;
|
||||
}
|
||||
|
||||
var seeds = Object.assign([],this.state.seeds)
|
||||
var uris = this.state.uri.split(',')
|
||||
var seeds = Object.assign([],this.state.seeds);
|
||||
var uris = this.state.uri.split(',');
|
||||
|
||||
for (var i = 0; i < uris.length; i++){
|
||||
if (helpers.uriSource(uris[i]) !== 'spotify'){
|
||||
this.setState({error_message: 'Non-Spotify URIs not supported'});
|
||||
return;
|
||||
}
|
||||
if (seeds.indexOf(uris[i]) > -1){
|
||||
this.setState({error_message: 'URI already added'})
|
||||
this.setState({error_message: 'URI already added'});
|
||||
} else {
|
||||
seeds.push(uris[i])
|
||||
this.setState({error_message: null})
|
||||
seeds.push(uris[i]);
|
||||
this.setState({error_message: null});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -115,7 +115,7 @@ class Queue extends React.Component{
|
||||
track,
|
||||
this.props.queue_metadata["tlid_"+track.tlid],
|
||||
{
|
||||
playing: (track.tlid == this.props.current_track.tlid)
|
||||
playing: (this.props.current_track && this.props.current_track.tlid == track.tlid)
|
||||
}
|
||||
);
|
||||
tracks[i] = track;
|
||||
|
||||
@ -145,6 +145,10 @@ class LibraryBrowse extends React.Component{
|
||||
var directory = this.props.directory[i]
|
||||
|
||||
switch (directory.name){
|
||||
case 'Dirble':
|
||||
directory.icons = ['assets/backgrounds/browse-dirble.jpg']
|
||||
break
|
||||
|
||||
case 'Files':
|
||||
directory.icons = ['assets/backgrounds/browse-folders.jpg']
|
||||
break
|
||||
@ -167,6 +171,18 @@ class LibraryBrowse extends React.Component{
|
||||
directory.icons = ['assets/backgrounds/browse-tunein.jpg']
|
||||
break
|
||||
|
||||
case 'SoundCloud':
|
||||
directory.icons = ['assets/backgrounds/browse-soundcloud.jpg']
|
||||
break
|
||||
|
||||
case 'iTunes Store: Podcasts':
|
||||
directory.icons = ['assets/backgrounds/browse-itunes.jpg']
|
||||
break
|
||||
|
||||
case 'Soma FM':
|
||||
directory.icons = ['assets/backgrounds/browse-somafm.jpg']
|
||||
break
|
||||
|
||||
default:
|
||||
directory.icons = ['assets/backgrounds/browse-default.jpg']
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user