mirror of
https://github.com/beetbox/beets.git
synced 2025-12-06 16:42:42 +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 subprocess
|
||||
from itertools import chain
|
||||
from typing import AnyStr, Tuple, Optional, Mapping, Union
|
||||
from PIL import Image
|
||||
from typing import AnyStr, Tuple, Optional, Mapping, Union, TYPE_CHECKING
|
||||
from urllib.parse import urlencode
|
||||
|
||||
from beets import logging, util
|
||||
from beets.util import displayable_path, get_temp_filename, syspath
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from PIL import Image
|
||||
|
||||
PROXY_URL = "https://images.weserv.nl/"
|
||||
|
||||
log = logging.getLogger("beets")
|
||||
|
|
|
|||
Loading…
Reference in a new issue