diff --git a/docs/CONFIGURATION.md b/docs/CONFIGURATION.md index 77d1381..1520f9c 100644 --- a/docs/CONFIGURATION.md +++ b/docs/CONFIGURATION.md @@ -223,3 +223,7 @@ systemd.user.services.rose = { }; }; ``` + +# Example + +See my config [here](https://github.com/azuline/nixos/blob/master/home/rose/config.toml). diff --git a/docs/TEMPLATES.md b/docs/TEMPLATES.md index 9dfe6ed..82150cd 100644 --- a/docs/TEMPLATES.md +++ b/docs/TEMPLATES.md @@ -168,10 +168,6 @@ sortorder: str -> str # Formats an artist name as Lastname, Fi lastname: str -> str # Formats an artist name as Lastname. ``` -# Examples - -_TODO_ - # Previewing Templates You can preview your templates with the following command. It will evaluate all your templates with @@ -198,3 +194,7 @@ Preview for template 2. New Releases - Release: Sample 2: BTS - 2016. Young Forever (花樣年華) [K-Pop] ... ``` + +# Examples + +See my templates [here](https://github.com/azuline/nixos/blob/master/home/rose/config.toml). diff --git a/rose/releases.py b/rose/releases.py index 2d11e48..fa2c9a6 100644 --- a/rose/releases.py +++ b/rose/releases.py @@ -108,6 +108,7 @@ def delete_release(c: Config, release_id: str) -> None: logger.info(f"Trashed release {release_logtext}") update_cache_evict_nonexistent_releases(c) # Update all collages and playlists so that the release is removed from whichever it was in. + # TODO: Move this into the cache evict nonexistent releases and make it more efficient. update_cache_for_collages(c, None, force=True) update_cache_for_playlists(c, None, force=True) diff --git a/rose/rules.py b/rose/rules.py index 1fdef67..813ef15 100644 --- a/rose/rules.py +++ b/rose/rules.py @@ -113,7 +113,9 @@ def execute_metadata_rule( return matcher_audiotags = filter_track_false_positives_using_tags( - rule.matcher, fast_search_results, rule.ignore + rule.matcher, + fast_search_results, + rule.ignore, ) if not matcher_audiotags: click.secho("No matching tracks found", dim=True, italic=True)