Commit Graph
10308 Commits
Author SHA1 Message Date
Adrian Sampson de3eedc033 Use bytes for destination base name
This is mostly "defensive programming": clients *should* only call this
on bytestring paths, but just in case this gets called on a Unicode
string path, we should now not crash.
2021-12-27 13:51:42 -08:00
Adrian Sampson 592c3fa356 Changelog for #4168 fix 2021-12-26 18:05:56 -08:00
Adrian Sampson 4bb695bcdb Fix copying for atomic file moves
Fixes #4168. Also closes #4192, which it supersedes.

The original problem is that this implementation used bytestrings
incorrectly to invoke `mktemp`. However, `mktemp` is deprecated, so this
PR just avoids it altogether. Fortunately, the non-deprecated APIs in
`tempfile` support all-bytes arguments.
2021-12-26 18:04:48 -08:00
Adrian Sampson 1dc5163cb4 Create security policy 2021-12-22 09:34:41 -08:00
Adrian Sampson bcf0728248 Merge pull request #4200 from dschrempf/deezer-paginate 2021-12-19 16:46:44 -08:00
Callum Brown fcb73ad095 Clarify docs for writing plugins
If the beetsplug directory itself is added to the python path
then python does not see the plugin as part of the beetsplug namespace.
2021-12-19 15:41:31 +00:00
Adrian Sampson 17410cdbb5 Merge branch 'master' into deezer-paginate 2021-12-19 07:32:12 -08:00
Adrian Sampson ba3569afa1 Add a paragraph space 2021-12-19 07:31:29 -08:00
Adrian Sampson 11ad35dcf0 Merge pull request #4198 from dschrempf/spotify-paginate
fix spotify pagination
2021-12-19 07:27:37 -08:00
Dominik Schrempf 969f045610 fix deezer pagination
See #4180, and #4198.
2021-12-19 00:55:20 +01:00
Dominik Schrempf fd761cb1e6 fix spotify pagination
Basically, keep fetching tracks until there are no more available for
the specified album.

Fixes #4180.
2021-12-19 00:16:07 +01:00
Adrian Sampson 89c437dddd Merge pull request #4153 from jcassette/bitratemode
Add the item fields bitrate_mode, encoder_info and encoder_settings
2021-12-18 13:39:39 -08:00
Adrian Sampson 3b9382d808 Syntax fix: e.g. 2021-12-18 13:39:12 -08:00
Julien Cassette 4f83b2d8a6 Add the item fields bitrate_mode, encoder_info and encoder_settings 2021-12-17 21:59:57 +01:00
Adrian Sampson eb71f7698b Merge pull request #4196 from ybnd/pr_deezer_tolerate_missing_fields
deezer: Tolerate missing fields when searching for singletons
2021-12-12 14:33:38 -05:00
Adrian Sampson 3fcedba5c9 Merge branch 'master' into pr_deezer_tolerate_missing_fields 2021-12-12 14:33:30 -05:00
ybnd 82a2a22365 deezer: Tolerate missing fields when searching for singletons 2021-12-12 15:49:29 +01:00
Adrian Sampson cea682967e Merge pull request #4197 from ybnd/pr_support_multiple_kodi_instances
kodiupdate: Support multiple instances
2021-12-12 09:28:27 -05:00
Adrian Sampson 53a57fa5f0 Merge pull request #4195 from ybnd/pr_rg_make_r128_fields_floats
Make R128 fields floats
2021-12-12 09:18:53 -05:00
ybnd ca37c94337 kodiupdate: Support multiple instances 2021-12-12 13:39:18 +01:00
ybnd 38fc1d4532 Add changelog entry for r128 type change 2021-12-12 12:10:59 +01:00
Adrian Sampson 5df2914db1 Merge pull request #4191 from katecoded/master
Updates docstrings and some comments in library.py
2021-12-11 14:42:44 -05:00
ybnd 9f13eaeb15 Make r128 fields floats 2021-12-10 18:33:24 +01:00
Katelyn Lindsey 2f42c8b1c0 Alters docstrings in library.py to be imperative-style. 2021-12-09 18:02:23 -08:00
Katelyn Lindsey acf576c455 Fixes linting errors by removing trailing whitespaces. 2021-12-08 03:48:55 -08:00
Katelyn Lindsey bbd32639b4 Fixes inconsistencies in ending quote placements for single-line docstrings. 2021-12-08 01:31:16 -08:00
Katelyn Lindsey 8c5ced3ee1 Updates docstrings in library.py.
Alters existing docstrings to follow google's docstring format and adds docstring to Items class. Also updates some typos and updates some block comments to follow PEP 8 style guide.
2021-12-06 21:14:22 -08:00
Adrian Sampson 736443708b Merge pull request #4184 from dschrempf/modify-album-doc
clarify `-a` option for `beet modify`
2021-12-03 17:15:14 -05:00
Dominik Schrempf e39dcfc002 clarify -a option for beet modify
See https://github.com/beetbox/beets/discussions/4172.

