Results 1 to 4 of 4

Thread: Is there a way to clone EPG from one channel to a different channel?

  1. #1
    Join Date
    Jan 2019
    Location
    UK
    Posts
    16

    Is there a way to clone EPG from one channel to a different channel?

    Is there a way to share EPG from one channel to a different channel? I tried cloning the channel.epg node but it didn't work, are there any workarounds. Example below as Channel 4 HD is NOT on OTA EPG:-

    original channel.epg node in Channel 4 HD replaced by
    Code:
      <Channel>
        <Name>Channel 4 HD</Name>
        <Number>104</Number>
        <ServiceType>25</ServiceType>
        <tuning>
          <type>DVB-S</type>
          <locator>
            <frequency>11126</frequency>
            <polarity>V</polarity>
            <symbol_rate>22000</symbol_rate>
            <fec>56</fec>
            <diseqc_type>1</diseqc_type>
            <lnb>1</lnb>
            <lowosc>9750</lowosc>
            <highosc>10600</highosc>
            <switch>11700</switch>
            <modulation>QPSK</modulation>
          </locator>
          <service_id>21200</service_id>
          <tsid>2068</tsid>
          <onid>2</onid>
          <service_type>25</service_type>
          <provider>BSkyB</provider>
        </tuning>
        <EPGSource>DVB/ATSC EPG</EPGSource>
        <epg>
          <source>DVB/ATSC EPG</source>
          <capture_source>20</capture_source>
          <readable_source>9213:2041:2 Channel 4</readable_source>
          <mapping>9213:2041:2</mapping>
        </epg>
      </Channel>
    replaced by channel.epg node from Channel 4 SD

    Code:
      <Channel>
        <Name>Channel 4</Name>
        <Number>120</Number>
        <ServiceType>1</ServiceType>
        <tuning>
          <type>DVB-S</type>
          <locator>
            <frequency>10714</frequency>
            <polarity>H</polarity>
            <symbol_rate>22000</symbol_rate>
            <fec>56</fec>
            <diseqc_type>1</diseqc_type>
            <lnb>1</lnb>
            <lowosc>9750</lowosc>
            <highosc>10600</highosc>
            <switch>11700</switch>
            <modulation>QPSK</modulation>
          </locator>
          <service_id>9213</service_id>
          <tsid>2041</tsid>
          <onid>2</onid>
          <service_type>1</service_type>
          <provider>BSkyB</provider>
        </tuning>
        <EPGSource>DVB/ATSC EPG</EPGSource>
        <epg>
          <source>DVB/ATSC EPG</source>
          <capture_source>20</capture_source>
          <readable_source>9213:2041:2 Channel 4</readable_source>
          <mapping>9213:2041:2</mapping>
        </epg>
      </Channel>

  2. #2
    Join Date
    Jan 2019
    Location
    UK
    Posts
    16
    I tried various permutations with no joy so will assume it's not possible. I guess I'll have to abandon OTA EPG and use xmltv, or try a different PVR. Cheers.

  3. #3
    Join Date
    Nov 2003
    Location
    NextPVR HQ, Wellington, New Zealand
    Posts
    89,139
    Does this channel not transmit its own listings for the application to read?

    I don't think it's possible to do what you're suggesting.

  4. #4
    Join Date
    Jan 2019
    Location
    UK
    Posts
    16
    Google brings up this:- (Channel 4 HD no longer on EPG but Channel 4 SD is)
    https://forum.team-mediaportal.com/t...lution.137933/

    Just had a quick look and found the epg data in here npvr.db3 so I should be able to knock up a script tomorrow to clone the data. I've come this far, shame to retreat now! I actually still have EPG collector running, but trying to get away from all that.

    UPDATE:
    OK This clones it for me, just need to automate it to run after EPG has been retrieved.
    Code:
    INSERT INTO EPG_EVENT (title, subtitle, description, start_time, end_time, channel_oid, unique_id, rating, original_air_date, season, episode, dvb_service_event_id, dvb_table_version, genres, first_run, quality, aspect, audio, star_rating, cast_member, crew, md5, significance)    
        SELECT title, subtitle, description, start_time, end_time, 15386, unique_id, rating, original_air_date, season, episode, dvb_service_event_id, dvb_table_version, genres, first_run, quality, aspect, audio, star_rating, cast_member, crew, md5, significance
        FROM EPG_EVENT WHERE channel_oid = 15397
    Update2: All scripted, can clone any to any based on vals in csv, will test tomorrow, gone 3am now!
    Update3: Just tested all worked fine. I will github script at some point when I get a chance. It also handles renaming, renumbering all from a single csv file. Now just need to fix my dish for missing channels, assuming that's the issue. Will re-test the chans in WMC to double check.
    Last edited by Beeman; 2019-01-10 at 04:08 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •