You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please describe the problem you're trying to solve
Without the proposed feature, the current state of audio file navigation in the application is not as intuitive or visually engaging as it could be. Users are only able to view metadata, which may not provide enough visual cues to quickly and easily identify specific audio files. This can lead to a less efficient and enjoyable user experience, especially for those with large collections of audio files with cover art.
Would you be willing to contribute this feature?
Yes, I'll give it a shot
Describe the solution you'd like
The proposed solution involves checking if an audio file has a cover using the lofty library in Rust. If a cover is present, it will be used for the preview. If not, the program will fall back to previewing the audio's metadata. Here is a sample code snippet demonstrating this:
use lofty::file::TaggedFileExt;use lofty::probe::Probe;fnaudio_has_cover<P:AsRef<Path>>(path:P) -> bool{returnmatchProbe::open(path){Ok(p) => {let tagged_file = match p.read().ok(){Some(file) => file,None => returnfalse,};let tag = match tagged_file.primary_tag(){Some(tag) => tag,None => returnfalse,};
tag.picture_count() > 0}Err(_) => false,};}
If the audio file has a cover, the following ffmpeg command can be used to generate the thumbnail:
Please describe the problem you're trying to solve
Without the proposed feature, the current state of audio file navigation in the application is not as intuitive or visually engaging as it could be. Users are only able to view metadata, which may not provide enough visual cues to quickly and easily identify specific audio files. This can lead to a less efficient and enjoyable user experience, especially for those with large collections of audio files with cover art.
Would you be willing to contribute this feature?
Describe the solution you'd like
The proposed solution involves checking if an audio file has a cover using the
lofty
library in Rust. If a cover is present, it will be used for the preview. If not, the program will fall back to previewing the audio's metadata. Here is a sample code snippet demonstrating this:If the audio file has a cover, the following ffmpeg command can be used to generate the thumbnail:
Additional context
No response
The text was updated successfully, but these errors were encountered: