We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d06f2fb commit 1b903b2Copy full SHA for 1b903b2
dashboard/src/api/services/live.js
@@ -343,8 +343,16 @@ class LiveService {
343
344
for (const line of lines) {
345
if (line.includes('#genre#')) {
346
- // 分组标记
347
- currentGroupName = line.replace('#genre#', '').trim()
+ // 分组标记 - 格式为 "分组名称,#genre#"
+ const genreIndex = line.indexOf('#genre#')
348
+ if (genreIndex > 0) {
349
+ // 提取逗号前的分组名称
350
+ currentGroupName = line.substring(0, genreIndex).replace(/,$/, '').trim()
351
+ } else {
352
+ // 兼容其他可能的格式
353
+ currentGroupName = line.replace('#genre#', '').trim()
354
+ }
355
+
356
if (!groups.has(currentGroupName)) {
357
groups.set(currentGroupName, {
358
name: currentGroupName,
0 commit comments