I think the confusion arises because the documentation refers to the
query. That is, when `-a` is given, albums are queried, not tracks. This
is especially clear when using `beet list`, because then it truly lists
"albums instead of items". However, for other commands, the distinction
between what is queried and what is acted on should be made more clear.

This PR fixes the section for `modify`, but there are more questions:

- `remove` command: The documentation states that it acts on albums
instead of individual tracks. I guess we should also amend that? I think
the complete album including the tracks is deleted, or is that not true?

- `move` command: I think the same is true for this command. If `-a` is
  given, the queried albums including all tracks are moved.

- `update` command: The `-a` flag is not explained here.
2021-12-03 22:36:48 +01:00
Adrian Sampson f315a13a1b Merge pull request #4179 from tummychow/unimported-default
Add default for unimported.ignore_subdirectories
2021-12-02 07:36:27 -05:00
Adrian Sampson e876c2722b Clarify changelog entry 2021-12-02 07:36:16 -05:00
tummychow 74522b41a9 Add default for unimported.ignore_subdirectories 2021-12-01 10:54:33 -08:00
Adrian Sampson bc898aadd2 Merge pull request #4177 from piu130/master
[Lyrics] Genius uses query param not body
2021-11-30 16:11:11 -05:00
Adrian Sampson 11dc1e6f97 Merge pull request #4175 from smichel17/gitignore
Add lib64 to .gitignore
2021-11-30 14:30:12 -05:00
Ramon Boss 78c95413dd doc: add changelog entry for genius lyrics fix 2021-11-30 20:17:46 +01:00
Ramon Boss 69fe1d1baf fix: use query param for genius search 2021-11-30 20:10:56 +01:00
Stephen Michel 4e30699aa7 Exclude lib64 from git whether folder or symlink
Sometimes lib64 is a symlink to lib/; the previous `lib64/' entry didn't
catch this.
2021-11-30 11:49:24 -05:00
Adrian Sampson 3c7853712f Require confuse >= 1.5.0
Fixes #4167.
2021-11-28 08:43:23 -05:00
Adrian Sampson e3f4e19298 Version bump: v1.6.1 2021-11-27 11:38:48 -05:00
Adrian Sampson 19371805e7 Add date to changelog v1.6.0 2021-11-27 11:35:57 -05:00
Adrian Sampson 080d577206 Clean up changelog 2021-11-27 11:33:08 -05:00
Adrian Sampson f33606c87a Switch version to 1.6.0
Especially with the Python version changes, it seems like this justifies
more than a 0.0.1 bump.
2021-11-27 11:17:14 -05:00
Adrian Sampson 8eee0bbd8a Slight changelog reordering 2021-11-26 15:52:39 -05:00
Adrian Sampson c03e0ebef0 Merge pull request #4160 from beetbox/filter-img-filename
aura: Sanitize filenames in image IDs
2021-11-26 15:50:32 -05:00
Adrian Sampson 4e692095eb Changelog for #4160 2021-11-26 15:39:30 -05:00
Adrian Sampson 1fad3d01ae aura: Sanitize filenames in image IDs
When constructing paths to image files to serve, we previously spliced
strings from URL requests directly into the path to be opened. This is
theoretically worrisome because it could allow clients to read other
files that they are not supposed to read.

I'm not actually sure this is a real security problem because Flask's
URL parsing should probably rule out IDs that have `/` in them anyway.
But out of an abundance of caution, this now prevents paths from showing
up in IDs at all---and also prevents `.` and `..` from being valid
names.
2021-11-26 15:35:07 -05:00
Adrian Sampson 54f4ccb1c5 Merge pull request #4155 from beetbox/album_removed_event 2021-11-22 21:00:54 -05:00
David Logie 9c9f7eb1ed Move the plugins.send() call into the Album.remove() method. 2021-11-22 22:02:09 +00:00
David Logie 73c7cc86fe Add an 'album_removed' event.
This works similarly to the existing 'item_removed' event but is called
with an `Album` object.
2021-11-22 20:56:50 +00:00
Adrian Sampson ca1974ff86 Merge pull request #4154 from catap/missed-py7zr
Add missed `py7zr` dependency
2021-11-21 20:20:22 -05:00