Skip to content

Replaces PR #300#305

Open
liberatorcnx wants to merge 4 commits intojustin025:search-filter-fixfrom
liberatorcnx:clean-spotify
Open

Replaces PR #300#305
liberatorcnx wants to merge 4 commits intojustin025:search-filter-fixfrom
liberatorcnx:clean-spotify

Conversation

@liberatorcnx
Copy link

Replaces PR #300
Add 'prefix' variable to set the article used by filters.
Broaden the Artist check in Filter Albums by stripping 'prefix' from the search term when comparing artist names.
Removed slice and replaced with .removeprefix(prefix) for consistency
Make all filters consistent with consistent naming.
Simplified to only compare normalized versions - removed the redundant check with original term
Simplified thumbnail check - if item['images'] instead of if len(item['images']) > 0

Added Search Prefix entry to search drop down.
Added tooltip for prefix new text box.

Moved ffmpeg_path initialization to fix error when running from src
Fixed ffmpeg wasn't being found, and the empty string '' as the executable was causing WinError 87 when running from src in Windows.
except should be except (KeyError, TypeError): to only catch the expected errors.
The original check is redundant — f"{'/'.join(item['genres'])}" is just a verbose way of writing '/'.join(item['genres']). The f-string wrapper does nothing useful.
"GENERES" is a typo — should be "GENRES" (present in the original code too).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

1 participant