Commit graph

11434 commits

Author SHA1 Message Date
Alok Saboo
a291ec3f0b convert urs to f-string format 2023-07-09 18:43:35 -04:00
Alok Saboo
783ea2a444 Add function to update Deezer rank 2023-07-09 18:39:15 -04:00
Alok Saboo
cdfebdba8e Update deezer.py 2023-07-09 18:02:11 -04:00
Alok Saboo
5419a78bd2 Added additional fields to be imported from Deezer 2023-07-09 17:59:50 -04:00
Adrian Sampson
9481402b3c
Merge pull request #4839 from Scrumplex/fix-compare-colorspaces
Define colorspaces for imagemagick comparison
2023-07-05 09:57:13 -07:00
Adrian Sampson
17b341abea
Wrap a long line 2023-07-05 09:46:17 -07:00
Sefa Eyeoglu
11c13a8ea0
Add imagick 7.1.1-12 support to changelog
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2023-07-05 18:33:08 +02:00
Sefa Eyeoglu
a873a191b9
Define colorspaces for imagemagick comparison
ImageMagick 7.1.1-12 changed the default colorspaces used by the PHASH
compare function from sRGB,HCLp to xyY,HSB. This breaks the current code
for comparisons, so let's define the colorspaces ourselves.

Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2023-07-05 18:32:34 +02:00
J0J0 Todos
dac9712240
Merge pull request #4812 from arsaboo/comment 2023-07-03 22:16:00 +02:00
Alok Saboo
4c8b13560f Updated comment 2023-07-03 16:03:38 -04:00
Adrian Sampson
5bc0786f51
Merge pull request #4834 from Bobo1239/master
Handle missing release-relation-list field during pseudo-release lookup
2023-07-03 10:32:59 -07:00
Boris-Chengbiao Zhou
dcaac12860 Handle missing release-relation-list field during pseudo-release lookup
Some pseudo-releases (erroneously) lack the relation to the actual
release which previously would've caused a crash.
2023-06-29 23:39:19 +02:00
Adrian Sampson
99f641c3bb
Merge pull request #4833 from jamesharding/jamesharding-pseudo-release-patch
Fixed check for pseudo-release.
2023-06-29 08:37:53 -07:00
James Harding
ed2d4fd9c8
Fixed check for pseudo-release.
The 'status' field is potentially null, and in this case the dictionary key it is not returned by the API. Using get will return null in this case. Tested locally and this solves the issue!
2023-06-29 05:11:57 +01:00
Adrian Sampson
ade730d331
Merge pull request #4831 from TheLastZombie/add-more-plugin
Add beets-more to community plugins
2023-06-28 08:07:17 -07:00
Sunny
edd4f9a4f5
Point URL to specific plugin 2023-06-27 15:33:11 +02:00
Sunny
76932962f8
Add beets-more to community plugins 2023-06-27 10:25:26 +02:00
Adrian Sampson
16a30f4d74
Merge pull request #4714 from TypicalFence/gh-654
resolve transl-tracklisting relations for pseudo releases
2023-06-26 14:40:28 -07:00
fence
3f31876b33 add change log entry 2023-06-26 21:21:48 +02:00
fence
260aff7e48 fix lint 2023-06-26 21:17:48 +02:00
Adrian Sampson
fb93d9eda0
Merge pull request #4830 from wisp3rwind/pr_add_syspath_1
Always use syspath conversions (#3690 split up, part 1)
2023-06-26 11:02:36 -07:00
Adrian Sampson
5c2e0e7504
Merge pull request #4829 from wisp3rwind/fix_completion_test
test_ui: Fix spurious warnings in completion test
2023-06-26 10:58:03 -07:00
Adrian Sampson
998d55b716
Merge pull request #4828 from wisp3rwind/dbcore_typing_2
typing: corrections for dbcore/types.py
2023-06-26 10:57:06 -07:00
wisp3rwind
1ef6b90786 add missing syspath conversions (1/3, tests)
these are mostly in the tests, which didn't cause issues since the
affected directories usually have nice ASCII paths. For consistency, it
is nicer to always invoke syspath. That also avoids deprecation warnings
for the bytestring interfaces on Python <= 3.5. The bytestring
interfaces were undeprecated with PEP 529 in Python 3.6, such that we
didn't observe any actual failures.
2023-06-24 14:52:46 +02:00
wisp3rwind
26faf8daa9 test_ui: Fix spurious warnings in completion test
probably an issue going back to the Python 2 -> 3 switch: `map` gives an
iterator nowadays so after the test case started iterating
BASH_COMPLETION_PATHS, print_completion() couldn't find the
(previously found) bash_completion anymore, and would log a spurious
warning about that.

Also, some cleaup of path type handling
2023-06-24 12:48:00 +02:00
wisp3rwind
e9f3565ced Python 3.7 support for new typings 2023-06-24 11:51:00 +02:00
wisp3rwind
a84b3542f9 typing: corrections for dbcore/types.py
tricky...
- the only way I found to express the concept of the "associated type"
  (in Rust lingo) model_type was by making Type generic over its value
  and null types.
- in addition, the class hierarchy of Integer and Float types had to be
  modified, since previously some of them would have conflicting null
  types relative to their super class (this required a change to the
  edit plugin; hopefully no more breakage is caused by these changes)
- don't import the query module, but only the relevant Query's to avoid
  confusing the module query and the class variable query
2023-06-24 11:51:00 +02:00
Adrian Sampson
854fec2634
Merge pull request #4826 from wisp3rwind/dbcore_typing_0
typings: corrections for dbcore/queryparse
2023-06-23 17:44:13 -07:00
Adrian Sampson
17e1d404b7
Fix flubbed merge 2023-06-23 17:30:27 -07:00
Adrian Sampson
6c77e1a78d
Merge branch 'master' into dbcore_typing_0 2023-06-23 17:27:34 -07:00
Adrian Sampson
511824028c
Merge pull request #4827 from wisp3rwind/dbcore_typing_1
dbcore/query: remove spurious dependency on library
2023-06-23 17:17:22 -07:00
wisp3rwind
bc7c447b3c beetsplug/playlist: actually use SQL clause
As far as I can tell, the fast SQL path was never used before, since a
query would use the default `clause()` implementation. It is only the
`FieldQuery.clause()` that could delegate to `col_clause()`, but
`PlaylistQuery` is not a `FieldQuery`.
2023-06-23 11:00:09 +02:00
wisp3rwind
09d2c87f29 typings: corrections for dbcore/queryparse
- Add NamedQuery abstract class to be able to express the expectation
  that a query should be such a query (and have a specific constructor
  signature) in construct_query_part
- slightly (and probably completely irrelevantly) improve Query.__hash__
- also, sprinkle some ABC/abstractmethod around to clarify things
2023-06-23 10:59:51 +02:00
wisp3rwind
7b4c0592eb dbcore/query: remove spurious dependency on library
It seems like `Query`s and `Sort`s should really be generic over
`Model`.

Also, make use of the postponed evaluation of annotations that we get
with `from future import __annotations__`.
2023-06-23 10:27:46 +02:00
Benedikt
7d05e01b85
Merge pull request #4825 from JOJ0/fix_convert_auto_keep
Fix ValueError in convert plugin auto_convert_keep
2023-06-22 15:26:32 +02:00
J0J0 Todos
0d8f8a3cff Fix ValueError in convert plugin auto_convert_keep 2023-06-22 09:13:09 +02:00
fence
dccc62443d fix tests 2023-06-19 20:13:16 +02:00
fence
206ed23810 refactor based on review 2023-06-19 19:27:27 +02:00
fence
e992b82bdf resolve transl-tracklisting relations for pseudo releases 2023-06-19 19:27:25 +02:00
Adrian Sampson
79435c3b6f
Merge pull request #4819 from lonebyte/fix-fanarttv-sorting
Fix fanarttv sorting
2023-06-16 20:17:27 -04:00
Jan Müller
8c6c2f0083 Update changelog.rst 2023-06-14 23:01:48 +02:00
lonebyte
2c3aca23e1
Fix the sorting of fanart.tv covers
fanart.tv uses a string to output the number of likes (see https://fanart.tv/api-docs/api-v3/). In order to sort numerically we need to convert the string into an int.
2023-06-14 20:25:18 +02:00
Adrian Sampson
0c3f428a60
Merge pull request #4816 from beetbox/release_group_title-album-tag
Make sure release_group_title is applied to album objects.
2023-06-06 06:34:58 -07:00
David Logie
c575d4d016 Make sure release_group_title is applied to album objects. 2023-06-06 09:15:16 +01:00
Adrian Sampson
fc51a9327c
Merge pull request #4809 from beetbox/releasegroup_title-field
Store the release group's title.
2023-06-04 09:03:43 -07:00
Alok Saboo
4c113dcf19 Update comment explaining how to extend import fields 2023-06-04 11:23:32 -04:00
David Logie
7ec93d6049 Store the release group's title.
beets does not currently store the "canonical" release group title,
only each release's title and disambiguation. Oddly, beets does store
the release group disambiguation.

Without this there is no way to determine a release group's title
without separately querying a data source.
2023-06-04 12:20:06 +01:00
Adrian Sampson
63587f6951
Merge pull request #4810 from plenaerts/master
Elaborated multidisc FAQ
2023-06-03 14:59:56 -07:00
Adrian Sampson
0e446fd16a
Simplify wording a bit 2023-06-03 14:59:25 -07:00
Pieter Lenaerts
12db5fc4c9 Reverting dicussions extlink
Discussions on github can be referenced as issues. The discussions
extlink was therefore not needed.
2023-06-03 08:20:00 +02:00