Skip to content

Commit

Permalink
add my config as example to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
azuline committed May 3, 2024
1 parent 1c85071 commit 6a648a6
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
4 changes: 4 additions & 0 deletions docs/CONFIGURATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -223,3 +223,7 @@ systemd.user.services.rose = {
};
};
```

# Example

See my config [here](https://github.com/azuline/nixos/blob/master/home/rose/config.toml).
8 changes: 4 additions & 4 deletions docs/TEMPLATES.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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).
1 change: 1 addition & 0 deletions rose/releases.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
4 changes: 3 additions & 1 deletion rose/rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6a648a6

Please sign in to comment.