NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support v
« Previous 1 2 3 4 5 … 43 Next »
Successful import from MythTV DB to NextPVR

 
  • 0 Vote(s) - 0 Average
Successful import from MythTV DB to NextPVR
Allan
Offline

Member

Canada
Posts: 101
Threads: 11
Joined: Dec 2024
#1
2025-02-10, 09:51 PM (This post was last modified: 2025-02-10, 11:01 PM by Allan.)
After running MythTV for many years, I recently switched to NextPVR, but still had over 50 unhelpfully named ts files in my MythTV recordings folder. It looked like the file names would also cause import challenges. FYI, file name "1411_20190721200000.ts" meant channel 41.1 recorded on 2019-07-21 at 20:00:00 - This would not tell NextPVR anything useful to it about the show.

This worked to import:
  • I accessed the MythTV mariadb sql database and exported the "recorded" view to an xml file. I had to relaunch mariadb, but then was able to access the data - in my case on a mac - with an app called sequel ace. There are many sql apps for many platforms.
  • The recorded-view.xml file contained data for all of the shows in groups separated by a "row" tag. The data included the filename, show name, season, episode number, descriptions, episode names, etc. It was a simple matter to tidy up the file, delete unnecessary tags and rename the tags to match the nomenclature required by NextPVR. A key step was to prefix the MythTV filenames with the rest of the file path that NextPVR would need. All this was done with search and replace, using grep in some cases. For reference, I will include an excerpt, below, from the xml file I used for the successful import.
  • I left the MythTV files in their original MythTV folder and used the import button in settings:general to locate the xml file and run the import.

The result was to populate the interface, including in most cases, thumbnails and posters. I was not counting on art because the filenames were (and still are) as described above. In the one case I had where there was no art, I was able to manually add art to .npvr-data/media/shows and tweak the related catalog.xml files in that folder. There will examples in that folder. There may be a better/easier way to do this.

Here's an excerpt from my import xml file:
Code:
<?xml version="1.0" encoding="utf-8" ?>
<recordings>
    <recording>
        <channel>TVO</channel>
        <status>READY</status>
        <startTime>2020-06-23 07:00:00</startTime>
        <endTime>2020-06-23 07:55:00</endTime>
        <title>Employable Me</title>
        <subtitle>Rick and Victor</subtitle>
        <description>Rick struggles to find employment because of his Autism; Victor is determined to score a job, despite his lung condition.</description>
        <season>0</season>
        <episode>0</episode>
        <genres>
            <genre>Documentary</genre>
        </genres>
        <seriesid>EP02742054</seriesid>
        <programid>EP027420540007</programid>
        <size>6598843240</size>
        <filename>/volumes/TV/MythTV/1191_20200623070000.ts</filename>
    </recording>
    <recording>
        <channel>TVO</channel>
        <status>READY</status>
        <startTime>2019-07-22 03:00:00</startTime>
        <endTime>2019-07-22 03:55:00</endTime>
        <title>Employable Me</title>
        <subtitle>Thomas and Nathalea</subtitle>
        <description>Thomas aspires to independent employ and living; Nathalea used to be a registered nurse.</description>
        <season>0</season>
        <episode>0</episode>
        <genres>
            <genre>Entertainment</genre>
        </genres>
        <seriesid>EP02742054</seriesid>
        <programid>EP027420540003</programid>
        <size>6598782516</size>
        <filename>/volumes/TV/MythTV/1191_20190722030000.ts</filename>
    </recording>
    <recording>
        <channel>TVO</channel>
        <status>READY</status>
        <startTime>2019-07-08 03:00:00</startTime>
        <endTime>2019-07-08 03:55:00</endTime>
        <title>Employable Me</title>
        <subtitle>Becca and Riley</subtitle>
        <description>Becca looks for an accepting work environment; Riley has trouble with interviews.</description>
        <season>0</season>
        <episode>0</episode>
        <genres>
            <genre>Entertainment</genre>
        </genres>
        <seriesid>EP02742054</seriesid>
        <programid>EP027420540001</programid>
        <size>6601144736</size>
        <filename>/volumes/TV/MythTV/1191_20190708030000.ts</filename>
    </recording>
    <recording>
        <channel>TVO</channel>
        <status>READY</status>
        <startTime>2019-07-15 03:01:00</startTime>
        <endTime>2019-07-15 03:55:00</endTime>
        <title>Employable Me</title>
        <subtitle>Melissa and Matt</subtitle>
        <description>Melissa searches for a job where she can feel comfortable; Matt has trouble focusing at work.</description>
        <season>0</season>
        <episode>0</episode>
        <genres>
            <genre>Entertainment</genre>
        </genres>
        <seriesid>EP02742054</seriesid>
        <programid>EP027420540002</programid>
        <size>6481458108</size>
        <filename>/volumes/TV/MythTV/1191_20190715030100.ts</filename>
    </recording>
<!-- continued with many more recordings -->
</recordings>
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  DVB-S2 & DVB-T on Docker, Nextpvr sees both but only scans DVB-S2 seapoint 2 12 13 minutes ago
Last Post: seapoint
  Controlling the nextpvr server from Jellyfin (via the nextpvr plugin) (no recording) kfmf 2 281 2025-05-04, 02:21 PM
Last Post: mvallevand
  I'm using nextpvr with jellyfin which I share with family. Besse1953 1 235 2025-04-18, 01:01 PM
Last Post: mvallevand
  Connection Timeout Issue When Selecting Channels in Kodi with NextPVR Paul92 9 1,148 2024-11-02, 11:40 PM
Last Post: mvallevand
  Can NextPVR work well under docker on oldish hardware? ramiroelliot 1 348 2024-10-29, 11:36 PM
Last Post: sub
  Import guide data from HD Homerun tuner jonasx 5 734 2024-10-14, 08:48 PM
Last Post: mvallevand
  Looking at NextPVR to possibly replace my SageTV implimentation BigBillSD 4 554 2024-10-10, 09:00 PM
Last Post: BigBillSD
  Help Automating M3U Channel Refresh NextPVR on Unraid (AMD64) mcs_94 5 630 2024-10-06, 08:29 PM
Last Post: sub
  NextPVR Deleted All My Important Files on SSD yngsadstn 4 733 2024-09-15, 08:38 AM
Last Post: mvallevand
  How to get xmltv from NextPVR working in Emby? guenti_r 6 998 2024-09-09, 03:35 PM
Last Post: guenti_r

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

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

Linear Mode
Threaded Mode