Commit Graph
177 Commits
Author SHA1 Message Date
Šarūnas Nejus 6241139600 typing: define explicit optparse.Values for each command 2026-08-19 23:57:05 +01:00
Šarūnas Nejus 4aa5aa62ac typing: fix types in beetsplug._utils.art 2026-08-18 23:20:38 +01:00
Šarūnas Nejus 26713de0d6 typing: add types to embedart 2026-08-18 23:20:38 +01:00
Sebastian Mohr 54a2bd20e1 Removed This file is part of beets... headers. 2026-06-29 11:20:15 +02:00
Sebastian Mohr adfb73b66d Run ruff format 2026-05-20 16:53:06 +02:00
Šarūnas Nejus 30ab81eb5b Extract UserError from beets.ui to a new beets.exceptions module.
Update all references in core, plugins, and tests to import UserError
from the new location. This centralizes exception handling and improves
code organization.
2026-05-16 11:18:51 +01:00
Eric Masseran 8889c4ab47 Clear art on import 2025-11-10 22:38:37 +01:00
Eric Masseran 85168ba7fc Remove wrong import 2025-11-10 19:20:42 +01:00
Eric Masseran dd824e69b2 Clearart: Do not update files without an embedded image 2025-11-10 19:13:25 +01:00
Sebastian Mohr a796d6d799 New import location for art.py 2025-09-20 14:01:38 +02:00
Šarūnas Nejus d6b6ac3387 Replace logging f-strings with arguments 2025-08-30 23:10:21 +01:00
Šarūnas Nejus d93ddf8dd4 Do not use explicit indices for logging args when not needed 2025-08-30 23:10:21 +01:00
Šarūnas Nejus 4a361bd501 Replace format calls with f-strings 2025-08-30 18:42:26 +01:00
Šarūnas Nejus 7cada1c9f8 Remove no-op decargs 2025-07-08 11:37:33 +01:00
Šarūnas Nejus c490ac5810 Fix formatting 2025-05-07 10:41:01 +01:00
Serene-Arc a6e5201ff3 Apply formatting tools to all files
This is 'the big one', which touches every file so that it all conforms
to the given standard.
2023-10-22 09:53:18 +10:00
wisp3rwind 29c21860a9 add missing syspath conversions (2/3, beetsplug) 2023-07-16 10:17:40 +02:00
Alok Saboo bb2ce02e07 Remove logging 2023-04-18 20:54:43 -04:00
Alok Saboo 0492f1f214 Address comments 2023-04-14 08:10:13 -04:00
Alok Saboo 1e3fee8495 Use temp folder instead of cwd 2023-04-14 08:08:59 -04:00
Alok Saboo 3a1e4bd845 Remove temporary logging 2023-04-09 14:07:55 -04:00
Alok Saboo 8357617f02 Change indentation 2023-04-09 14:02:10 -04:00
Alok Saboo 34a4e7be5f Move away from PIL and use mimetypes instead 2023-04-09 13:58:26 -04:00
Alok Saboo 99ca3e96d4 Add more error handling for the img.save function 2023-04-09 09:58:31 -04:00
Alok Saboo 9c3f4a4ac8 Change image format to PNG 2023-04-08 22:03:59 -04:00
Alok Saboo b3008b74b8 Remove unused imports 2023-04-08 21:12:23 -04:00
Alok Saboo 93f4068cca Address review comments 2023-04-08 21:01:10 -04:00
Alok Saboo 3b39a4fe66 Raise OSError 2023-03-28 13:23:26 -04:00
Alok Saboo 2fcdb8c2ca Add FilesystemError handling 2023-03-28 09:22:51 -04:00
Alok Saboo a4b4df8b12 More error handling 2023-03-27 19:28:09 -04:00
Alok Saboo 2e2a3bf223 Add additional error handling 2023-03-27 11:56:26 -04:00
Alok Saboo 2060e047d2 Update parser options 2023-03-19 10:21:32 -04:00
Alok Saboo 2d942ce722 Move import inside the function 2023-03-19 09:15:38 -04:00
Alok Saboo 59d5d23bb3 Update embedart.py 2023-03-18 19:12:29 -04:00
Alok Saboo 64c2ae138d Update embedart.py 2023-03-18 19:11:24 -04:00
Alok Saboo 81835b0721 Update embedart.py 2023-03-18 19:08:46 -04:00
Alok Saboo 4dd165495f Update embedart.py 2023-03-18 19:00:28 -04:00
Alok Saboo feeeb4080c Update embedart.py 2023-03-18 18:58:32 -04:00
Alok Saboo f051d67947 Add option to import using URL 2023-03-18 18:23:53 -04:00
Andrew Rogl 1ec87a3bdd pyupgrade beetsplug and tests
All tests working
More tidy up to be done
2021-08-26 19:12:51 +10:00
Daniel Barber 036202e1c5 Default quality to 0 which means don't specify
From the ImageMagick docs: "The default is to use the estimated quality
of your input image if it can be determined, otherwise 92."

In order to get the original behaviour we need to conditional add the
quality parameter to the `magick` call. The quality range can be
anything from 1 to 100, which gives us the convenience of using 0 to
specify no specific quality level.
2020-02-18 14:50:57 -05:00
Daniel Barber 86946ad4b7 Allow the quality to be set for embedded/fetched cover art 2020-02-17 21:12:20 -05:00
Reg 21145731e4 Fixed docstring typo. 2018-12-20 18:19:00 +01:00
konman2 578143ae12 updated to pass pep8 checks 2017-10-07 21:28:33 -07:00
konman2 fdeef05cc9 clearart asks for permission before deleting embedded albumart 2017-10-07 20:42:01 -07:00
Adrian Sampson 8ce7b49ed8 Default to confirm 2017-03-06 23:45:29 -05:00
Adrian Sampson f0f55d11ec Rename _confirmation to _confirm 2017-03-06 23:43:24 -05:00
Adrian Sampson f985970b25 Simplify scope of _confirmation and formatting 2017-03-06 23:42:20 -05:00
Adrian Sampson 3a436bb33d Remove explicit format
We now use the default formats from the configuration.
2017-03-06 23:38:16 -05:00
Adrian Sampson eddbab63bd Remove extraneous blank line 2017-03-06 23:37:33 -05:00