Skip to content

Releases: MoeMusic/Moe

Release v2.1.4

07 Nov 19:28
Compare
Choose a tag to compare

Build Changes

Full diff

Release v2.1.3

07 Apr 01:26
Compare
Choose a tag to compare

Bug Fixes

  • Metatracks always failing equality (89e25d2)

Full diff

Release v2.1.2

06 Apr 19:18
Compare
Choose a tag to compare

Build Changes

  • Add importlib_metadata dependency for entry_points backport (4cc6b97)
  • Update dependencies (50e148c)
  • Support python 3.12 (408594a)

Full diff

Release v2.1.1

22 May 16:40
Compare
Choose a tag to compare

Build Changes

  • Upgrade sqlalchemy to v2.0.0 (4e568e5)
  • Upgrade lint dependencies (8a9047d)
  • Upgrade docs dependencies (8d95017)
  • Upgrade test dependencies (0b5b384)
  • Upgrade pytest to v7.0.0 (50eb061)
  • Upgrade rich to v13.0.0 (3ee7ef0)
  • Upgrade pluggy to v1.0.0 (88c0384)

Full diff

Release v2.1.0

21 Dec 04:24
Compare
Choose a tag to compare

New Features

  • Add [-d]{.title-ref} option to [rm]{.title-ref} command to delete files (8246eb8)
  • Query: Added support for numeric range queries (fac29a1)

Full diff

Release v2.0.0

20 Dec 05:49
Compare
Choose a tag to compare

I'm not particularly happy about how little time as passed between v1.0.0 and this release and I don't expect this timeframe to be the norm. In a perfect world, I'm releasing at most 1-2 major versions per year of Moe. I justified this timeframe as I still don't think there's many people using Moe and the list of breaking changes I wanted to implement had settled at a good number.

With that said, I recommend reading through the following notes before upgrading.

Breaking Changes

  • Use mediafile dependency over moe_mediafile fork (bcda77d)

    Now that our changes have been merged into mediafile, there's no longer a need to use our fork.

    You may experience issues if you have both moe_mediafile and mediafile installed together. All users upgrading should explicitly uninstall moe_mediafile by running ``pip uninstall moe_mediafile``.

  • DB sessions are now explicitly passed as arguments (228a017)

    This helps clarify exactly which functions require the database to be initialized. Also, it helps avoid any potential future issues with relying entirely on a global/thread-local session factory.

    The following functions/hooks are affected by this change:

    • add.add_item - new session parameter
    • cli.Hooks.add_command - the sub-command functions are now passed a session parameter
    • config.Hooks.register_sa_event_listeners - session parameter removed
    • duplicate.resolve_dup_items - new session parameter
    • duplicate.Hooks.resolve_dup_items - new session parameter
    • duplicate.resolve_duplicates - new session parameter
    • duplicate.get_duplicates - new session parameter
    • library.lib_item.Hooks.edit_changed_items - new session parameter
    • library.lib_item.Hooks.edit_new_items - new session parameter
    • library.lib_item.Hooks.process_removed_items - new session parameter
    • library.lib_item.Hooks.process_changed_items - new session parameter
    • library.lib_item.Hooks.process_new_items - new session parameter
    • query.query - new session parameter
    • remove.remove_item - new session parameter
    • util.cli.query.cli_query - new session parameter

    config.MoeSession has also been replaced with config.moe_sessionmaker. Sessions should no longer be created by importing MoeSession, and instead should use a session parameter that is created at the top-level of an application. Refer to the config.py docstring as well as cli.py for more information on how to handle sessions now.

  • Changed CandidateAlbum attributes (9cc69db)

    • source_str is now split into two fields: plugin_source and source_id. This is so in the future we can check against the plugin_source and apply different handling criteria per plugin e.g. import weight values.
    • sub_header_info renamed to disambigs. The "sub-header" is specific to the cli, so it was renamed to be more generalized.
  • Replaced lib_path arg for fmt_item_path with optional parent arg (cc267d5)

    This is more flexible as it allows specifying the direct parent for albums, extras and tracks instead of just albums.

  • Removed sync plugin (ae0889d)

    The original idea of the sync plugin to sync multiple metadata sources with one command has some implementation barriers that were not fully fleshed out. Instead, each plugin should just implement their own sync commands.

  • Removed musicbrainz plugin (d171be0)

    Musicbrainz is now a third-party plugin to be consistent with Moe's policy that any external source plugins should not be in the core repository.

    If you'd like to continue to use musicbrainz as an import source, you can install the new plugin with pip install moe_musicbrainz. Also, ensure to enable it in your configuration. You can find more information on the [Thid-Pary Plugins]{.title-ref} documentation page.

  • Removed plugin sub-directory and package (d3d756d)

    Now, rather than having to import an api function as moe.plugins.add.add_item, it's just moe.add.add_item. I felt the extra plugins import level was unnecessarily verbose.

  • Custom fields now require dictionary access (1df625c)

    Custom fields must now be accessed via item.custom["my_custom_field"] i.e. normal dictionary access.

    I changed this from normal attribute access as overriding __getattr__ and __setattr__ (required for transparent attribute access) had some finicky conflicts with sqlalchemy. Also, it prevented type hinting the custom attribute dictionary as well as integration with data serializers such as pydantic.

    Overall, the more I used them, the more issues I found, and the more it felt like a hack. I believe the new explicit dictionary access for custom attributes will prove to be more bulletproof. It also explicitly delineates normal and custom attributes which can be useful in some cases.

  • Renamed album_obj reference to album in tracks and extras (51ff9a9)

    track.album now refers to the actual album object (renamed from track.album_obj) and track.albumartist has been removed. Similarly, extra.album_obj has been renamed to extra.album.

    The original idea was that track.album was a string that referred to an album's title, while track.album_obj was the actual album object itself. track.album and track.albumartist were "mapped" attributes of an album directly exposed in the track API due to convention. However, these mapped attributes are not first-class attributes as far as sqlalchemy is concerned, and thus have additional issues and considerations compared to normal attributes. Ultimately, I decided these mapped attributes are not worth the headache.

Performance Enhancements

  • Slightly improved start-up time by importing default plugins (0ffd10a)

Build Changes

  • Removed pyyaml dependency (2519817)

Full diff

Release v1.5.1

06 Nov 22:48
Compare
Choose a tag to compare

Bug Fixes

  • Ensure tracks created from files contain required tags (bf215ed)

Full diff

Release v1.5.0

05 Nov 21:02
Compare
Choose a tag to compare

New Features

  • Add new lib_path argument to fmt_item_path (5ed5dc4)
  • Add sample rate and bit depth as track properties (f9c3384)

Bug Fixes

  • [none] catalog number from musicbrainz now properly set (25d73e1)
  • Albumartist overwriting track artist (6bbf445)

Build Changes

Full diff

Release v1.4.0

03 Nov 06:43
Compare
Choose a tag to compare

New Features

  • Show catalog number after label during import (84f8067)

Bug Fixes

  • Musicbrainz error if release does not have a date or format (d0fe109)

Full diff

Release v1.3.2

01 Nov 20:52
Compare
Choose a tag to compare

Bug Fixes

  • Track audio_format is now a property and not a field (c2aeda7)

Full diff