Skip to content

Ready for another rewrite [v2.0]  #39

@odnar-dev

Description

@odnar-dev

hi @Roshan-R ,
i think we can't add new features to termv in it current form, without a whole rewrite.

for now, termv act as a terminal client for iptv-org channels, i think the first step is to make termv independent from iptv-org and that by introducing our own format for files.
for this we can use json file or a simple text file with .termv extension
and store data in it like this: name \t category \t language \t countries \t channelsUrl

random name 	 News 	 English 	 Spain 	 http://domain.com/path/channel.m3u8
listen.moe 	 Radio 	 N/A 	 N/A 	 https://listen.moe/stream

with this, we can add the support of multiple sources with different formats, cause we can download the file process it and convert it into our own format. and also the user can create his own channels list easily by creating a file with .termv extension.

the source list can be loaded form config file with this parameters : source_name, source_url and source_type

"iptv_org_m3u8" "https://iptv-org.github.io/iptv/index.m3u" "m3u8"
"cn_cgtn.m3u" "https://raw.githubusercontent.com/iptv-org/iptv/master/streams/cn_cgtn.m3u" "m3u8"

we will use the source_url to download file from , use source_name as file_name, then call process function based on source_type.
image

image

i created a m3u8 parser using only bash functions, but it slow in large files.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions