dfdsf
This commit is contained in:
10
metadata.py
10
metadata.py
@@ -5,7 +5,7 @@ import sys
|
||||
import shutil
|
||||
import sqlite3
|
||||
import requests
|
||||
from helper.logger import log, debug
|
||||
from SYS.logger import log, debug
|
||||
from urllib.parse import urlsplit, urlunsplit, unquote
|
||||
from collections import deque
|
||||
from pathlib import Path
|
||||
@@ -29,7 +29,7 @@ except ImportError: # pragma: no cover
|
||||
resolve_output_dir = None # type: ignore[assignment]
|
||||
|
||||
try:
|
||||
from helper.utils import sha256_file
|
||||
from SYS.utils import sha256_file
|
||||
except ImportError: # pragma: no cover
|
||||
sha256_file = None # type: ignore[assignment]
|
||||
|
||||
@@ -3215,7 +3215,7 @@ def enrich_playlist_entries(entries: list, extractor: str) -> list:
|
||||
List of enriched entry dicts
|
||||
"""
|
||||
# Import here to avoid circular dependency
|
||||
from helper.download import is_url_supported_by_ytdlp
|
||||
from SYS.download import is_url_supported_by_ytdlp
|
||||
|
||||
if not entries:
|
||||
return entries
|
||||
@@ -3609,7 +3609,7 @@ def scrape_isbn_metadata(isbn: str) -> List[str]:
|
||||
"""Scrape metadata for an ISBN using Open Library API."""
|
||||
new_tags = []
|
||||
try:
|
||||
from helper.http_client import HTTPClient
|
||||
from API.HTTP import HTTPClient
|
||||
import json as json_module
|
||||
|
||||
isbn_clean = isbn.replace('-', '').strip()
|
||||
@@ -3733,7 +3733,7 @@ def scrape_openlibrary_metadata(olid: str) -> List[str]:
|
||||
"""
|
||||
new_tags = []
|
||||
try:
|
||||
from helper.http_client import HTTPClient
|
||||
from API.HTTP import HTTPClient
|
||||
import json as json_module
|
||||
|
||||
# Format: OL9674499M or just 9674499M
|
||||
|
||||
Reference in New Issue
Block a user