1 parent
32a7e28090
commit
d73eeba1e7
1 file changed
+4
-1
@@ -20,6 +20,9 @@ logger = logging.getLogger('biliup')
|
||||
|
||||
class DownloadBase:
|
||||
def __init__(self, fname, url, suffix=None, opt_args=None):
|
||||
if not suffix:
|
||||
logger.error(f'检测到suffix不存在,请补充后缀')
|
||||
return
|
||||
self.danmaku = None
|
||||
self.room_title = None
|
||||
if opt_args is None:
|
||||
@@ -29,7 +32,7 @@ class DownloadBase:
|
||||
self.fname = fname
|
||||
self.url = url
|
||||
# 录制后保存文件格式而非源流格式 对应原配置文件format 仅ffmpeg及streamlink生效
|
||||
self.suffix = suffix
|
||||
self.suffix = suffix.lower()
|
||||
self.title = None
|
||||
self.live_cover_path = None
|
||||
self.database_row_id = 0
|
||||
|
||||
Reference in new issue
Block a user