From 716f030faa27e2e24f2abb97800bfcfe4dc8b466 Mon Sep 17 00:00:00 2001 From: shuaikangzhou <863909694@qq.com> Date: Sun, 17 Dec 2023 20:31:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E6=8C=81=E6=98=BE=E7=A4=BA=E7=BE=A4?= =?UTF-8?q?=E8=81=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/DataBase/micro_msg.py | 2 +- app/DataBase/output_pc.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/DataBase/micro_msg.py b/app/DataBase/micro_msg.py index 043cfce..0cd7e52 100644 --- a/app/DataBase/micro_msg.py +++ b/app/DataBase/micro_msg.py @@ -47,7 +47,7 @@ class MicroMsg: sql = '''SELECT UserName, Alias, Type, Remark, NickName, PYInitial, RemarkPYInitial, ContactHeadImgUrl.smallHeadImgUrl, ContactHeadImgUrl.bigHeadImgUrl FROM Contact INNER JOIN ContactHeadImgUrl ON Contact.UserName = ContactHeadImgUrl.usrName - WHERE Type % 2 = 1 + WHERE (Type % 2 = 1 OR Type=2) AND NickName != '' ORDER BY CASE diff --git a/app/DataBase/output_pc.py b/app/DataBase/output_pc.py index 0330610..e9f026a 100644 --- a/app/DataBase/output_pc.py +++ b/app/DataBase/output_pc.py @@ -4,7 +4,7 @@ import os from re import findall from PyQt5.QtCore import pyqtSignal, QThread from PyQt5.QtWidgets import QFileDialog -from eyed3 import load +# from eyed3 import load from . import msg_db, micro_msg_db from .package_msg import PackageMsg @@ -139,6 +139,7 @@ class Output(QThread): def modify_audio_metadata(audiofile, new_artist): # 修改音频元数据中的“创作者”标签 + return audiofile = load(audiofile) # 检查文件是否有标签