Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tvg-id #69

Closed
NezbednikSK opened this issue Jul 24, 2021 · 30 comments
Closed

tvg-id #69

NezbednikSK opened this issue Jul 24, 2021 · 30 comments
Assignees

Comments

@NezbednikSK
Copy link
Contributor

Uhh, so I would like your opinion.
I added Markíza, Doma and Dajto.
They only provide an SD stream for free and want you to pay for the HD stream.
Technically, this is not illegal as it is streamed off their servers.
Should the channels be removed / kept in SD?

@freetv332
Copy link
Contributor

Can you access the HD streams without paying?

@NezbednikSK
Copy link
Contributor Author

Yep

@NezbednikSK
Copy link
Contributor Author

The URLs are formatted the same as for some other channels, so with editing the URLs you can access them without paying.
Normally, you can only access the SD one for free. IMO we should remove them, as they are region-locked and the channel is officially pay-tv but their site offers a SD stream.

Let me make a PR that removes them.

@NezbednikSK
Copy link
Contributor Author

  • Would you mind me rewriting the RTVS forwarder in PHP? RunKit is just so slow, ;-)

@NezbednikSK
Copy link
Contributor Author

Also what about IDs for channels? tvg-id, I mean

@freetv332
Copy link
Contributor

you mean channel numbers?

@ghost
Copy link

ghost commented Aug 17, 2021

Nope, i meant IDs. They are used to show the correct EPG. Might be a good idea to implement them somehow, as (G), (S) and (Y) break them when not specified.

@NezbednikSK NezbednikSK changed the title Regarding slovak channels, again tvg-id Aug 18, 2021
@NezbednikSK
Copy link
Contributor Author

Oh yeah it is me, my alt account,

@freetv332
Copy link
Contributor

It sounds like a good idea, but where do you find these IDs?

@NezbednikSK
Copy link
Contributor Author

@freetv332
Copy link
Contributor

OK let's add them. You can start modifying the lists, I'll adapt the program to include them in the playlist.

@NezbednikSK
Copy link
Contributor Author

Could you try making the script check if the ID is specified? Y'know, adding IDs to 700+ channels is quite the task.

@ghost
Copy link

ghost commented Sep 26, 2021

@ghost
Copy link

ghost commented Sep 26, 2021

Could you try making the script check if the ID is specified? Y'know, adding IDs to 700+ channels is quite the task.

Script for format like in this pull request #96

#!/usr/bin/env python3
import os
import re
for filename in sorted(os.listdir(".")):
    if filename == "README.md" or not filename.endswith(".md"):
        continue
    with open(filename, encoding='utf-8') as markup_file:
        group = filename.replace(".md", "").title()
        for line in markup_file:
            if "<h1>" in line.lower() and "</h1>" in line.lower():
                group = re.sub('<[^<>]+>', '', line.strip())
            if not "[>]" in line:
                continue
            split = line.split("|")
            try:
                epg_line = split[5].strip()
            except:
                epg_line = ''
            if not epg_line:
                print("EPG not found in file '{}' for channel '{}'".format(filename, split[2].strip()))

@NezbednikSK
Copy link
Contributor Author

nice one!

@NezbednikSK NezbednikSK mentioned this issue May 23, 2022
@KAMI911
Copy link
Collaborator

KAMI911 commented Jul 22, 2022

Could we add EPG support? AFAIK we have to add an another field to md files. I can manage to add that field if it is in the channel line and change the python code too.
Should I create a separated epg branch for testing and implementing, or an cloned repo? Could someone add EPG ids to *.md files?
Thanks!

@NezbednikSK
Copy link
Contributor Author

I'm up!

@KAMI911
Copy link
Collaborator

KAMI911 commented Jul 23, 2022

I started to add EPG id / tvg-id here:
https://github.com/Free-TV/IPTV/tree/epg
Playlist is here:
https://raw.githubusercontent.com/Free-TV/IPTV/epg/playlist.m3u8
Should I add something more like links to EPG XML files somehow, or this is enough to start use the tvg-id? The updated python script can work with and without EPG id.
I added tvg-id to few Hungarian channels. What is your opinion? What is the next task? If this provides a good solution and we got a few lists with tvg-id I can merge it to the master.

@NezbednikSK
Copy link
Contributor Author

sounds good! i guess it's a matter of adding IDs for every channel now :)

@NezbednikSK
Copy link
Contributor Author

and since they're IDs, https://github.com/iptv-org/epg could be used alongside the playlist to show the EPG itself

@KAMI911
Copy link
Collaborator

KAMI911 commented Jul 25, 2022

@NezbednikSK: I updated the Hungarian file, could you add more for testing?

@KAMI911
Copy link
Collaborator

KAMI911 commented Jul 25, 2022

Added x-tvg-url support.
@NezbednikSK

@NezbednikSK
Copy link
Contributor Author

Sure!

@NezbednikSK
Copy link
Contributor Author

#184

infid0 pushed a commit that referenced this issue Jul 26, 2022
@KAMI911
Copy link
Collaborator

KAMI911 commented Jul 26, 2022

Thank you!

@KAMI911
Copy link
Collaborator

KAMI911 commented Jul 26, 2022

It seems it is working with external EPG. Could you add more channels tvg-ids?

@KAMI911
Copy link
Collaborator

KAMI911 commented Jul 27, 2022

Added 3a220e1
@NezbednikSK , @freetv332 , @riqueenz
Could you contribute additional EPG ids?
I used https://iptv-org.github.io/ page and the search on this page.
It would be nice to finish this ASAP then merge into the master branch. What are your opinions?

@NezbednikSK
Copy link
Contributor Author

on it

@KAMI911
Copy link
Collaborator

KAMI911 commented Sep 19, 2022

Do you mind if I close this issue? Since the main task has solved to have EPG id support.

@NezbednikSK
Copy link
Contributor Author

i guess

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants