mirror of
https://github.com/Cp0204/quark-auto-save.git
synced 2026-01-16 01:10:44 +08:00
Compare commits
5 Commits
54950ea7e2
...
d7ebd056aa
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d7ebd056aa | ||
|
|
49d3994372 | ||
|
|
f15394e1ab | ||
|
|
db90086dca | ||
|
|
35e9071028 |
@ -6338,3 +6338,64 @@ body .selectable-files tr.selected-file:has([style*="white-space: normal"]) .fil
|
||||
#fileSelectModal[data-modal-type="preview"] .table td.col-rename > div[style*="white-space: normal"][style*="word-break: break-word"] {
|
||||
margin-bottom: 7.5px !important; /* 任务列表页面展开状态下边距增加0.5px */
|
||||
}
|
||||
|
||||
/* 选择需转存的文件夹模态框重命名列 × 样式 */
|
||||
#fileSelectModal[data-modal-type="source"] .episode-x {
|
||||
position: relative;
|
||||
top: 0.5px; /* 下移0.5px */
|
||||
display: inline;
|
||||
margin-right: 2px;
|
||||
}
|
||||
|
||||
/* 选择需转存的文件夹模态框重命名列无法识别剧集编号样式 */
|
||||
#fileSelectModal[data-modal-type="source"] .episode-number-text {
|
||||
position: relative;
|
||||
top: 1.5px; /* 下移1.5px */
|
||||
display: inline-block;
|
||||
left: 0px; /* 右移2px */
|
||||
}
|
||||
|
||||
/* 选择起始文件模态框重命名列 × 样式 */
|
||||
#fileSelectModal[data-modal-type="start-file"] .episode-x {
|
||||
position: relative;
|
||||
top: 0.5px; /* 下移0.5px */
|
||||
display: inline;
|
||||
margin-right: 2px;
|
||||
}
|
||||
|
||||
/* 选择起始文件模态框重命名列无法识别剧集编号样式 */
|
||||
#fileSelectModal[data-modal-type="start-file"] .episode-number-text {
|
||||
position: relative;
|
||||
top: 1.5px; /* 下移1.5px */
|
||||
display: inline-block;
|
||||
left: 0px; /* 右移2px */
|
||||
}
|
||||
|
||||
/* 任务列表、文件整理、影视发现页面的命名预览模态框表头样式 */
|
||||
#fileSelectModal[data-modal-type="preview"] .table th.col-filename,
|
||||
#fileSelectModal[data-modal-type="preview-filemanager"] .table th.col-filename {
|
||||
/* 文件名列的表头样式 */
|
||||
font-weight: 600 !important;
|
||||
font-family: inherit !important;
|
||||
letter-spacing: normal !important;
|
||||
padding-top: 4px !important;
|
||||
}
|
||||
|
||||
#fileSelectModal[data-modal-type="preview"] .table th.col-rename,
|
||||
#fileSelectModal[data-modal-type="preview-filemanager"] .table th.col-rename {
|
||||
/* 命名预览列的表头样式 */
|
||||
font-weight: 600 !important;
|
||||
font-family: inherit !important;
|
||||
letter-spacing: normal !important;
|
||||
padding-top: 4px !important;
|
||||
}
|
||||
|
||||
/* 确保其他表头样式不受影响 */
|
||||
#fileSelectModal .table th.col-size,
|
||||
#fileSelectModal .table th.col-date,
|
||||
#fileSelectModal .table th.col-action {
|
||||
/* 保持原有的表头样式 */
|
||||
font-weight: normal;
|
||||
font-family: inherit;
|
||||
letter-spacing: normal;
|
||||
}
|
||||
|
||||
@ -230,13 +230,15 @@ def sort_file_by_name(file):
|
||||
segment_base = 0 # 基础值:上=1, 中=2, 下=3
|
||||
sequence_number = 0 # 序号值:用于处理上中下后的数字或中文数字序号
|
||||
|
||||
# 严格匹配上中下标记:只有当上中下与集期话部篇相邻时才认为是段落标记
|
||||
# 避免误匹配文件内容中偶然出现的上中下字符
|
||||
if re.search(r'上[集期话部篇]|[集期话部篇]上', filename):
|
||||
# 严格匹配上中下标记:支持多种格式
|
||||
# 1. 直接相邻:上集、期上
|
||||
# 2. 括号分隔:期(上)、集(中)
|
||||
# 3. 其他分隔符:期-上、集_中
|
||||
if re.search(r'上[集期话部篇]|[集期话部篇]上|[集期话部篇]\s*[((]\s*上\s*[))]|[集期话部篇]\s*[-_·丨]\s*上', filename):
|
||||
segment_base = 1
|
||||
elif re.search(r'中[集期话部篇]|[集期话部篇]中', filename):
|
||||
elif re.search(r'中[集期话部篇]|[集期话部篇]中|[集期话部篇]\s*[((]\s*中\s*[))]|[集期话部篇]\s*[-_·丨]\s*中', filename):
|
||||
segment_base = 2
|
||||
elif re.search(r'下[集期话部篇]|[集期话部篇]下', filename):
|
||||
elif re.search(r'下[集期话部篇]|[集期话部篇]下|[集期话部篇]\s*[((]\s*下\s*[))]|[集期话部篇]\s*[-_·丨]\s*下', filename):
|
||||
segment_base = 3
|
||||
|
||||
# 统一的序号提取逻辑,支持多种分隔符和格式
|
||||
|
||||
Loading…
Reference in New Issue
Block a user