XMLTV converter?

SS IPTV App for LG Smart TV discussion
saentist
Ensign
Ensign
Posts: 17
Joined: 08 Apr 2019, 16:48
TV Model: LG UH661V
Bulgaria

XMLTV converter?

Post by saentist »

With software/script you use to convert XMLTV files to be compatible with SSIPTV
In my case I stream 250 channels via TVHeadend with have 7 day's EPG, with is near 35 Megabytes
EPG example

Code: Select all

<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE tv SYSTEM "xmltv.dtd">
<tv generator-info-name="TVHeadend-4.3-1783~gec90d31" source-info-name="tvh-TVServer">
<channel id="7bcc00006a1daf203ac172a27b33014d">
  <display-name>RTL</display-name>
  <display-name>22</display-name>
  <icon src="http://tv.local:8000/l/RTL.png"/>
</channel>
<programme start="20190408170000 +0300" stop="20190408180000 +0300" channel="7bcc00006a1daf203ac172a27b33014d">
  <title lang="bul">Meine Geschichte-Mein Leben</title>
  <desc lang="bul">Dokusoap, D 2018.</desc>
</programme>
<programme start="20190408180000 +0300" stop="20190408183000 +0300" channel="7bcc00006a1daf203ac172a27b33014d">
  <title lang="bul">Freundinnen-Jetzt erst recht</title>
  <desc lang="bul">Dailysoap, D 2019 (Staffel: 1, Folge: 155).</desc>
</programme>
<programme start="20190408183000 +0300" stop="20190408190000 +0300" channel="7bcc00006a1daf203ac172a27b33014d">
  <title lang="bul">Unter uns</title>
  <desc lang="bul">Dailysoap, D 2018.</desc>
</programme>
</tv>


how to convert just to include TITLE only without desc, sub-title, category etc.
and rename hash name to real name

Code: Select all

<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE tv SYSTEM "xmltv.dtd">
<programme start="20190408170000 +0300" stop="20190408180000 +0300" channel="RTL">
  <title lang="bul">Meine Geschichte-Mein Leben</title>
</programme>
<programme start="20190408180000 +0300" stop="20190408183000 +0300" channel="RTL">
  <title lang="bul">Freundinnen-Jetzt erst recht</title>
</programme>
<programme start="20190408183000 +0300" stop="20190408190000 +0300" channel="RTL">
  <title lang="bul">Unter uns</title>
</programme>
</tv>

saentist
Ensign
Ensign
Posts: 17
Joined: 08 Apr 2019, 16:48
TV Model: LG UH661V
Bulgaria

Re: XMLTV converter?

Post by saentist »

Is there any specs of Json EPG used in SS IPTV

Code: Select all

