Commit graph

3003 commits

Author SHA1 Message Date
Jelle Kaufmann
a46c975387 Add HTTPS support for Musicbrainz 2021-05-03 20:28:47 +02:00
Sam Thursfield
2fa3717731 Optimise FormattedMapping when querying a specific set of fields
This changes greatly improves the speed of `beet export` and `beet info`
when the `--include-keys` option is used. It also removes the globbing
feature of `--include-keys` that was added in #1295. (See #3762 for
discussion).

Listing all fields for an item requires querying the database to find
any flex attributes. This is slow when done for every item being
exported. We already have a way for the user to specify a fixed set
of keys, but we previously queried everything and filtered it afterwards.
The new approach is more efficient.

Code that iterates through all fields now have to handle invalid field
names. The export and info plugins output invalid fields as None.

Timings before:

    > /usr/bin/time beet export -i title,path,artist -l  Bob Dylan
    13.26user 20.22system 0:34.01elapsed 98%CPU (0avgtext+0avgdata 52544maxresident)k

    > /usr/bin/time beet export -l  Bob Dylan
    12.93user 20.15system 0:33.58elapsed 98%CPU (0avgtext+0avgdata 53632maxresident)k

Timings after:

    > /usr/bin/time beet export -l  Bob Dylan
    13.33user 20.17system 0:34.02elapsed 98%CPU (0avgtext+0avgdata 53500maxresident)k

    > /usr/bin/time beet export -i title,path,artist -l  Bob Dylan
    0.49user 0.07system 0:00.56elapsed 98%CPU (0avgtext+0avgdata 50496maxresident)k

