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
Adrian Sampson
430595825f
Rename parameter to be more sensible
...
We don't just take items; they're either items or albums.
2017-03-06 23:37:04 -05:00
Adrian Sampson
c8499eb56d
_confirmation does not need to be a closure
2017-03-06 23:34:53 -05:00
Adrian Sampson
1fbbcf65fd
Fix some confusing indentation
2017-03-06 23:29:09 -05:00
Aaron
733c1839fb
Addressed coding style issue.
2017-02-13 02:56:54 -08:00
Aaron
3e13971c54
Some code cleanup/consolidation.
2017-02-13 02:30:01 -08:00
Aaron
d1ac893915
Style changes to pass PEP8 tests.
2017-02-13 01:58:31 -08:00
Aaron
3361aaafda
Embedart plugin asks for confirmation before making changes to item’s artwork.
2017-02-13 01:58:31 -08:00
Johnny Robeson
69c9fb8b07
check dirname result against b'' in fetchart
2016-06-10 02:52:58 -04:00
Adrian Sampson
e54c7eec3d
Standardize __future__ imports without parentheses
...
Since the list is short enough now, we don't need parentheses for the line
wrap. This is a little less ugly.
2016-02-28 15:03:51 -08:00
Adrian Sampson
d53019f9db
Further whitespace fiddling
...
Most commonly, this sticks with:
log.debug(
'some long message here'
)
instead of placing the closing ) at the end of the string literal.
2016-02-28 14:48:10 -08:00
Peter Kessen
53d2c8d9db
Removed unicode_literals from plugins
...
* echonest
* edit
* embedart
* embyupdate
2016-02-20 13:35:54 +01:00
Jack Wilsdon
12cd5306b7
Update copyright dates to 2016
2015-12-30 15:42:06 +00:00
Peter Kessen
3eb8008b11
added encoding as comment in files
...
added line like
# -*- coding: utf-8 -*-
to all files with correct license in header
2015-11-19 18:41:01 +01:00
Adrian Sampson
9f7aa866bd
Use ui.should_write everywhere
...
There sure are a lot of plugins that want to write metadata!
2015-11-07 13:20:09 -08:00
Adrian Sampson
d79d11fb15
Docstring and rewrap for #1675
2015-11-02 16:45:45 -08:00
Adrian Sampson
e84414c822
Fix syntax (and unused variable) in #1675
2015-11-02 16:44:02 -08:00
kooimens
bcef3a7123
Create function remove_artfile
...
Damn it, that was really hard for me:D. First time seriously using python. Please review it carefuly.
2015-11-02 23:56:38 +01:00
kooimens
0257b1077f
Simplify some code
2015-10-30 17:49:57 +01:00
kooimens
0ed98515ad
Embedart: remove_art_file on import
...
Should fix #1662 .
I think the fix is easy. Don't know if it's clean though. Did some tests (+/- 10 albums), all successful. This is the first time I'm using python so please let me know what I should improve:)
2015-10-30 17:04:11 +01:00