Skip to content

Commit 83c2431

Browse files
AmPlaceCopilot
andcommitted
refactor: 为部分电台添加副标题
Co-authored-by: Copilot <copilot@github.com>
1 parent 918d580 commit 83c2431

2 files changed

Lines changed: 25 additions & 15 deletions

File tree

backend/main.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -81,16 +81,16 @@ def get_cdn_headers_for_station(station_id: str) -> dict[str, str]:
8181
)
8282
# 静态电台配置(与前端 stations.js 同步)
8383
STATIC_STATIONS = [
84-
{"id": "hitfm", "name": "Hit FM 台北", "logoText": "H", "logoUrl": "/logos/hitfm.png", "tags": ["music", "TW"]},
85-
{"id": "hitfm_taichung", "name": "Hit FM 台中", "logoText": "台中", "logoUrl": "/logos/hitfm.png", "tags": ["music", "TW"]},
86-
{"id": "hitfm_tainan", "name": "Hit FM 台南", "logoText": "台南", "logoUrl": "/logos/hitfm.png", "tags": ["music", "TW"]},
87-
{"id": "hitfm_yilan", "name": "Hit FM 宜兰", "logoText": "宜兰", "logoUrl": "/logos/hitfm.png", "tags": ["music", "TW"]},
88-
{"id": "hitfm_huadong", "name": "Hit FM 花东", "logoText": "花东", "logoUrl": "/logos/hitfm.png", "tags": ["music", "TW"]},
89-
{"id": "pop917", "name": "POP Radio 91.7", "logoText": "POP", "logoUrl": "/logos/pop917.jpg", "tags": ["music", "TW"]},
90-
{"id": "qz_fm889", "name": "泉州新闻综合 88.9", "logoText": "FM889", "logoUrl": "/logos/qz889.png", "tags": ["CN", "福建", "news"]},
91-
{"id": "qz_fm904", "name": "泉州交通广播 90.4", "logoText": "FM904", "logoUrl": "/logos/qz904.png", "tags": ["CN", "福建", "news"]},
92-
{"id": "qz_fm1059", "name": "泉州刺桐之声 105.9", "logoText": "FM1059", "logoUrl": "/logos/qz1059.png", "tags": ["CN", "福建", "talk"]},
93-
{"id": "qz_fm923", "name": "泉州经济生活 92.3", "logoText": "FM923", "logoUrl": "/logos/qz923.png", "tags": ["CN", "福建", "news"]},
84+
{"id": "hitfm", "name": "Hit FM 台北", "logoText": "H", "logoUrl": "/logos/hitfm.png", "subtitle": "FM 107.7", "tags": ["music", "TW"]},
85+
{"id": "hitfm_taichung", "name": "Hit FM 台中", "logoText": "台中", "logoUrl": "/logos/hitfm.png", "subtitle": "FM 91.5", "tags": ["music", "TW"]},
86+
{"id": "hitfm_tainan", "name": "Hit FM 台南", "logoText": "台南", "logoUrl": "/logos/hitfm.png", "subtitle": "FM 90.1", "tags": ["music", "TW"]},
87+
{"id": "hitfm_yilan", "name": "Hit FM 宜兰", "logoText": "宜兰", "logoUrl": "/logos/hitfm.png", "subtitle": "FM 97.1", "tags": ["music", "TW"]},
88+
{"id": "hitfm_huadong", "name": "Hit FM 花东", "logoText": "花东", "logoUrl": "/logos/hitfm.png", "subtitle": "FM 107.7", "tags": ["music", "TW"]},
89+
{"id": "pop917", "name": "POP Radio", "logoText": "POP", "logoUrl": "/logos/pop917.jpg", "subtitle": "FM 91.7", "tags": ["music", "TW"]},
90+
{"id": "qz_fm889", "name": "泉州新闻综合", "logoText": "FM889", "logoUrl": "/logos/qz889.png", "subtitle": "FM 88.9", "tags": ["CN", "福建", "news"]},
91+
{"id": "qz_fm904", "name": "泉州交通广播", "logoText": "FM904", "logoUrl": "/logos/qz904.png", "subtitle": "FM 90.4", "tags": ["CN", "福建", "news"]},
92+
{"id": "qz_fm1059", "name": "泉州刺桐之声", "logoText": "FM1059", "logoUrl": "/logos/qz1059.png", "subtitle": "FM 105.9", "tags": ["CN", "福建", "talk"]},
93+
{"id": "qz_fm923", "name": "泉州经济生活", "logoText": "FM923", "logoUrl": "/logos/qz923.png", "subtitle": "FM 92.3", "tags": ["CN", "福建", "news"]},
9494
]
9595

