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 … 94 95 96 97 98 … 101 Next »
Switch from TS to HLS without re-importing playlist et al?

 
  • 0 Vote(s) - 0 Average
Switch from TS to HLS without re-importing playlist et al?
markn62
Offline

Member

Posts: 214
Threads: 36
Joined: Oct 2019
#1
2019-11-24, 11:17 PM
Is there an easy way to switch the source from ...type=m3u&output=ts" to ...type=m3u&output=m3u8" (TS to HLS) without re-importing the nearly matching URL so it doesn't blow out all scheduling, epg, mapping, etc?  The playlist and db should remain the same switching url's since the source,user/pw remains the same.  I don't see the source url in the config.xml file.  It's a few hours of work to switch starting from scratch via the UI.
sub
Online

Administrator

NextPVR HQ, New Zealand
Posts: 106,676
Threads: 767
Joined: Nov 2003
#2
2019-11-25, 12:40 AM
The urls for each station are in the npvr.db3 database file, in the CHANNEL_MAPPING.tuning table. You could probably do some sort of sql replace if there is a predictable part of the url that can be replaced.
markn62
Offline

Member

Posts: 214
Threads: 36
Joined: Oct 2019
#3
2019-11-25, 01:04 AM
(2019-11-25, 12:40 AM)sub Wrote: The urls for each station are in the npvr.db3 database file, in the CHANNEL_MAPPING.tuning table. You could probably do some sort of sql replace if there is a predictable part of the url that can be replaced.
Thanks sub.  Would this be the only table where the url would need to be edited?  I find the url in tables CAPTURE_SOURCE, CHANNEL, & IPTV_RECORDER as well.  Or will the url propogate to these three add'l tables once the process is started?
sub
Online

Administrator

NextPVR HQ, New Zealand
Posts: 106,676
Threads: 767
Joined: Nov 2003
#4
2019-11-25, 01:14 AM
Technically you only need to change CHANNEL_MAPPING.tuning to change the type of stream you're watching. You can change those other spots as well, to make it look like it is entirely right (and so things like the 'update m3u' button work as expected)
markn62
Offline

Member

Posts: 214
Threads: 36
Joined: Oct 2019
#5
2019-11-25, 08:33 PM
Don't want anything unexpected. Ran the script below and it did the trick. Saves me a lot of time, thanks.

UPDATE main.CAPTURE_SOURCE
SET name = REPLACE(name, 'output=ts', 'output=m3u8');
UPDATE main.CHANNEL_MAPPING
SET tuning = REPLACE(tuning, 'output=ts', 'output=m3u8');
UPDATE main.IPTV_RECORDER
SET m3u_url = REPLACE(m3u_url, 'output=ts', 'output=m3u8')
sub
Online

Administrator

NextPVR HQ, New Zealand
Posts: 106,676
Threads: 767
Joined: Nov 2003
#6
2019-11-25, 08:59 PM
Great!
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  22 kHz 2-way switch gla 0 404 2023-01-19, 11:01 PM
Last Post: gla
  Importing MP4 videos buntay20 22 3,280 2022-11-20, 03:22 PM
Last Post: mvallevand
  which playlist in scheduling a recording etrain1 4 817 2022-10-08, 01:19 AM
Last Post: etrain1
  Importing Multiple M3U files issue ? dayvboy 8 1,643 2022-01-22, 05:31 AM
Last Post: sub
  turn off one device/playlist etrain1 1 639 2021-10-30, 11:16 PM
Last Post: etrain1
  Importing existing videos madbrain 4 1,350 2021-09-25, 02:20 AM
Last Post: madbrain
  importing existing TV recordings in Windows 10 dominator99 1 817 2021-05-26, 01:36 PM
Last Post: etrain1
  Download playlist markn62 3 1,270 2020-06-13, 10:19 PM
Last Post: sub
  Importing Channels for IPTV RichTheFly 8 10,743 2020-04-28, 09:37 PM
Last Post: RichTheFly
  Refresh playlist with import filtered groups markn62 2 1,208 2020-02-06, 06:27 AM
Last Post: markn62

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

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

Linear Mode
Threaded Mode