Skip to content

Support m4b, m4v and aac files, and folder drag and drop - #1595

Open
openaudible wants to merge 1 commit into
chidiwilliams:mainfrom
openaudible:m4b-media-formats
Open

Support m4b, m4v and aac files, and folder drag and drop#1595
openaudible wants to merge 1 commit into
chidiwilliams:mainfrom
openaudible:m4b-media-formats

Conversation

@openaudible

Copy link
Copy Markdown

Problem

.m4b (audiobooks), .m4v and .aac were missing from the import filters, so those files could not be selected in the file dialog and were skipped by the watched folder.

The dialog filter string and the watched-folder extension set were also maintained as two separate lists that had drifted apart.

Changes

  • Add .m4b, .m4v and .aac to the supported media extensions.
  • Derive both the file dialog filters and the watched-folder extension check from a single SUPPORTED_EXTENSIONS set in buzz/transcriber/transcriber.py, so the two can no longer drift.
  • Dropping a folder on the main window now queues the media files inside it, reusing the same walk as Import Folder (find_media_files_in_folder).
  • Handle dragMoveEvent and set an explicit CopyAction, so drops are accepted on platforms that require the move event to be answered.

Testing

Verified by dragging single files, multiple files and folders onto the main window, and by dropping .m4b files into a watched folder.

🤖 Generated with Claude Code

The audiobook (.m4b), video (.m4v) and audio (.aac) extensions were
missing from the import filters, so those files could not be picked in
the file dialog and were ignored by the watched folder.

The file dialog patterns and the watched folder extension set were also
two separate lists that had drifted apart. Both now derive from a single
SUPPORTED_EXTENSIONS set in the transcriber module.

Dropping a folder on the main window now queues the media files it
contains, reusing the same walk as Import Folder, and dragMoveEvent is
handled so the drop is accepted on platforms that require it.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant