Skip to content

Conversation

@weak-head
Copy link
Owner

@weak-head weak-head commented Jan 4, 2025

Description

This update introduces functionality to parse directory names following specific patterns to extract audiobook metadata such as author name, book title, and year.

Supported Patterns

The directory name patterns supported for parsing include the following:

  • <author_name> - <book_title> (<year>)
  • <author_name> - <book_title> [<year>]
  • <book_title> (<year>)
  • <book_title> [<year>]
  • <author_name> - <book_title>

In addition to the hyphen (-), the underscore (_) and colon (:) are supported.

Examples

Ada Lovelace - The Engine of Change (1833)

  • Author: Ada Lovelace
  • Title: The Engine of Change
  • Year: 1833

The Quantum Universe [2025]

  • Author: (none)
  • Title: The Quantum Universe
  • Year: 2025

Isaac Newton - Opticks

  • Author: Isaac Newton
  • Title: Opticks
  • Year: (none)

@weak-head weak-head added the enhancement Includes general improvements or feature changes and select new feature requests label Jan 4, 2025
@weak-head weak-head added this to the 0.3.4 milestone Jan 4, 2025
@weak-head weak-head self-assigned this Jan 4, 2025
@weak-head weak-head linked an issue Jan 4, 2025 that may be closed by this pull request
@weak-head weak-head merged commit 3aac76e into main Jan 4, 2025
2 checks passed
@weak-head weak-head deleted the feature/dir-metadata branch January 4, 2025 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Includes general improvements or feature changes and select new feature requests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Extract metadata from directory name

2 participants