Schedules Direct xmltvid

For discussion related to MythTV which doesn't belong in another forum.

Moderator: Forum Moderators

Post Reply
keef256
Junior
Posts: 39
Joined: Fri Apr 22, 2022 3:38 pm
Great Britain

Schedules Direct xmltvid

Post by keef256 »

My channel list is missing a lot of xmltvid's. Is there somewhere I can find a list of them?
chicobiker
Junior
Posts: 33
Joined: Thu Jun 26, 2014 8:47 pm
United States of America

Re: Schedules Direct xmltvid

Post by chicobiker »

Assuming you are talking about your channel list on mythweb, you can see the xmltvid for a channel on the schedules direct website. Log into your account, select edit, then hover your mouse of the the channel you want to see the xmltvid for.
User avatar
paulh
Developer
Posts: 909
Joined: Thu Feb 06, 2014 6:09 pm
Great Britain

Re: Schedules Direct xmltvid

Post by paulh »

If you are using XMLTV to grab your channel data then the grabber you use should have a --list-channels option.

In the UK there are two grabbers that are part of XMLTV - tv_grab_zz_sdjson_sqlite and tv_grab_zz_sdjson_sqlite.

So you can run a command like this to see a full list of channels you have configured XMLTV to use.

Code: Select all

su mythtv
tv_grab_zz_sdjson_sqlite --list-channels --config-file /home/mythtv/.mythtv/FreeviewHD.xmltv
The command must be run as the same user used to originally setup XMLTV for MythTV usually mythtv. That is what the su mythtv is for which works fine for me. You can also use something like

Code: Select all

sudo -H -u mythtv bash -c "tv_grab_zz_sdjson_sqlite --list-channels --config-file /home/mythtv/.mythtv/FreeviewHD.xmltv"
The file path and name after the --config-file parameter is the config file created for one of your video sources for which you have missing xmltvid's and will have the same name you gave the video source in MythTV setup.
keef256
Junior
Posts: 39
Joined: Fri Apr 22, 2022 3:38 pm
Great Britain

Re: Schedules Direct xmltvid

Post by keef256 »

chicobiker wrote:
Sat Jun 11, 2022 1:25 pm
Assuming you are talking about your channel list on mythweb, you can see the xmltvid for a channel on the schedules direct website. Log into your account, select edit, then hover your mouse of the the channel you want to see the xmltvid for.
Yes I'm talking about the channel list on mythweb. I am also as a concequence missing a lot of schedule data.
When I log into the schedules direct website I can't find the channel list or edit link you are mentioning.
User avatar
paulh
Developer
Posts: 909
Joined: Thu Feb 06, 2014 6:09 pm
Great Britain

Re: Schedules Direct xmltvid

Post by paulh »

You will only see a channel lineup if you are using SD's legacy service. I think all users outside of the USA are using their new JSON service which is setup using the API not the website.
keef256
Junior
Posts: 39
Joined: Fri Apr 22, 2022 3:38 pm
Great Britain

Re: Schedules Direct xmltvid

Post by keef256 »

Ok so how can I get the info I need? Cause I am missing about 80 channels out of the program guide
User avatar
paulh
Developer
Posts: 909
Joined: Thu Feb 06, 2014 6:09 pm
Great Britain

Re: Schedules Direct xmltvid

Post by paulh »

I'm assuming you have the channels in MythTV but they have no guide data because they are missing the correct xmltvid? If so you will have to use the tools provided by your XMLTV grabber to view and manage the channels first and then add the correct xmltvid to MythTV using mythv-setup or I believe MythWeb allows you to change it as well. Also IIRC In some cases if the grabber is set up correctly then mythfildatabase can also update them automatically if you use the correct parameters.
keef256
Junior
Posts: 39
Joined: Fri Apr 22, 2022 3:38 pm
Great Britain

Re: Schedules Direct xmltvid

Post by keef256 »

paulh wrote:
Sun Jun 12, 2022 8:34 pm
I'm assuming you have the channels in MythTV but they have no guide data because they are missing the correct xmltvid? If so you will have to use the tools provided by your XMLTV grabber to view and manage the channels first and then add the correct xmltvid to MythTV using mythv-setup or I believe MythWeb allows you to change it as well. Also IIRC In some cases if the grabber is set up correctly then mythfildatabase can also update them automatically if you use the correct parameters.
That is correct I can watch the channels live but have no guide data. I'm ok with adding the xmltvid to the lineup. What I need to find is the xmltvid's
User avatar
paulh
Developer
Posts: 909
Joined: Thu Feb 06, 2014 6:09 pm
Great Britain

Re: Schedules Direct xmltvid

Post by paulh »

Did you try the tv_grab_zz_sdjson_sqlite --list-channels described above?

You should get output like this where the id="" part is the xmltvid.

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<!-- Note: This data has been downloaded from Schedules Direct, and use of the data is restricted by the subscriber agreement to non-commercial use with open source projects.  Refer to the Schedules Direct subscriber agreement for more information -->
<!DOCTYPE tv SYSTEM "xmltv.dtd">

<tv generator-info-name="tv_grab_zz_sdjson_sqlite" generator-info-url="https://github.com/garybuhrmaster/tv_grab_zz_sdjson_sqlite" source-info-name="Schedules Direct" source-info-url="https://www.schedulesdirect.org">
<channel id="I17154.json.schedulesdirect.org">
  <display-name>BBC Two</display-name>
  <display-name>BBC2</display-name>
  <display-name>2</display-name>
  <icon src="https://schedulesdirect-api20141201-logos.s3.amazonaws.com/stationLogos/s17154_dark_360w_270h.png" width="360" height="270" />
  <icon src="https://schedulesdirect-api20141201-logos.s3.amazonaws.com/stationLogos/s17154_gray_360w_270h.png" width="360" height="270" />
  <icon src="https://schedulesdirect-api20141201-logos.s3.amazonaws.com/stationLogos/s17154_light_360w_270h.png" width="360" height="270" />
  <icon src="https://schedulesdirect-api20141201-logos.s3.amazonaws.com/stationLogos/s17154_white_360w_270h.png" width="360" height="270" />
 </channel>
 <channel id="I17155.json.schedulesdirect.org">
  <display-name>Channel 4</display-name>
  <display-name>C4</display-name>
  <display-name>4</display-name>
  <icon src="https://schedulesdirect-api20141201-logos.s3.amazonaws.com/stationLogos/s17155_dark_360w_270h.png" width="360" height="270" />
  <icon src="https://schedulesdirect-api20141201-logos.s3.amazonaws.com/stationLogos/s17155_gray_360w_270h.png" width="360" height="270" />
  <icon src="https://schedulesdirect-api20141201-logos.s3.amazonaws.com/stationLogos/s17155_light_360w_270h.png" width="360" height="270" />
  <icon src="https://schedulesdirect-api20141201-logos.s3.amazonaws.com/stationLogos/s17155_white_360w_270h.png" width="360" height="270" />
 </channel>
.
.
.
</tv
keef256
Junior
Posts: 39
Joined: Fri Apr 22, 2022 3:38 pm
Great Britain

Re: Schedules Direct xmltvid

Post by keef256 »

Sorry been on holiday.
Yes I did thanks. Down to 8 channels with no id's now.
Most of which I don't watch. 😁
Post Reply