Commit Graph
4839 Commits
Author SHA1 Message Date
Šarūnas Nejus e26d81a4db musicbrainz: default to media=Default Media 2026-08-27 03:20:48 +01:00
Šarūnas Nejus 2e1842b0b2 musicbrainz: default to Official albumstatus 2026-08-27 03:20:48 +01:00
Šarūnas Nejus 14ae6da094 spotify/deezer/beatport: more types 2026-08-27 03:20:48 +01:00
Šarūnas Nejus 25c6958467 deezer: search by query type 2026-08-27 03:20:48 +01:00
Šarūnas Nejus bae04fdfbd deezer: disk_number is optional 2026-08-27 03:20:48 +01:00
Šarūnas Nejus bd48d6057d search plugins: add some typing 2026-08-27 03:20:47 +01:00
Šarūnas Nejus df99561975 musicbrainz: add albumstatus, date, country fields to track 2026-08-27 03:20:47 +01:00
Šarūnas Nejus 62ccc9bfc8 autobpm: improve log message consistency 2026-08-27 03:20:47 +01:00
Šarūnas Nejus 2337e41a01 lyrics: Add types to search_pairs 2026-08-27 03:20:47 +01:00
Šarūnas Nejus f24dc609e4 lyrics: tekstowo: do not use beets headers which are banned 2026-08-27 03:20:47 +01:00
Šarūnas Nejus f1734a19e6 musicbrainz: get genre using beetcamp genre algorithm 2026-08-27 03:17:51 +01:00
Šarūnas Nejus 7db8b1bddf ImportSession: make a dataclass and configure logging independently 2026-08-27 03:17:51 +01:00
Šarūnas Nejus 167e830215 prompt: rename input options 'require' param to 'highlight_default' 2026-08-27 03:17:49 +01:00
Šarūnas Nejus 98be280eac embedart: add force command line option 2026-08-27 03:03:40 +01:00
Šarūnas Nejus eb3cd5d4a6 mb: do not set fields with None values 2026-08-27 03:02:15 +01:00
Šarūnas Nejus ebf638dce1 match: Improve Proposal and add AlbumImportTask 2026-08-27 03:00:57 +01:00
Šarūnas Nejus c94582fe85 spotify: add album types 2026-08-27 02:58:40 +01:00
Šarūnas Nejus f58eff9621 edit: print long text fields in block style 2026-08-27 02:58:40 +01:00
Šarūnas Nejus ff4c37290f mb: try using artist country when release country is XW 2026-08-27 02:58:40 +01:00
Šarūnas Nejus 071cb36035 logging: use __name__ instead of beets to init logging 2026-08-27 02:58:10 +01:00
Šarūnas Nejus 83a7ccbd57 mpdstats: print shorter messages 2026-08-27 02:58:10 +01:00
Šarūnas Nejus cd5feb8a0c Deezer: various improvements 2026-08-27 02:58:10 +01:00
Šarūnas Nejus 696cafe1ce mpdstats: Skip non-lib directory 2026-08-27 02:56:48 +01:00
Šarūnas Nejus 23bce383eb Remove slow lookups from beetsplug/aura
It seems like previously filtering by flexible attributes did not work
- I'd receive '{"data": []}' trying to GET `/aura/tracks?filter[play_count]=11`

Now this works, not only for tracks, but for `/aura/artists` and
`/aura/albums` too.

Additionally, this improves `/aura/tracks` response time significantly.
I tried loading the default of 500 tracks from my library:

On `master`, it took ~20s
After this commit, it takes under 1s.
2026-08-27 02:56:48 +01:00
Šarūnas Nejus 98051a234d Add ability to filter flexible attributes through the Query
For a flexible attribute query, replace the `col_name` property with
a function call that extracts that attribute from the `field_attrs`
field introduced in the earlier commit.

Additionally, for boolean, numeric and date queries CAST the value to
NUMERIC SQLite affinity to ensure that our queries like 'flex:1..5' and
'flex:true' continue working fine.

This removes the concept of 'slow query', since every query for any
field now has an SQL clause.
2026-08-27 02:56:48 +01:00
Šarūnas Nejus 01375c7392 typing: fix core annotations 2026-08-22 17:49:49 +01:00
Šarūnas Nejus d9e2b65758 Merge branch 'master' into fix/lrclib-null-lyrics 2026-08-22 17:41:55 +01:00
Šarūnas Nejus 914441da16 typing: fix command handlers types 2026-08-21 20:56:38 +01:00
Šarūnas Nejus a3bb963ea0 ipfs: fix play command 2026-08-20 00:51:44 +01:00
Šarūnas Nejus 6241139600 typing: define explicit optparse.Values for each command 2026-08-19 23:57:05 +01:00
Šarūnas Nejus 14eabc6060 typing: add types to command handlers 2026-08-19 23:57:01 +01:00
Šarūnas Nejus 27900f58fb Prefer imports from modules that provide import aliases 2026-08-18 23:20:39 +01:00
Šarūnas Nejus f37306b0cc typing: remove redundant types 2026-08-18 23:20:39 +01:00
Šarūnas Nejus 4aa5aa62ac typing: fix types in beetsplug._utils.art 2026-08-18 23:20:38 +01:00
Šarūnas Nejus 6acef1d586 typing: add types to beetsplug._utils.art 2026-08-18 23:20:38 +01:00
Šarūnas Nejus 26713de0d6 typing: add types to embedart 2026-08-18 23:20:38 +01:00
Šarūnas Nejus 9adcb601f8 typing: make dbcore.db.Results a Sequence
Now we are able to type Results simply as a Sequence. This way, we can
also now use a more generic representation `Sequence[LibModel]` to refer
to *any* of the two models.
2026-08-18 23:20:38 +01:00
Šarūnas Nejus 12553051af typing: fix typing in plugins 2026-08-18 10:46:33 +01:00
Šarūnas Nejus 1969622874 typing: fix types in event handlers 2026-08-18 10:46:33 +01:00
Šarūnas Nejus 5039c8f6cf typing: add types to event handlers 2026-08-18 10:46:33 +01:00
J0J0 Todos 87633a892b lastgenre: Fix CanonTree type alias docs comment 2026-08-18 07:01:09 +02:00
J0J0 Todos c1a98e225d lastgenre: Type alias GenresWithLabel
Note that the artist stage is slightly different and GenresWithLabel does
not fit there.
2026-08-18 07:01:09 +02:00
J0J0 Todos 1059c2663d lastgenre: Rename genres to existing_genres 2026-08-18 07:01:09 +02:00
J0J0 Todos 5d651170af lastgenre: Extract original fallback stage to method 2026-08-18 07:01:09 +02:00
J0J0 Todos f202d54ea4 lastgenre: Extract complex artist stage to methods 2026-08-18 07:01:09 +02:00
J0J0 Todos d03537c0d5 lastgenre: Name vars resolved instead of result 2026-08-18 07:01:09 +02:00
J0J0 Todos e8d3143a1b lastgenre: Improve _try_resolve_stage docstring 2026-08-18 07:01:09 +02:00
J0J0 Todos 4617b08aa7 lastgenre: Extract existing genre stage
- fallback as cached property
- Leave force check in main get_genre()
- Leave fall back handling in get_genre()
2026-08-18 07:01:09 +02:00
J0J0 Todos c599cf0adf lastgenre: Conditional assign keep_genres (force mode) 2026-08-18 07:01:09 +02:00
J0J0 Todos e694f09c3f lastgenre: Move get_genre helpers to methods 2026-08-18 07:01:09 +02:00