More general detection for uri type

This commit is contained in:
James Barnsley
2017-02-26 18:33:20 +13:00
parent 25d572e391
commit 6156b06a0a
6 changed files with 109 additions and 49 deletions

View File

@ -33,7 +33,7 @@ class Playlist extends React.Component{
if( nextProps.params.uri != this.props.params.uri ){
this.loadPlaylist( nextProps )
}else if( !this.props.mopidy_connected && nextProps.mopidy_connected ){
if( helpers.uriSource( this.props.params.uri ) == 'm3u' ){
if( helpers.uriSource( this.props.params.uri ) != 'spotify' ){
this.loadPlaylist( nextProps )
}
}