File tree Expand file tree Collapse file tree 2 files changed +14
-3
lines changed
Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ module.exports = {
5858 vlc : {
5959
6060 // If no password is given, a random password is used
61- password : 'passwordgoeshere ' ,
61+ password : 'EEmm23?! ' ,
6262
6363 // This must correspond with the port VLC's web interface uses
6464 port : 8080 ,
Original file line number Diff line number Diff line change @@ -44,8 +44,19 @@ module.exports = async (status) => {
4444 var appleresponse = await fetchArtworkApple ( `${ meta . title } ${ meta . artist } ` ) ;
4545
4646 if ( config . rpc . whereToFetchOnline === 'apple' ) {
47- var artwork = appleresponse . data . results [ 0 ] . artworkUrl100 ;
48- var fetched = "Apple" ;
47+ if ( meta . title === undefined ) {
48+ var artwork = config . rpc . largeIcon
49+ var fetched = "Nowhere"
50+ var enableYoutubeButton = "true"
51+ } else if ( meta . artist === undefined ) {
52+ var artwork = config . rpc . largeIcon
53+ var fetched = "Nowhere"
54+ var enableYoutubeButton = "true"
55+ } else {
56+ var artwork = appleresponse . data . results [ 0 ] . artworkUrl100 ;
57+ var fetched = "Apple" ;
58+ }
59+
4960 } else {
5061 var artwork = await albumArt ( artist , options ) . then ( ( data ) => data ) ;
5162 var fetched = "Spotify"
You can’t perform that action at this time.
0 commit comments