diff --git a/README.md b/README.md index 872e51b..18fb2f5 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,7 @@ All file managers which are compatible with `/usr/share/thumbnailers` thumbnaile - [Nautilus (GNOME)](https://gitlab.gnome.org/GNOME/nautilus) - [Nemo (Cinnamon)](https://github.com/linuxmint/nemo) - [PCManFM (LXDE)](https://github.com/lxde/pcmanfm) +- [PCManFM-Qt (LXQt)](https://github.com/lxqt/pcmanfm-qt) - [Thunar (Xfce)](https://gitlab.xfce.org/xfce/thunar) So far the following file types are supported: @@ -19,3 +20,4 @@ So far the following file types are supported: - **ePub** (compressed as ZIP, with a cover specified as a `cover-image` property, or a `cover` meta tag). - **MP3** (with album art specified in their ID3 images tag) - **RAW** (compatible with dcraw) +- **aiff** (for audio files with cover art embedded in their tags) diff --git a/files/usr/bin/xapp-aiff-thumbnailer b/files/usr/bin/xapp-aiff-thumbnailer index 5a21402..508452c 100644 --- a/files/usr/bin/xapp-aiff-thumbnailer +++ b/files/usr/bin/xapp-aiff-thumbnailer @@ -11,12 +11,10 @@ thumbnailer = Thumbnailer() def extract_cover_aiff_file(filepath: Path) -> bytes | None: try: - if not filepath.is_file() or not filepath.suffix.lower() == ".aiff": - return None aiff_file: AIFF = AIFF(str(filepath)) if aiff_file.tags is None: return None - return cast(bytes, aiff_file.tags.getall("APIC")[0].data) + return cast(bytes, aiff_file.tags.getall(key="APIC")[0].data) except: return None diff --git a/files/usr/share/thumbnailers/xapp-aiff-thumbnailer.thumbnailer b/files/usr/share/thumbnailers/xapp-aiff-thumbnailer.thumbnailer index 9d7f596..eb63694 100644 --- a/files/usr/share/thumbnailers/xapp-aiff-thumbnailer.thumbnailer +++ b/files/usr/share/thumbnailers/xapp-aiff-thumbnailer.thumbnailer @@ -1,4 +1,4 @@ [Thumbnailer Entry] TryExec=xapp-aiff-thumbnailer Exec=xapp-aiff-thumbnailer -i %i -o %o -s %s -MimeType=audio/x-aiff \ No newline at end of file +MimeType=audio/x-aiff;audio/aiff \ No newline at end of file