LiveConfig 解析 JSON 直播源时忽略 lives 数组中的 urls 字段(5.9.0)

Open Beginner friendly
#809 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
65/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
java, json
Domain
data

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from FongMi/TV

All issues in FongMi/TV

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.