feat: Support disabling scrobbling for non-music content (#1665)

Co-authored-by: JellyBrick <shlee1503@naver.com>
This commit is contained in:
Alex
2024-01-31 03:41:55 -05:00
committed by GitHub
parent f2f15bc3cc
commit e3ad804dc4
8 changed files with 69 additions and 7 deletions

View File

@ -164,12 +164,6 @@ export default (api: YoutubePlayer) => {
data.videoDetails.elapsedSeconds = 0;
data.videoDetails.isPaused = false;
// HACK: This is a workaround for "podcast" type video. GREAT JOB GOOGLE.
if (data.playabilityStatus.transportControlsConfig) {
data.videoDetails.author =
data.microformat.microformatDataRenderer.pageOwnerDetails.name;
}
window.ipcRenderer.send('ytmd:video-src-changed', data);
}
};