Project

General

Profile

Identifiying channels between several networks

Added by Nicolas Rioja over 6 years ago

Hi,

I would like to know if it´s possible identify from which network is associated a channel file ""located in the channels folder inside Tvheadend"".

I mean, if I have two or more networks created in Tvheadend and I would like to delete one Network and all channels (or services) associated to that network... how could I identify them?

Is there any way to differentiate the channels coming from one network or another?

Regards


Replies (5)

RE: Identifiying channels between several networks - Added by Mark Clarkstone over 6 years ago

Nicolas Rioja wrote:

Hi,

I would like to know if it´s possible identify from which network is associated a channel file ""located in the channels folder inside Tvheadend"".

I mean, if I have two or more networks created in Tvheadend and I would like to delete one Network and all channels (or services) associated to that network... how could I identify them?

Is there any way to differentiate the channels coming from one network or another?

Regards

Short answer no, long answer, yes if you read each file & grab the network uuid. It would be easier to use the webui and do it that way.

RE: Identifiying channels between several networks - Added by Nicolas Rioja over 6 years ago

Hi Mark, glad to chat with you again since the kodi tags discussion in GitHub... :)

Let me show you an example to understand it better...

I have the same channel coming from two different networks:

The networks that I have in ../config/input/dvb/networks are these two:

45af6a7b29d6f8dd3373d5a9feb400fd (14 files)
1328355d3ed4cf012a11db984f2f6354 (68 files)

Having the number of files in the muxes folder (../config/input/dvb/networks/muxes) I can find out which network is:

But... I´m wondering if I had the same number of muxes in both networks... How I could distinguish between each other?

You wrote:

Short answer no, long answer, yes if you read each file & grab the network uuid. It would be easier to use the webui and do it that way.

But if I go to ../config/channel/config I can see the channel files but, without any reference where I could determine if that channel comes from a network or another. Look:

{
"enabled": true,
"name": "La 1 HD",
"number": 1,
"icon": "http://blabla.com/picons/la1hd.png",
"epgauto": true,
"epglimit": 0,
"dvr_pre_time": 0,
"dvr_pst_time": 0,
"epg_running": -1,
"services": [
"a94350edcad2d95fc0b3a3f29d9f8d0b",
"b77beb2e7bd250b43822dca85a81c99b",
"35cd2f7bc52bc2eec7e81ea7fc06fd4f",
"c23eec143d269aca313817c88e8b0973"
],
"tags": [
"c159fbdd56f8f7385db4368a3006613f",
"cd444b78fa53686391419db0d9a4c537",
"c4014c5b3ca88aa3a255cf6c11ff7f43",
"7060fc452100be25f4ec2b55387ad871"
],
"bouquet": ""
}

Where should I take look to get the network uuid information?

RE: Identifiying channels between several networks - Added by Mark Clarkstone over 6 years ago

Are you trying to script something? in 4.3 (devel) you can see the network when adding a service to a channel.

RE: Identifiying channels between several networks - Added by Nicolas Rioja over 6 years ago

Mark Clarkstone wrote:

Are you trying to script something? in 4.3 (devel) you can see the network when adding a service to a channel.

Yes, that´s the reason why I was asking about that information "internally" in tvheadend. I´m aware that I can see the services coming from a specific network in a channel in the GUI.

But I´m interested on which should be the way to find out that information looking the files inside in Tvheadend, if it´s possible.

Thanks

RE: Identifiying channels between several networks - Added by Mark Clarkstone over 6 years ago

Nicolas Rioja wrote:

Mark Clarkstone wrote:

Are you trying to script something? in 4.3 (devel) you can see the network when adding a service to a channel.

Yes, that´s the reason why I was asking about that information "internally" in tvheadend. I´m aware that I can see the services coming from a specific network in a channel.

But I´m interested on which should be the way to find out that information looking the files inside in Tvheadend, if it´s possible.

Thanks

OK so you'll need to find the network uuid, which contains the service uuid etc. It's in the input folder.

    (1-5/5)