Notice the dramatic speedup in the last example!
2021-05-01 23:41:09 +02:00
Xavier Hocquet
0dd569a884 Add changelog 2021-04-11 17:34:46 -05:00
Evgeniy Gurevich
802af4203b
Update changelog.rst 2021-04-07 20:12:52 +08:00
Adrian Sampson
eab4372a58
Merge pull request #3900 from Lanny/master
badfiles: Optionally run checkers during import
2021-03-29 19:28:30 -04:00
Ryan Lanny Jenkins
79616b42ed Use simpler approach of asserting that at most one handler of import_task_before_choice returns an action. 2021-03-28 16:53:01 -05:00
Adrian Sampson
f067180c4c
Shorten a ReST underline 2021-03-28 14:23:38 -04:00
Xavier Hocquet
6081e6a8df CR comments 2021-03-28 13:08:00 -05:00
Xavier Hocquet
8c6530369d
Merge branch 'master' into tekstowo-lyrics 2021-03-28 12:05:42 -06:00
Ryan Lanny Jenkins
39b5a7636c Add line in dev docs for new hook. 2021-03-27 12:04:25 -05:00
Ryan Lanny Jenkins
227d420efb Add entry to changelog. 2021-03-24 17:04:17 -05:00
Ryan Lanny Jenkins
3e1fe88053 Merge branch 'master' of https://github.com/beetbox/beets 2021-03-24 16:59:24 -05:00
Ryan Lanny Jenkins
2f8a8e2f8a Add docs for badfiles' check_on_import option. 2021-03-24 16:55:28 -05:00
wisp3rwind
7a0599efe2 Python 3.5 is EOL and we should drop support thus add notice to changelog
The final release 3.5.10 was on 2020-09-05
2021-03-23 19:41:29 +01:00
wisp3rwind
9a6b65351b Merge pull request #3560 from davidswarbrick/master
Album Art Resize to filesize
2021-03-23 12:15:51 +01:00
David Swarbrick
07b5e69f40 fetchart/artresizer: add max_filesize support (#3560)
Squashed from the PR, relevant commit messages follow below:

Added file size option to artresizer

 - In line with comments on PR, adjusted the ArtResizer API to add
   functionality to "resize to X bytes" through `max_filesize` arg

 - Adjustment to changelog.rst to include max_filesize change to ArtResizer
   and addition of new plugin.

Added explicit tests for PIL & Imagemagick Methods

 - Checks new resizing functions do reduce the filesize of images

Expose max_filesize logic to fetchart plugin

- Add syspath escaping for OS cross compatibility
- Return smaller PIL image even if max filesize not reached.
- Test resize logic against known smaller filesize (//2)
- Pass integer (not float) quality argument to PIL
- Remove Pillow from dependencies
- Implement "max_filesize" fetchart option, including
  logic to resize and rescale if maxwidth is also set.

Added tests & documentation for fetchart additions.

Tests now check that a target filesize is reached with a
higher initial quality (a difficult check to pass).

With a starting quality of 95% PIL takes 4 iterations to succeed
in lowering the example cover image to 90% its original size.
To cover all bases, the PIL loop has been changed to 5 iterations
in the worst case, and the documentation altered to reflect the
50% loss in quality this implies. This seems reasonable as users
concerned about performance would most likely be persuaded to
install ImageMagick, or remove the maximum filesize constraint.
The previous 30% figure was arbitrary.
2021-03-23 12:00:14 +01:00
Jack Wilsdon
01bc32e50e Allow equals within import --set value 2021-03-22 15:26:14 +00:00
Graham R. Cobb
cad2c055c5 Make unicode handling explicit, to support python 2 and 3.
Add link to Unidecode library in docs.

Signed-off-by: Graham R. Cobb <g+beets@cobb.uk.net>
2021-03-16 16:29:57 +00:00
Graham Cobb
4b9c9d0a5f
doc improvement as suggested by @sampsyo
Co-authored-by: Adrian Sampson <adrian@radbox.org>
2021-03-16 15:30:43 +00:00
Graham Cobb
2df3765521
Tidy doc as suggested by @sampsyo
Co-authored-by: Adrian Sampson <adrian@radbox.org>
2021-03-16 15:29:35 +00:00
Graham R. Cobb
d1ec7b4b70 Add `bareasc` command to display entries with the unidecode transformation
applied.

Signed-off-by: Graham R. Cobb <g+beets@cobb.uk.net>
2021-03-16 11:57:52 +00:00
Graham R. Cobb
06b6b72e0e Add credit to Unidecode library into bareasc docs.
Signed-off-by: Graham R. Cobb <g+beets@cobb.uk.net>
2021-03-15 22:52:14 +00:00
Graham R. Cobb
f4fccfa05c Add documentation for bareasc to the plugins index.
Signed-off-by: Graham R. Cobb <g+beets@cobb.uk.net>
2021-03-15 15:53:14 +00:00
Graham R. Cobb
341a0a0adf Added documentation and changelog for bareasc.
Signed-off-by: Graham R. Cobb <g+beets@cobb.uk.net>
2021-03-15 15:34:58 +00:00
Graham R. Cobb
680ccdcd96 Documentation and changelog for web `readonly` option fixing #3870.
Signed-off-by: Graham R. Cobb <g+beets@cobb.uk.net>
2021-03-11 23:09:51 +00:00
Adrian Sampson
84f6d374c4
Merge pull request #3869 from GrahamCobb/web-regex-fix
Web regex fix
2021-03-10 20:36:03 -05: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
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
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
09a6ec4f74
Merge branch 'master' into pr/item-album-fallback 2021-03-07 09:20:50 -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
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
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
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
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
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
1b1209a6c3 Add trackdisambig from musicbrainz.
fixes beetbox/beets#1904
2021-02-27 15:07:32 -06:00
George Rawlinson
00252ab28f
Fix #3608: Replace discogs-client with python3-discogs-client
discogs-client has been deprecated since June 2020, the replacement
is actively developed by the community and does not have any breaking
API changes.

Signed-off-by: George Rawlinson <george@rawlinson.net.nz>
2021-02-27 10:09:23 +13:00
Andrea Mistrali
af2229c1b7 Fix docs and changelog 2021-02-22 14:28:14 +01:00
Andrea Mistrali
414b682123 Add strip_path to mpdstats 2021-02-22 11:19:23 +01:00
Dorian Soergel
21f232ff70
Merge branch 'master' into beets_tag_hook 2021-02-06 15:10:31 +01:00
Dorian
00b08d52d5 style following review 2021-02-06 15:07:10 +01:00
Samuel Cook
532ac7f291
Added entry in For packagers changelog section. 2021-01-28 09:42:58 -08:00
Samuel Cook
ff4cec2e69
Removes support for bs1770gain.
References in the documentation to this plugin were removed in
beetbox/beets#3127 (beetbox/beets#3130) but no actual code
changes were made.

This PR removes support for this dependency entirely.
2021-01-27 17:42:18 -08:00
John Hamelink
64944a284e
Added changelog entry for #3834 fix 2021-01-19 22:11:34 +00:00
wisp3rwind
f60ab5621a changelog spelling 2021-01-19 19:07:46 +01:00
Benedikt
6680f692f6
Merge pull request #3832 from vincentDcmps/master
Automatically choose subsonic authentication algorithm based on server version
2021-01-19 19:00:10 +01:00
vincent
2479edbe22 update changelog 2021-01-19 18:50:11 +01:00
Martin Haaß
9587caf916
convert: uses new par_map to work in parallel (#3830)
Squashed 5 commits:
* convert: uses new par_map to work in parallel
* linting
* code review: remove unneeded list syntax
* linting
* changelog addition
2021-01-19 18:47:02 +01:00
vincent
375c158fc7 implement version check 2021-01-11 18:29:27 +01:00
vincent
54748ad4c9 change auth option enc by password 2021-01-11 17:56:09 +01:00
vincent
93bb114175 update doc 2021-01-11 17:55:23 +01:00
soergeld
93ebb9816d style 2021-01-09 16:58:35 +01:00
soergeld
79e5b89caf documentation and changelog 2021-01-09 16:54:14 +01:00
FichteFoll
5ace2b626b
Merge remote-tracking branch 'upstream/master' into pr/item-album-fallback 2021-01-08 18:47:18 +01:00
Dorian Soergel
5bddb6dddc
Merge branch 'master' into beets_500 2021-01-07 12:36:37 +01:00
Andrew Simmons
3117cc0d31 Update changelog 2021-01-06 10:52:18 -05:00
Auguste Olivry
a391740614 Update changelog 2021-01-05 14:25:57 +01:00
soergeld
67587850c9 changelog 2020-12-30 16:04:40 +01:00
ybnd
cc18beb12a Reference issue 2020-12-21 19:33:23 +01:00
ybnd
93101e7ea6 Disable replaygain parallelism during import 2020-12-21 19:19:20 +01:00
sentriz
95677c8626
lastgenre: Make TitleCasing optional 2020-12-15 23:37:16 +00:00
ybnd
e3205aacbd Merge remote-tracking branch 'origin/master' into parallel-replaygain 2020-12-14 22:19:28 +01:00
Adam Miller
e11687f80a keyfinder: Catch output from keyfinder-cli with no key 2020-12-07 22:04:05 -05:00
Adrian Sampson
9657919968
Merge pull request #3088 from rubdos/reflink
Add reflink option
2020-11-27 13:29:10 -05:00
Ruben De Smet
5efaa09482 Note installing pyreflink in docs 2020-11-26 13:45:33 +01:00
Callum Brown
c2a92fdbf8 AURA: Update reverse proxy docs 2020-11-21 18:40:44 +00:00
rachmadaniHaryono
76a5b055f4 Revert "new: doc: changelog"
This reverts commit 4acbd2a8b3.
2020-11-12 06:26:47 +08:00
rachmadaniHaryono
4acbd2a8b3 new: doc: changelog 2020-11-11 12:28:16 +08:00
rachmadaniHaryono
bb80fe5c5b fix: doc: copyartifacts fork 2020-11-11 12:16:30 +08:00
FichteFoll
701cd6c42b
Merge remote-tracking branch 'upstream/master' into pr/item-album-fallback 2020-11-02 00:10:46 +01:00
Aidan Epstein
ceb046d60c Add musicbrainz genre config option. 2020-10-30 08:27:04 -07:00
Aidan Epstein
0a8c755a6b Apply suggestions from code review
Co-authored-by: Adrian Sampson <adrian@radbox.org>
2020-10-30 08:27:04 -07:00
Aidan Epstein
a79b239d4f Add musicbrainz genre config option. 2020-10-30 08:27:04 -07:00
Callum Brown
72c0412552 AURA: Small updates to documentation 2020-10-30 12:27:22 +00:00
Adrian Sampson
627005d4d1
Merge pull request #3774 from beetbox/normalize-str
Try normalizing the dbcore String type
2020-10-28 18:51:13 -04:00
Adrian Sampson
072e1dfead
Merge pull request #3781 from aereaux/add_genres
Add genre support using musicbrainz tags.
2020-10-28 18:51:01 -04:00
Adrian Sampson
8ac14a39b6
Merge branch 'master' into normalize-str 2020-10-28 15:44:13 -04:00
Adrian Sampson
be0003aba3
Merge pull request #3784 from jackwilsdon/fix-pil-image-quality
Fix PIL image quality
2020-10-28 15:16:59 -04:00
Jack Wilsdon
f2dabfef53
Fix PIL image quality 2020-10-28 18:15:29 +00:00
Aidan Epstein
d70287df00 Add genre support using musicbrainz tags.
This requires this PR: https://github.com/alastair/python-musicbrainzngs/pull/266
2020-10-28 09:49:06 -07:00
Adrian Sampson
2cbec2d838 Changelog entry 2020-10-26 20:25:25 -04:00
Jack Wilsdon
769e4246c1
Merge pull request #3765 from jackwilsdon/plugins-flag
Add --plugins flag
2020-10-25 16:39:46 +00:00
Adrian Sampson
6e4bb3d4ed Update docs for #3783 2020-10-25 06:57:46 -04:00
Adrian Sampson
374f211135 Merge pull request #3783 from Sudo-kun/feature/3569
Changed the phrasing asked in Issue 3569
2020-10-25 06:57:06 -04:00
Adrian Sampson
829d08d9b8 Fix some ReST syntax 2020-10-25 06:55:30 -04:00
Sudo-kun
272463aa4a Edited the changelog entry to contain the Issue number 2020-10-25 11:06:00 +01:00
Sudo-kun
e49ee7c686 Removed white-space sensitivity in the if-clause 2020-10-25 11:02:12 +01:00
Georg Schwitalla
e7013f9f6f Added the changelog 2020-10-24 13:34:23 +02:00
Georg Schwitalla
3c8afd9a0e Added the changelog entry 2020-10-24 13:07:27 +02:00
Adrian Sampson
013155a9d8 Simplifications to #3778 2020-10-23 20:33:22 -04:00
Kyle R. Conway
d0cbf098c6
Update faq.rst
Thanks for the feedback! That's a lot clearer. I made the headers bold to ensure they still stood out as clear options if that's okay. Let me know if there are any other recommendations here.

I hit this issue -- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=964245 -- while testing for another user and found the helpful guide but misread it a couple of times.

Thanks!
2020-10-23 11:06:16 -05:00
Kyle R. Conway
950dbe3b9f
Update faq.rst
A couple of suggested modifications primarily to clarify that this unordered list is of **options** to install the latest version―not a series of commands to complete a single install. Also suggested a layout change to explain the series of commands in option b.
2020-10-23 00:41:58 -05:00
Jack Wilsdon
14a5630381
Add genius to linkcheck ignore list 2020-10-22 00:07:49 +01:00