mirror of
https://github.com/beetbox/beets.git
synced 2025-12-06 08:39:17 +01:00
artresizer: make import conditional
This commit is contained in:
parent
7acfe8932a
commit
c90ff27315
1 changed files with 4 additions and 2 deletions
|
|
@ -22,13 +22,15 @@ import platform
|
||||||
import re
|
import re
|
||||||
import subprocess
|
import subprocess
|
||||||
from itertools import chain
|
from itertools import chain
|
||||||
from typing import AnyStr, Tuple, Optional, Mapping, Union
|
from typing import AnyStr, Tuple, Optional, Mapping, Union, TYPE_CHECKING
|
||||||
from PIL import Image
|
|
||||||
from urllib.parse import urlencode
|
from urllib.parse import urlencode
|
||||||
|
|
||||||
from beets import logging, util
|
from beets import logging, util
|
||||||
from beets.util import displayable_path, get_temp_filename, syspath
|
from beets.util import displayable_path, get_temp_filename, syspath
|
||||||
|
|
||||||
|
if TYPE_CHECKING:
|
||||||
|
from PIL import Image
|
||||||
|
|
||||||
PROXY_URL = "https://images.weserv.nl/"
|
PROXY_URL = "https://images.weserv.nl/"
|
||||||
|
|
||||||
log = logging.getLogger("beets")
|
log = logging.getLogger("beets")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue