Multi language Lineup.json

Want to write your own code to work with a HDHomeRun or work with the HDHomeRun DVR? We are happy to help with concepts, APIs, best practices.
Post Reply
emveepee
Posts: 190
Joined: Sun Nov 16, 2014 3:35 pm
x 2

Multi language Lineup.json

Post by emveepee »

First if this problem is due to using old firmware let me know.

A NextPVR user posted his lineup.json, is it supposed to contain mixed languages?

Code: Select all

    {
        "GuidaNumero": "71",
        "GuidaNome": "CANALE ITALIA e",
        "VideoCodec": "H264",
        "AudioCodec": "MPEG",
        "URL": "http://192.168.1.252:5004/auto/v71"
    },
    {
        "GuideNumber": "75",
        "GuideName": "TVP",
        "VideoCodec": "H264",
        "AudioCodec": "MPEG",
        "HD": 1,
        "URL": "http://192.168.1.252:5004/auto/v75"
    },
If so, is there an API call to normalize the JSON to English?

nickk
Silicondust
Posts: 20611
Joined: Tue Jan 13, 2004 9:39 am
x 322

Re: Multi language Lineup.json

Post by nickk »

The field names are always GuideNumber and GuideName... they are not localized.

My guess is he opened lineup.json in a web browser that has a translation feature.

emveepee
Posts: 190
Joined: Sun Nov 16, 2014 3:35 pm
x 2

Re: Multi language Lineup.json

Post by emveepee »

Makes sense, thanks. Hard to explain curl to users.

Martin

emveepee
Posts: 190
Joined: Sun Nov 16, 2014 3:35 pm
x 2

Re: Multi language Lineup.json

Post by emveepee »

Rather than opening a new thread the user is asking if there is a limit of 15 characters to the DVB guide name in lineup.json.

"GuideName": "Radio Monte Car",

The full mux does have the full name.

It also got me looking for other things, his file had

"VideoCodec": "HEVC",

and I thought I recalled seeing ATSC 3 was.

"VideoCodec": "H265",

Martin

jasonl
Silicondust
Posts: 17376
Joined: Sun Oct 28, 2007 9:23 pm
x 80

Re: Multi language Lineup.json

Post by jasonl »

There is a length limit in the firmware, not specifically the json.

ATSC 3.0 channels have "HEVC" in the json.

nickk
Silicondust
Posts: 20611
Joined: Tue Jan 13, 2004 9:39 am
x 322

Re: Multi language Lineup.json

Post by nickk »

The ATSC 1.0 broadcast is is limited to 7 characters of UTF-16.
I would need to check for DVB-T/T2.
The firmware stores channel names as UTF8, max 15 characters.

emveepee
Posts: 190
Joined: Sun Nov 16, 2014 3:35 pm
x 2

Re: Multi language Lineup.json

Post by emveepee »

jasonl wrote: Tue Jul 02, 2024 4:07 pm ATSC 3.0 channels have "HEVC" in the json.
Thanks I was using this example https://emby.media/community/index.php? ... 39235_menu (not being in the US) so it must have changed at one point. To be fair audio was None in those early days.

Martin

Post Reply