{
   "success": true,
   "list": {
      "54": {
         "1063": [
            [
               1556938800,
               1556942400,
               "Ghost Adventures - The Washoe Club: Final Chapter"
            ],
            [
               1556942400,
               1556946000,
               "Portals to Hell - The Alaskan Hotel"
            ],
            [
               1556946000,
               1556949600,
               "Portals to Hell - Twin City Opera House"
            ],
            [
               1556949600,
               1556953200,
               "Ghost Adventures - The Washoe Club: Final Chapter"
            ],
            [
               1556953200,
               1556956800,
               "Ghost Adventures - Asylum 49"
            ],
            [
               1556956800,
               1556958600,
               "Paid Programming"
            ],
            [
               1556958600,
               1556960400,
               "Paid Programming"
            ],
            [
               1556960400,
               1556962200,
               "Paid Programming"
            ],
            [
               1556962200,
               1556964000,
               "Paid Programming"
            ],
            [
               1556964000,
               1556965800,
               "Paid Programming"
            ],
            [
               1556965800,
               1556967600,
               "Paid Programming"
            ],
            [
               1556967600,
               1556971200,
               "Food Paradise - Apps Download"
            ],
            [
               1556971200,
               1556974800,
               "Food Paradise - Mexican Food Paradise"
            ],
            [
               1556974800,
               1556978400,
               "Food Paradise - Pub Grub"
            ],
            [
               1556978400,
               1556982000,
               "Food Paradise - Burrito Paradise"
            ],
            [
               1556982000,
               1556985600,
               "Food Paradise - Happy Hour"
            ],
            [
               1556985600,
               1556989200,
               "Paranormal Caught on Camera - Encounter at an Abandoned Asylum and More"
            ],
            [
               1556989200,
               1556992800,
               "Paranormal Caught on Camera - A Highly Haunted Hotel in Arkansas and More"
            ],
            [
               1556992800,
               1556996400,
               "Paranormal 911 - Fear The Reaper"
            ],
            [
               1556996400,
               1557000000,
               "Paranormal 911 - Phantom Footsteps"
            ],
            [
               1557000000,
               1557003600,
               "Portals to Hell - Twin City Opera House"
            ],
            [
               1557003600,
               1557007200,
               "Ghost Adventures - Kay's Hollow"
            ],
            [
               1557007200,
               1557010800,
               "Ghost Adventures - Edinburgh Manor"
            ],
            [
               1557010800,
               1557014400,
               "Ghost Adventures - Enchanted Forest"
            ],
            [
               1557014400,
               1557018000,
               "Ghost Adventures - Ogden Possession"
            ],
            [
               1557018000,
               1557021600,
               "Ghost Adventures - Extra Pulses: Pythian Castle"
            ],
            [
               1557021600,
               1557025200,
               "Ghost Adventures - Commander's House"
            ],
            [
               1557025200,
               1557028800,
               "Ghost Adventures - Cape Disappointment"
            ],
            [
               1557028800,
               1557032400,
               "Ghost Adventures - Extra Pulses: Pythian Castle"
            ],
            [
               1557032400,
               1557036000,
               "Ghost Adventures - Commander's House"
            ],
            [
               1557036000,
               1557039600,
               "Ghost Adventures - Cape Disappointment"
            ],
            [
               1557039600,
               1557043200,
               "Ghost Adventures - Ogden Possession"
            ],
            [
               1557043200,
               1557045000,
               "Paid Programming"
            ],
            [
               1557045000,
               1557046800,
               "Paid Programming"
            ],
            [
               1557046800,
               1557048600,
               "Paid Programming"
            ],
            [
               1557048600,
               1557050400,
               "Paid Programming"
            ],
            [
               1557050400,
               1557052200,
               "Paid Programming"
            ],
            [
               1557052200,
               1557054000,
               "Paid Programming"
            ],
            [
               1557054000,
               1557057600,
               "Mysteries at the Museum - Jack and the Goat; Operation Hydra; and Hell on St. Helens"
            ],
            [
               1557057600,
               1557061200,
               "Mysteries at the Museum - Dickens to the Rescue, Check Off to Take Off and Waterlogged Whiskers"
            ],
            [
               1557061200,
               1557064800,
               "Mysteries at the Museum - Hollywood Dog, Legend of Zorro and Up in Arms"
            ],
            [
               1557064800,
               1557068400,
               "Mysteries at the Museum - Murder at Greystone, Paulding Light and Tumbleweed Tycoon"
            ],
            [
               1557068400,
               1557072000,
               "Mysteries at the Museum - Geostorm Inferno, the Typo That Won the War and the Death of Princess Di"
            ],
            [
               1557072000,
               1557075600,
               "The Hindenburg Disaster: A Mysteries at the Museum Special"
            ],
            [
               1557075600,
               1557079200,
               "Alien Encounters in Area 51: A Mysteries at the Museum Special"
            ],
            [
               1557079200,
               1557082800,
               "Mission Declassified - The Hunt for D.B. Cooper"
            ],
            [
               1557082800,
               1557086400,
               "Mission Declassified - The Axeman of New Orleans"
            ],
            [
               1557086400,
               1557090000,
               "America Unearthed - Clues to the Holy Bloodline"
            ],
            [
               1557090000,
               1557093600,
               "America Unearthed - The Holy Bloodline Found"
            ],
            [
               1557093600,
               1557097200,
               "America Unearthed - Great Wall of San Francisco"
            ],
            [
               1557097200,
               1557100800,
               "America Unearthed - Finding Davy Crockett's Grave"
            ],
            [
               1557100800,
               1557108000,
               "America Unearthed - The Templar's American Secrets"
            ],
            [
               1557108000,
               1557111600,
               "Mission Declassified - The Black Dahlia Murder"
            ],
            [
               1557111600,
               1557115200,
               "Mission Declassified - Decoding America's Ufo Secrets"
            ]
         ]
      }
   },
   "capability": false,
   "groups": {
      "1063": []
   }
}

