mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-14 11:51:47 +00:00
fix malformed json in tuna-obs
This commit is contained in:
@ -5,7 +5,7 @@ const registerCallback = require("../../providers/song-info");
|
|||||||
|
|
||||||
const secToMilisec = t => Math.round(Number(t) * 1e3);
|
const secToMilisec = t => Math.round(Number(t) * 1e3);
|
||||||
const data = {
|
const data = {
|
||||||
cover_url: '',
|
cover: '',
|
||||||
title: '',
|
title: '',
|
||||||
artists: [],
|
artists: [],
|
||||||
status: '',
|
status: '',
|
||||||
@ -41,7 +41,7 @@ module.exports = async (win) => {
|
|||||||
|
|
||||||
data.duration = secToMilisec(songInfo.songDuration)
|
data.duration = secToMilisec(songInfo.songDuration)
|
||||||
data.progress = secToMilisec(songInfo.elapsedSeconds)
|
data.progress = secToMilisec(songInfo.elapsedSeconds)
|
||||||
data.cover_url = songInfo.imageSrc;
|
data.cover = songInfo.imageSrc;
|
||||||
data.album_url = songInfo.imageSrc;
|
data.album_url = songInfo.imageSrc;
|
||||||
data.title = songInfo.title;
|
data.title = songInfo.title;
|
||||||
data.artists = [songInfo.artist];
|
data.artists = [songInfo.artist];
|
||||||
|
|||||||
Reference in New Issue
Block a user