Commit graph

10772 commits

Author SHA1 Message Date
Aksh Gupta
79858975a9 chore: refactor code quality issues 2021-03-11 08:45:42 +05:30
Adrian Sampson
84f6d374c4
Merge pull request #3869 from GrahamCobb/web-regex-fix
Web regex fix
2021-03-10 20:36:03 -05:00
Benedikt
f872acebc6
Merge pull request #3875 from djdembeck/patch-1
remove LyricsWiki from default sources in docs
2021-03-10 20:10:41 +01:00
David Dembeck
374707bb7a
remove LyricsWiki from default sources in docs
https://github.com/beetbox/beets/pull/3766 missed removing this
2021-03-10 12:59:48 -06:00
Graham R. Cobb
0aa333cd7b Merge remote-tracking branch 'upstream/master' 2021-03-10 18:32:13 +00:00
Graham R. Cobb
92c69a819c Merge branch 'master' of github.com:GrahamCobb/beets 2021-03-09 19:52:52 +00:00
Graham R. Cobb
45cf9d00c7 Improve handling of paths for Windows tests
Signed-off-by: Graham R. Cobb <g+beets@cobb.uk.net>
2021-03-09 18:58:05 +00:00
Graham R. Cobb
ab2e858bce Aaargh! Forgot to run lint again
Signed-off-by: Graham R. Cobb <g+beets@cobb.uk.net>
2021-03-09 12:10:40 +00:00
Graham R. Cobb
f19faae1dc Attempt to make path-related tests portable to Windows
Signed-off-by: Graham R. Cobb <g+beets@cobb.uk.net>
2021-03-09 11:19:54 +00:00
Graham R. Cobb
4d5c5c02ae Lint fixes
Signed-off-by: Graham R. Cobb <g+beets@cobb.uk.net>
2021-03-08 17:26:04 +00:00
Graham R. Cobb
75f331e64b Update changelog with web regex query backslash fix for #3867.
Signed-off-by: Graham R. Cobb <g+beets@cobb.uk.net>
2021-03-08 17:08:36 +00:00
Graham R. Cobb
38fb1b5f08 Add tests for several web queries, including the regex queries fixed in
bugfix #3867.

