LiveConfig 解析 JSON 直播源时忽略 lives 数组中的 urls 字段(5.9.0)
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 65/100
Research direction
Start from the LiveConfig class in the app module and find where the JSON lives array is parsed — the code that reads name, url, type and epg per element. Add handling for the urls array so each entry produces a channel, or emit an explicit error when the format is unrecognised. Verify by loading the JSON snippet from the issue as a live source and confirming the channel list fills instead of spinning; M3U parsing is the known-good path to compare against.
Written by the indexing model from the issue text.
Description
版本:FongMi 5.9.0(fongmi 分支)。
现象:使用 JSON 格式直播源时,若频道写成 {"lives":[{"group":"xxx","urls":["http://..."]}]},应用解析后频道列表为空,表现为一直转圈。
原因:对照源码,LiveConfig 的解析只读取 name/url/type/epg 等字段,lives 数组元素中的 urls 数组被忽略,导致频道未生成。
期望:兼容 urls 数组写法,或在不识别时给出明确提示。
临时方案:改用标准 M3U 单文件订阅,解析和播放均正常。
- Dominant language
- Java
- Stars
- 10.7k
- Forks
- 3.1k
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from FongMi/TV
-
播放的时候画面会卡一下Open
Difficulty 4/5 3-5 days Newbie friendliness 18/100
-
Difficulty 3/5 1-2 days Newbie friendliness 43/100
-
希望收藏夹中能按最新更新排序,方便追剧。May be free again @FongMi claimed this 272 days ago, and no pull request is open. Openenhancement
Similar issues
-
crash
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Modern `HttpServletMcpTransport` does not check `Mcp-Name` when `params.name` or `params.uri` is not a JSON stringPossibly taken @starryeye claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
modelcontextprotocol/java-sdk#1352 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
account bug course exam iris lecture
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day