NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Windows v
« Previous 1 … 36 37 38 39 40 … 100 Next »
Channel name issue

 
  • 0 Vote(s) - 0 Average
Channel name issue
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,766
Threads: 954
Joined: May 2006
#11
2022-11-03, 07:38 PM
I know you don't use Kodi but you can use it to correct the recordings, if sqlite proves challenging.

Martin
latenighter
Offline

Junior Member

Posts: 26
Threads: 3
Joined: Dec 2018
#12
2022-11-03, 10:02 PM
(Spotted this thread when creating a new thread.)

I faced a similar challenge with my multiple Recurring Recordings specific to channels when I have to re-tune after the UK Freeview service changes channel line-ups and (recently) removed a mux and re-distributed some channels among the remaining muxes. Such changes seem to happen to Freeview every year or so. I have three SQL statements I use in a SQLite project to identify and update the Recurring Recordings to take into account the new channel_oid values and, possibly, updated channel names.

To identify Recurring Recordings that need to be changed:

SELECT RECURRING_RECORDING.*, SUBSTR(RECURRING_RECORDING.match_rules, INSTR(RECURRING_RECORDING.match_rules, '<ChannelOID>') + 12, INSTR(SUBSTR(RECURRING_RECORDING.match_rules,
INSTR(RECURRING_RECORDING.match_rules, '<ChannelOID>') + 12), '</ChannelOID>') - 1) AS 'Extracted Channel OID', SUBSTR(RECURRING_RECORDING.match_rules, INSTR(RECURRING_RECORDING.match_rules,
'<ChannelName>') + 13, INSTR(SUBSTR(RECURRING_RECORDING.match_rules, INSTR(RECURRING_RECORDING.match_rules, '<ChannelName>') + 13), '</ChannelName>') - 1) AS 'Extracted Channel Name'
FROM RECURRING_RECORDING
LEFT JOIN CHANNEL ON SUBSTR(RECURRING_RECORDING.match_rules,INSTR(RECURRING_RECORDING.match_rules, '<ChannelOID>') + 12,INSTR(SUBSTR(RECURRING_RECORDING.match_rules,
INSTR(RECURRING_RECORDING.match_rules, '<ChannelOID>') + 12), '</ChannelOID>') - 1) = CHANNEL.oid
WHERE CHANNEL.oid IS NULL AND SUBSTR(RECURRING_RECORDING.match_rules,INSTR(RECURRING_RECORDING.match_rules, '<ChannelOID>') + 12,INSTR(SUBSTR(RECURRING_RECORDING.match_rules,
INSTR(RECURRING_RECORDING.match_rules, '<ChannelOID>') + 12), '</ChannelOID>') - 1) <> '0';

And if you're brave enough to use SQL to update the NPVR database:

For Channel OIDs

UPDATE RECURRING_RECORDING
SET match_rules = SUBSTR(RECURRING_RECORDING.match_rules, 1, INSTR(RECURRING_RECORDING.match_rules, '<ChannelOID>') + 11) || 'New Channel OID'
|| SUBSTR(RECURRING_RECORDING.match_rules, INSTR(RECURRING_RECORDING.match_rules, '</ChannelOID>'))
WHERE SUBSTR(RECURRING_RECORDING.match_rules,INSTR(RECURRING_RECORDING.match_rules, '<ChannelOID>') + 12,INSTR(SUBSTR(RECURRING_RECORDING.match_rules, INSTR(RECURRING_RECORDING.match_rules,
'<ChannelOID>') + 12), '</ChannelOID>') - 1) = 'Old Channel OID';

And for Channel Names

UPDATE RECURRING_RECORDING
SET match_rules = SUBSTR(RECURRING_RECORDING.match_rules, 1, INSTR(RECURRING_RECORDING.match_rules, '<ChannelName>') + 12) || 'New Channel Name'
|| SUBSTR(RECURRING_RECORDING.match_rules, INSTR(RECURRING_RECORDING.match_rules, '</ChannelName>'))
WHERE SUBSTR(RECURRING_RECORDING.match_rules,INSTR(RECURRING_RECORDING.match_rules, '<ChannelName>') + 13,INSTR(SUBSTR(RECURRING_RECORDING.match_rules, INSTR(RECURRING_RECORDING.match_rules,
'<ChannelName>') + 13), '</ChannelName>') - 1) = 'Old Channel Name';


Enjoy,
artmetz
Offline

Senior Member

NW Montana
Posts: 367
Threads: 68
Joined: Dec 2016
#13
2022-11-03, 11:15 PM
Very helpful. Thanks!
artmetz
Offline

Senior Member

NW Montana
Posts: 367
Threads: 68
Joined: Dec 2016
#14
2022-11-04, 03:56 PM
(2022-11-02, 04:22 PM)mvallevand Wrote:
(2022-11-02, 04:02 PM)artmetz Wrote: sub,
Would it be possible to have a "Record New Episodes, Any Channel" option?
Art

Which client?  A change like this has a ripple effect on all the other clients, sub would need to change 5.  Technically now that you have changed oid's it is acting like a all channels though and that is how I show it in Kodi. 

Note too you can create an All Channels New recording in Kodi, but if you modify it in any other client, it could break.

Martin

Martin,
Does this mean I could manually create (or modify) a recording in the database that is "All Channels New recording"?
Any tips if so?
Art
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#15
2022-11-04, 04:58 PM
Another way you can probably do it, is click one of the shows in the TV Guide web page, click Advanced, set the Recording Type to 'Record Series (All Episodes, All Channels)', and click Save to create the recurring recording. Then head to the Scheduler -> Recurring page, and click the recurring recording, and edit the 'Advanced' field to add "and first_run = 'Y'"

ie, if Advanced says:

title like 'Extreme Cake Makers'

change it to be:

title like 'Extreme Cake Makers' and first_run = 'Y'
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): « Previous 1 2


Possibly Related Threads…
Thread Author Replies Views Last Post
  Channel 7 TV channels do not load into my list cmacd 0 60 2025-05-03, 02:31 AM
Last Post: cmacd
  error: No tuner was available for the requested channel jzk 3 157 2025-04-19, 03:30 PM
Last Post: mvallevand
  Question about Multiple Clients viewing Same Channel JohnySmith1010 15 546 2025-04-07, 12:28 PM
Last Post: mvallevand
  playback issue artmetz 4 306 2025-03-28, 07:47 PM
Last Post: artmetz
  Watched program and channel lists mkroc 8 382 2025-03-24, 02:21 PM
Last Post: BrettB
  Synchronization of video and audio still an issue Ricknextpvr 21 911 2025-03-08, 04:36 PM
Last Post: mvallevand
  Channel lock issue during recording erik123 1 167 2025-02-08, 03:35 AM
Last Post: BrettB
  Channel Icons Not Showing peekyblinder71 2 218 2025-01-17, 02:19 AM
Last Post: mvallevand
  Transcoder issue dodgydart 2 246 2025-01-16, 10:56 PM
Last Post: dodgydart
Sad Failed to download channel list? membball84 4 328 2025-01-15, 11:46 PM
Last Post: membball84

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode