mousecloak
438262844a
Fixed style violation
2022-01-07 21:39:19 -08:00
Adrian Sampson
c38f10e16e
Merge branch 'master' into convert-logging-respect-quiet
2022-01-07 21:34:19 -08:00
mousecloak
0132067a29
Fix @unittest.skipIf annotations to ignore only win32
2022-01-07 21:29:44 -08:00
mousecloak
ec06694097
Makes the import converter respect the quiet and pretend flags.
...
When the delete_originals was set, beets would print the following, regardless
of the presence of the quiet parameter:
convert: Removing original file /path/to/file.ext
This commit ensures that the log is only printed when quiet is not present.
2022-01-07 21:29:43 -08:00
Adrian Sampson
493a503397
Merge pull request #4182 from sumpfralle/patch-1
...
beetsplug/web: fix translation of query path
2022-01-06 14:37:19 -08:00
Lars Kruse
a09c80447a
beetsplug/web: fix translation of query path
...
The routing map translator `QueryConverter` was misconfigured:
* decoding (parsing a path): splitting with "/" as tokenizer
* encoding (translating back to a path): joining items with "," as separator
This caused queries containing more than one condition (separated by a
slash) to return an empty result. Queries with only a single condition
were not affected.
Instead the encoding should have used the same delimiter (the slash) for the
backward conversion.
How to reproduce:
* query: `/album/query/albumartist::%5Efoo%24/original_year%2B/year%2B/album%2B`
* resulting content in parsed argument `queries` in the `album_query` function:
* previous (wrong): `['albumartist::^foo$,original_year+,year+,album+']`
* new (correct): `['albumartist::^foo$', 'original_year+', 'year+', 'album+']`
2022-01-06 22:00:26 +01:00
Adrian Sampson
686838856a
Two more syspath calls
2022-01-05 16:15:39 -08:00
Adrian Sampson
bb13f37e59
Provide consistent types to NamedTemporaryFile
2022-01-03 10:16:39 -08:00
Adrian Sampson
5d0442f094
Merge pull request #4190 from patrick-nicholson/limit-plugin
...
Limit plugin
2021-12-27 17:01:09 -08:00
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
patrick-nicholson
5b34797056
sigh
2021-12-27 14:51:04 -05:00
patrick-nicholson
27c2b79f01
Finally learning to read GitHub.
2021-12-27 13:39:35 -05:00
patrick-nicholson
c3829c52c8
Lint ignore.
2021-12-27 13:38:20 -05:00
patrick-nicholson
a3754f7592
Test failing due to unidentified argument processing issue; replacing with API calls gives expected results.
...
Fixed some linting issues.
2021-12-27 13:26:38 -05:00
patrick-nicholson
6c64ab6df1
Noticed GitHub linter wanted a docstring.
2021-12-27 12:11:18 -05:00
patrick-nicholson
086fec0096
Fixed truediv typo (switched to intdiv).
...
Fixed linter objections.
2021-12-26 21:58:45 -05:00
patrick-nicholson
126b4e94cf
Fixing doc typo and adding limit to toctree.
2021-12-26 21:57:29 -05:00
patrick-nicholson
24bc4e77e2
Being more careful about truthiness and catching negative values (they could be supported, but it's probably not intuitive).
...
Moving command into single plugin as suggested.
Fixing linter objections.
2021-12-26 21:56:57 -05: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
Duncan Overbruck
0456c8f790
test multiple items in test_modify_formatted
2021-12-15 14:32:11 +01:00
Duncan Overbruck
795bc2efc1
compile modify templates only once
2021-12-15 14:31:15 +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
Patrick Nicholson
9838369f02
limit added to changelog
2021-12-07 21:32:39 -05:00
Patrick Nicholson
0ac38c110e
Tests for limit plugin
2021-12-07 21:27:57 -05:00
Patrick Nicholson
cdb6b21f1a
Adding limit and its documentation
2021-12-07 18:47:55 -05: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