Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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)
4 changes: 1 addition & 3 deletions files/usr/bin/xapp-aiff-thumbnailer
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[Thumbnailer Entry]
TryExec=xapp-aiff-thumbnailer
Exec=xapp-aiff-thumbnailer -i %i -o %o -s %s
MimeType=audio/x-aiff
MimeType=audio/x-aiff;audio/aiff