Skip to content

Commit f213612

Browse files
author
GreenDiscord
committed
V1.1.1
1 parent 0db2c4e commit f213612

File tree

4 files changed

+20
-15
lines changed

4 files changed

+20
-15
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ This is a fork of [PigPogs](https://github.com/Pigpog/vlc-discord-rpc) VLC RPC,
88

99
Join us on [Discord](https://discord.gg/CHegxjdFCD).
1010

11-
### Still in development and bugs will ecour
12-
1311
# Setup
1412

1513
### Requirements
@@ -37,4 +35,6 @@ For advanced features, see [ADVANCED.md](./info/ADVANCED.md).
3735
- When running multiple concurrent instances, only the first-opened instance of VLC will have a rich presence
3836
- This program does NOT allow you to stream media to others
3937

38+
## Known Bugs
4039

40+
- When listenting to a song with foreign characters and using apple music for fetching info, the RPC will crash

package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "vlc-discord-rpc",
3-
"version": "2.2.12",
2+
"name": "vlc-rpc",
3+
"version": "1.1.1",
44
"description": "Discord rich presence for VLC media player.",
55
"main": "index.js",
66
"dependencies": {
@@ -19,8 +19,8 @@
1919
"type": "git",
2020
"url": "git+https://github.com/GreenDiscord/vlc-rpc.git"
2121
},
22-
"keywords": [],
23-
"author": "Pigpog",
22+
"keywords": [],
23+
"author": "GreenDiscord",
2424
"contributors": [
2525
{
2626
"name": "dylhack",

src/rpc/format.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,21 +43,26 @@ module.exports = async (status) => {
4343
album: String(encodeURIComponent(meta.album))
4444
}
4545

46+
var appleresponse = await fetchArtworkApple(`${meta.title} ${meta.artist}`);
4647

4748
if (config.rpc.whereToFetchOnline === 'apple') {
48-
var appleresponse = await fetchArtworkApple(`${meta.title} ${meta.artist}`);
4949
var artwork = appleresponse.data.results[0].artworkUrl100;
5050
var fetched = "Apple";
51+
} else {
52+
var artwork = await albumArt(`${encodeURIComponent(properties.arist)}`, options).then((data) => data);
53+
var fetched = "Spotify"
5154
}
5255

56+
57+
5358
if (config.debug === 'true') {
5459
console.log(artwork),
5560
console.log(status.state),
5661
console.log(fetched)
5762
}
5863
if (artwork === undefined){
64+
console.error(`Couldn't find artwork using ${config.rpc.whereToFetchOnline}! Try switching providers`);
5965
var fetched = "No Where";
60-
console.error("Couldn't find artwork! Try switching providers");
6166
}
6267

6368
if (config.rpc.largeImageText === "artist"){

0 commit comments

Comments
 (0)