Skip to content

Commit 0feb7c9

Browse files
author
GreenDiscord
committed
stuff
1 parent d21cfa2 commit 0feb7c9

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

config/config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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,

src/rpc/format.js

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff 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"

0 commit comments

Comments
 (0)