Skip to content

Commit e0e89fe

Browse files
committed
添加种子类型列,更新版本号到1.0.5
1 parent e937af4 commit e0e89fe

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

QBRssManager.py

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
from win32con import WM_MOUSEMOVE
1313

1414
# 表头
15-
headers = ['播出时间', '剧集名称', '包含关键字', '排除关键字', '集数修正', '保存路径', 'RSS订阅地址']
15+
headers = ['播出时间', '剧集名称', '包含关键字', '排除关键字', '集数修正', '保存路径', 'RSS订阅地址', '种子类型']
1616

1717
# 配置
1818
config = {}
@@ -53,6 +53,14 @@ def save_config(update_data=True):
5353
data_list_fix.append(row)
5454
data_list = data_list_fix
5555
config['data_list'] = data_list[::]
56+
if len(config['data_list'][0]) == 7:
57+
data_list_fix = []
58+
for x in config['data_list']:
59+
row = x[::] + ['', ]
60+
data_list_fix.append(row)
61+
data_list = data_list_fix
62+
config['data_list'] = data_list[::]
63+
config['column_width_list'] = config['column_width_list'] + [80, ]
5664
except:
5765
pass
5866

@@ -61,7 +69,7 @@ def save_config(update_data=True):
6169
if 'full_window_height' not in config:
6270
config['full_window_height'] = 800
6371
if 'column_width_list' not in config:
64-
column_width_list = [80, 260, 210, 65, 62, 370, 290]
72+
column_width_list = [80, 260, 210, 65, 62, 370, 290, 80]
6573
config['column_width_list'] = column_width_list
6674
if 'center_columns' not in config:
6775
config['center_columns'] = [0, 3, 4]
@@ -111,7 +119,7 @@ class App(QWidget):
111119

112120
def __init__(self):
113121
super().__init__()
114-
self.title = 'qBittorrent 订阅下载规则管理 v1.0.4 by Nriver'
122+
self.title = 'qBittorrent 订阅下载规则管理 v1.0.5 by Nriver'
115123
# 图标
116124
self.setWindowIcon(QtGui.QIcon(resource_path('QBRssManager.ico')))
117125
self.left = 0
@@ -361,7 +369,8 @@ def on_export_click(self):
361369
"mustContain": x[2],
362370
"mustNotContain": x[3],
363371
"savePath": format_path(x[5]),
364-
"affectedFeeds": [x[6], ]
372+
"affectedFeeds": [x[6], ],
373+
"assignedCategory": x[7]
365374
}
366375

367376
output_data[x[0] + ' ' + x[1]] = item

0 commit comments

Comments
 (0)