This commit is contained in:
jxxghp 2023-09-28 20:06:03 +08:00
parent b3b09f3c03
commit 087fcd340a
2 changed files with 3 additions and 2 deletions

View File

@ -1,6 +1,6 @@
import re import re
from dataclasses import dataclass, field, asdict from dataclasses import dataclass, field, asdict
from typing import List, Dict, Any from typing import List, Dict, Any, Tuple
from app.core.config import settings from app.core.config import settings
from app.core.meta import MetaBase from app.core.meta import MetaBase
@ -272,7 +272,7 @@ class MediaInfo:
初始化媒信息 初始化媒信息
""" """
def __directors_actors(tmdbinfo: dict): def __directors_actors(tmdbinfo: dict) -> Tuple[List[dict], List[dict]]:
""" """
查询导演和演员 查询导演和演员
:param tmdbinfo: TMDB元数据 :param tmdbinfo: TMDB元数据

View File

@ -347,6 +347,7 @@ class SystemUtils:
# 创建 Docker 客户端 # 创建 Docker 客户端
client = docker.DockerClient(base_url='tcp://127.0.0.1:38379') client = docker.DockerClient(base_url='tcp://127.0.0.1:38379')
# 获取当前容器的 ID # 获取当前容器的 ID
container_id = None
with open('/proc/self/mountinfo', 'r') as f: with open('/proc/self/mountinfo', 'r') as f:
data = f.read() data = f.read()
index_resolv_conf = data.find("resolv.conf") index_resolv_conf = data.find("resolv.conf")