9696
# 从 STATIC_STATIONS 的 tags 动态提取各地区电台 ID(不硬编码)

frontend/src/config/stations.js

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,69 +10,79 @@ export const stationList = [
1010
name: 'Hit FM 台北',
1111
logoText: 'H',
1212
logoUrl: '/logos/hitfm.png',
13+
subtitle: 'FM 107.7',
1314
tags: ['music', 'TW'],
1415
},
1516
{
1617
id: 'hitfm_taichung',
1718
name: 'Hit FM 台中',
1819
logoText: '台中',
1920
logoUrl: '/logos/hitfm.png',
21+
subtitle: 'FM 91.5',
2022
tags: ['music', 'TW'],
2123
},
2224
{
2325
id: 'hitfm_tainan',
2426
name: 'Hit FM 台南',
2527
logoText: '台南',
2628
logoUrl: '/logos/hitfm.png',
29+
subtitle: 'FM 90.1',
2730
tags: ['music', 'TW'],
2831
},
2932
{
3033
id: 'hitfm_yilan',
3134
name: 'Hit FM 宜兰',
3235
logoText: '宜兰',
3336
logoUrl: '/logos/hitfm.png',
37+
subtitle: 'FM 97.1',
3438
tags: ['music', 'TW'],
3539
},
3640
{
3741
id: 'hitfm_huadong',
3842
name: 'Hit FM 花东',
3943
logoText: '花东',
4044
logoUrl: '/logos/hitfm.png',
45+
subtitle: 'FM 107.7',
4146
tags: ['music', 'TW'],
4247
},
4348
{
4449
id: 'pop917',
45-
name: 'POP Radio 91.7',
50+
name: 'POP Radio',
4651
logoText: 'POP',
4752
logoUrl: '/logos/pop917.jpg',
53+
subtitle: 'FM 91.7',
4854
tags: ['music', 'TW'],
4955
},
5056
{
5157
id: 'qz_fm889',
52-
name: '泉州新闻综合 88.9',
58+
name: '泉州新闻综合',
5359
logoText: 'FM889',
5460
logoUrl: '/logos/qz889.png',
61+
subtitle: 'FM 88.9',
5562
tags: ['CN', '福建', 'news'],
5663
},
5764
{
5865
id: 'qz_fm904',
59-
name: '泉州交通广播 90.4',
66+
name: '泉州交通广播',
6067
logoText: 'FM904',
6168
logoUrl: '/logos/qz904.png',
69+
subtitle: 'FM 90.4',
6270
tags: ['CN', '福建', 'news'],
6371
},
6472
{
6573
id: 'qz_fm1059',
66-
name: '泉州刺桐之声 105.9',
74+
name: '泉州刺桐之声',
6775
logoText: 'FM1059',
6876
logoUrl: '/logos/qz1059.png',
77+
subtitle: 'FM 105.9',
6978
tags: ['CN', '福建', 'talk'],
7079
},
7180
{
7281
id: 'qz_fm923',
73-
name: '泉州经济生活 92.3',
82+
name: '泉州经济生活',
7483
logoText: 'FM923',
7584
logoUrl: '/logos/qz923.png',
85+
subtitle: 'FM 92.3',
7686
tags: ['CN', '福建', 'news'],
7787
}
7888
]

0 commit comments

Comments
 (0)