What is meaning in this case of values
"54" and "1063"

User avatar
Eugene
Project Leader
Project Leader
Posts: 5620
Joined: 15 Apr 2013, 22:54
TV Model: LG 47LM960V, LG LB679V
Location: Санкт-Петербург
Been thanked: 18 times
Contact:
Russia

Re: XMLTV converter?

Post by Eugene »

Where did you see this EPG?
It is internal format, you won't be able to use it for your own EPG.

saentist
Ensign
Ensign
Posts: 17
Joined: 08 Apr 2019, 16:48
TV Model: LG UH661V
Bulgaria

Re: XMLTV converter?

Post by saentist »

So give some specs, how to make usable EPG when provider is not in your list, and need to attach it to playlist.

And yes this is from your internal EPG system, I can generate this kind of EPG just some specs is needed.

I write P.M. about EPG without answer.

User avatar
Eugene
Project Leader
Project Leader
Posts: 5620
Joined: 15 Apr 2013, 22:54
TV Model: LG 47LM960V, LG LB679V
Location: Санкт-Петербург
Been thanked: 18 times
Contact:
Russia

Re: XMLTV converter?

Post by Eugene »


saentist
Ensign
Ensign
Posts: 17
Joined: 08 Apr 2019, 16:48
TV Model: LG UH661V
Bulgaria

Re: XMLTV converter?

Post by saentist »

Eugene wrote:http://ss-iptv.com/en/operators/epg

And it not work
first because of size /this is short version of export rest parts is not included/
second with tag are used

How easy is to have example of EPG xml acceptable by App.

this is my XMLTV file
https://paste.ubuntu.com/p/6kBPNt4zWy/

User avatar
Eugene
Project Leader
Project Leader
Posts: 5620
Joined: 15 Apr 2013, 22:54
TV Model: LG 47LM960V, LG LB679V
Location: Санкт-Петербург
Been thanked: 18 times
Contact:
Russia

Re: XMLTV converter?

Post by Eugene »

It works if you provided all the required http-headers described in the article above and if your XMLTV file's structure is correct.

saentist
Ensign
Ensign
Posts: 17
Joined: 08 Apr 2019, 16:48
TV Model: LG UH661V
Bulgaria

Re: XMLTV converter?

Post by saentist »

Questions
1. how program name is compared from m3u and xml?
on example on furs post it is hashed name in event
Is this format compatible
2. Is stream format supported aka do I can take it not from stored file but from epg generator?

admin
Administrator
Administrator
Posts: 510
Joined: 15 Apr 2013, 21:45
TV Model: Samsung, Sony, Hisense, LG
Been thanked: 8 times
Great Britain

Re: XMLTV converter?

Post by admin »

1. Use "tvg-id" or "id" attribute in M3U and attribute "id" of tag "channel" on the xmltv side. IDs must be unique.
2. If you mean that you want to generate it "on the fly" - ok, it doesn't matter for the app, but you should keep in mind the required headers for http.
Best Wishes,
Administrator of SS IPTV Forum

saentist
Ensign
Ensign
Posts: 17
Joined: 08 Apr 2019, 16:48
TV Model: LG UH661V
Bulgaria

Re: XMLTV converter?

Post by saentist »

Is time must be in "UTC time" or it can be "UTC + time zone"

Code: Select all

start="20190408183000" stop="20190408190000"

or

Code: Select all

start="20190408183000 +0300" stop="20190408190000 +0300"

With one is correct/acceptable?

In moment EPG is 3 hours back from real time

http://wiki.xmltv.org/index.php/XMLTVFormat

Post Reply