Skip to content

Commit

Permalink
Update yandex-music connector
Browse files Browse the repository at this point in the history
Remove version info from a track title.
  • Loading branch information
alexesprit committed May 23, 2020
1 parent 791728f commit 378a7d1
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/connectors/yandex-music-dom-inject.js
Expand Up @@ -21,11 +21,7 @@ function onEvent() {
function getTrackInfo() {
const trackInfo = YandexAPI.getCurrentTrack();

let track = trackInfo.title;
const version = trackInfo.version;
if (version) {
track = `${track} (${version})`;
}
const track = trackInfo.title;
let album = null;
if (trackInfo.album) {
album = trackInfo.album.title;
Expand Down

1 comment on commit 378a7d1

@alexesprit
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yandex.Music inlcudes some garbage in the "version" property which cannot be easily filtered, so it was removed completely.

Examples:

Please sign in to comment.