-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
improve: cover (ui) #115
base: main
Are you sure you want to change the base?
improve: cover (ui) #115
Conversation
I wanted to talk about the support for
Maybe we could support it and do a conversion to jpg since |
Since it's not explicit that seems a bit ambiguous. The button still says "Overwrite file" when you're actually |
src/lib/info/TrackInfoPopup.svelte
Outdated
@@ -313,6 +370,7 @@ | |||
previousScope = hotkeys.getScope(); | |||
hotkeys.setScope("track-info"); | |||
document.addEventListener("paste", onPaste); | |||
document.getElementsByClassName("artwork-container").focus(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
getElementsByClassName returns an array, so you need to call focus
on the first element
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm removing the line, I think it's a debug line, a bad one at that...
result = null; | ||
|
||
result = await fetchAlbumArt( | ||
$rightClickedAlbum, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I noticed this will always fetch the artwork for the previously $rightClickedAlbum
even when on another track. It's probably not set to null properly
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can't reproduce the issue. On which view are you?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To reproduce: 1) open info for any album, then 2) open info for single track in library without cover and click Fetch art. It will fetch the artwork for the previously viewed album instead of the current track.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But let's fix that separately from this PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's fixed. I'm passing all the arguments when a call to the popup occurs.
I haven't changed the behavior. It replaces the artwork in the metadata.
Fixed. Thx |
Ah sorry I didn't get it at first.
In the unlikely case that you want some tracks in a folder with encoded art, while others use cover.jpg/png - removing the file will stop showing the artwork for those tracks. I'd avoid deleting it unless you're actually editing the entire album. The encoded artwork will anyway take priority. |
Now, it deletes the artwork file only when an album (with all tracks) is being edited. |
This PR does:
Search for artwork
for the album and not the songSearch for artwork
buttonIn medadata
,cover.jpg
)cover.jpg
filecover.jpg
file.jpg
or.png