Fix breaking issues

This commit is contained in:
Šarūnas Nejus 2025-07-13 20:06:34 +01:00
parent 4d648510cc
commit 5677f9beee
No known key found for this signature in database
GPG key ID: DD28F6704DBE3435
2 changed files with 3 additions and 2 deletions

View file

@ -28,6 +28,7 @@ from re import Pattern
from typing import TYPE_CHECKING, Any, Generic, TypeVar, Union
from beets import util
from beets.util.units import raw_seconds_short
if TYPE_CHECKING:
from beets.dbcore.db import AnyModel, Model
@ -892,7 +893,7 @@ class DurationQuery(NumericQuery):
if not s:
return None
try:
return util.raw_seconds_short(s)
return raw_seconds_short(s)
except ValueError:
try:
return float(s)

View file

@ -1343,7 +1343,7 @@ def import_func(lib, opts, args: list[str]):
if opts.library:
query = args
paths = []
byte_paths = []
else:
query = None
paths = args