Signed-off-by: Graham R. Cobb <g+beets@cobb.uk.net>
2021-03-08 17:00:41 +00:00
Graham R. Cobb
553e38fc11 Do not do backslash substitution on regex queries
As discussed in bug #3867, backslash replacement in query strings is a bit of a
hack but it is useful (see #3566 and #3567 for more discussion). However,
it breaks many regular expressions so this patch stops the replacement if the
query term contains '::', indicating it is a regex match.

This commit fixes #3867.

Signed-off-by: Graham R. Cobb <g+beets@cobb.uk.net>
2021-03-08 16:58:05 +00:00
govynnus
debd382837
Merge pull request #3758 from beetbox/aura
AURA: Add aura plugin and docs
2021-03-08 07:24:53 +00:00
Adrian Sampson
1a2724c327
More changelog editing 2021-03-07 21:30:32 -05:00
Adrian Sampson
8cf46bce6d
A little more changelog stuff 2021-03-07 21:14:53 -05:00
Adrian Sampson
39e5972407
A little changelog editing 2021-03-07 19:54:42 -05:00
Adrian Sampson
3d1b421b97
Cursory changelog summary 2021-03-07 19:50:31 -05:00
Callum Brown
a24a094562 AURA: Small updates to docs and set server version 2021-03-07 18:24:57 +00:00
Adrian Sampson
3e8261393d
Merge pull request #2988 from FichteForks/pr/item-album-fallback
Add fallback for item access to album's attributes
2021-03-07 09:29:37 -05:00
Callum Brown
a54ee43d57 AURA: Allow '-' character in filter attribute 2021-03-07 14:23:17 +00:00
Adrian Sampson
09a6ec4f74
Merge branch 'master' into pr/item-album-fallback 2021-03-07 09:20:50 -05:00
Adrian Sampson
66443169ad
Merge pull request #3868 from GrahamCobb/web-artpath-fix
Web artpath fix
2021-03-07 09:04:49 -05:00
Callum Brown
9b9ff46e7d Merge branch 'master' into aura
Ensure aura branch has updated configuration to eliminate spurious
linter errors from the style checker.
2021-03-07 11:08:37 +00:00
Callum Brown
477eed3b25 AURA: Use py3_path rather than displayable_path
displayable_path may remove 'bad' characters, yielding a wrong path.

Also use track.path rather than track.destination() as that is where
the file is actually located rather than where it should be located
according to the beets path system.
2021-03-07 10:25:20 +00:00
Adrian Sampson
461fee45ec
Merge pull request #3865 from GrahamCobb/master
Improved test coverage for web plugin JSON API
2021-03-06 17:19:52 -05:00
Adrian Sampson
dd451365ef
Merge branch 'master' into GrahamCobb/master 2021-03-06 17:08:54 -05:00
Adrian Sampson
defe96b132
*Actually* use 3.9 for docs 2021-03-06 16:59:49 -05:00
Adrian Sampson
748e5318b4
Change "main" Python version to 3.9 2021-03-06 16:58:23 -05:00
Adrian Sampson
d329c70338
Use Python 3 for docs 2021-03-06 16:57:22 -05:00
Graham R. Cobb
c5556ff859 Changelog entry for fixing web include_paths artpath bug #3866
Signed-off-by: Graham R. Cobb <g+beets@cobb.uk.net>
2021-03-06 16:03:37 +00:00
Graham R. Cobb
9986b9892c Fix bug where album artpath not returned when INCLUDE_PATHS is set
Track item paths and album artpaths should be removed from results unless
INCLUDE_PATHS is set. This works for items but for albums the artpath is always
removed.

This patch makes the artpath removal conditional on INCLUDE_PATHS not being set
and includes a regression test. Note: the default value for INCLUDE_PATHS is
False so no changes will be seen by users unless they already have
INCLUDE_PATHS set.

Signed-off-by: Graham R. Cobb <g+beets@cobb.uk.net>
2021-03-06 15:25:48 +00:00
Graham R. Cobb
49c747d144 Small documentation change to make GET /album/.../art clearer
Signed-off-by: Graham R. Cobb <g+beets@cobb.uk.net>
2021-03-06 15:14:41 +00:00
Callum Brown
2fe2f4f31e AURA: Ensure CORS allowed origins are strings 2021-03-06 13:30:31 +00:00
Callum Brown
fbc76887ad AURA: Fix styling when formatting error strings 2021-03-06 13:22:28 +00:00
Callum Brown
07cfaaa3b3 AURA: Simplify if statements
Get rid of ` is not None`
Change `len(x) == 0` to `not x`
Change `x is None` to `not x`
2021-03-06 12:44:32 +00:00
Callum Brown
b1baeb37f1 AURA: replace translate_attribute with a dict.get 2021-03-06 12:08:35 +00:00
Callum Brown
7e819d2a2e AURA: Update artist-mbid attribute to use '-' 2021-03-06 12:01:02 +00:00
Graham R. Cobb
d2a1251756 Drop changelog as requested by @sampsyo.
Signed-off-by: Graham R. Cobb <g+beets@cobb.uk.net>
2021-03-05 22:42:27 +00:00
Graham R. Cobb
7d3fb0d7ec Fix lint errors
Signed-off-by: Graham R. Cobb <g+beets@cobb.uk.net>
2021-03-05 16:52:21 +00:00
Graham R. Cobb
3846e3519d Update changelog to mention small test coverage improvement for web plugin.
Signed-off-by: Graham R. Cobb <g+beets@cobb.uk.net>
2021-03-05 16:38:03 +00:00
Graham R. Cobb
de58334ecb Test web API /stats
Added a test (test_get_stats) for the /stats web API.
This involved adding another item so that we can check both items and albums
are being counted correctly, which required a few small changes to some item
tests.

Signed-off-by: Graham R. Cobb <g+beets@cobb.uk.net>
2021-03-05 16:29:26 +00:00
Graham R. Cobb
15be534e7c Test ?expand using documented syntax
Documentation says that ?expand does not need a value (i.e. ?expand=1 is wrong),
so the test is changed to reflect that syntax.

Signed-off-by: Graham R. Cobb <g+beets@cobb.uk.net>
2021-03-05 16:17:14 +00:00
Graham R. Cobb
79b41f6f38 Add test for getting album track listing using ?expand=1
Added test_get_album_details to test fetching /album/2?expand=1.
Also changed second album name to make tests more robust.

Signed-off-by: Graham R. Cobb <g+beets@cobb.uk.net>
2021-03-05 15:56:46 +00:00
Graham R. Cobb
dc55480f51 Document "id" handling in test setup and add test to confirm
self.lib.add ignores the "id" field from the entry being added and overwrites
it with the next free number. So remove the misleading id fields.
Add a test to confirm that the album query response contains the expected
album id number.

Signed-off-by: Graham R. Cobb <g+beets@cobb.uk.net>
2021-03-05 15:27:00 +00:00
Adrian Sampson
d226632eeb
Merge pull request #3863 from m0zes/trackdisambig
Add trackdisambig from musicbrainz.
2021-02-27 19:37:33 -05:00
Adam Tygart
ce78f75ce9 Further attempt to address the comments from sampsyo 2021-02-27 18:31:16 -06:00
Adam Tygart
f3e7edb21e Attempt to address the comments from sampsyo
Undoes the changes to autotag/hooks.py

If trackdisambig is not set to None at some point in time, the
test case for a non-existent trackdisambig fails. as such, try
to get the disambiguation with a default of None when setting
trackdisambig. Not sure if this is reasonable.
2021-02-27 15:23:35 -06:00
Adam Tygart
1b1209a6c3 Add trackdisambig from musicbrainz.
fixes beetbox/beets#1904
2021-02-27 15:07:32 -06:00
Adrian Sampson
5b6dff34a1
Merge pull request #3861 from grawlinson/update_discogs_client
Fix #3608: Replace discogs-client with python3-discogs-client
2021-02-26 16:42:33 -05:00