NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support v
« Previous 1 … 34 35 36 37 38 … 43 Next »
Import existing shows into NextPVR Database

 
  • 0 Vote(s) - 0 Average
Import existing shows into NextPVR Database
wayloncovil
Offline

Junior Member

Posts: 39
Threads: 14
Joined: Oct 2013
#1
2020-04-19, 06:15 AM (This post was last modified: 2020-04-19, 06:15 AM by wayloncovil.)
I've been using Emby as my DVR for the last year and I want to try the new version of NextPVR. (To be clear, I'm not wanting to use NextPVR in conjunction with Emby at this time.)
I have many shows recorded that I'd like to add to the NextPVR database.

I've looked around the forum and the Internet and I see vidimport.exe mentioned. I gave that a try but received the following error:
Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object. at videoImport.Program.Main(String[] args)

It seems like vidimport.exe should do what I need. Is it still the preferred solution?

Alternatively...
Emby has .nfo files associated with each .ts file. These .nfo files contain a bunch of metadata associated with each show. I suppose it's feasible to traverse my recordings directory and extract the relevant data for each tv show and compile the import file that NextPVR needs to add the shows to the database. Any thoughts on what programming method would be optimal in doing something like this?

Thanks, everyone!
Graham
Offline

Posting Freak

UK
Posts: 4,058
Threads: 102
Joined: Dec 2005
#2
2020-04-19, 12:17 PM (This post was last modified: 2020-04-19, 12:25 PM by Graham.)
(2020-04-19, 06:15 AM)wayloncovil Wrote: I have many shows recorded that I'd like to add to the NextPVR database.

I've looked around the forum and the Internet and I see vidimport.exe mentioned. I gave that a try but received the following error:

How did you record the shows that you are trying to add to the NextPVR database?

Vidimport was written to be used with NextPVR V4. The long way round might be to install NextPVR V4, use Vidimport to get shows into the V4 database, remove V4 but save the database, use the V4 database in V5.

Edit: I have just noticed your forum join date so I guess that you used NextPVR V4 to record shows. Do you still have the V4 database becasue it can be used with V5 ... Try copying the V4 database into the V5 data folder ... https://github.com/sub3/NextPVR/wiki/components ... Alternatively, Export Recordings in V4 Settings and Import Recordings in V5 Settings.
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,832
Threads: 954
Joined: May 2006
#3
2020-04-19, 01:37 PM
If you can provide me access to your library.db from Emby via OneDrive Goggle Drive etc I can see what I can do.

Martin.
wayloncovil
Offline

Junior Member

Posts: 39
Threads: 14
Joined: Oct 2013
#4
2020-04-20, 05:39 AM (This post was last modified: 2020-04-20, 05:42 AM by wayloncovil.)
@Graham, thanks for your post. These were recorded in Emby so I can't do an expert from an earlier version of NextPVR. Thank you for your ideas!

@mvallevand
I see where you're going with this - database extract from Emby and write to NextPVR? Let me give this a try since I need to brush up on my XML and database skills anyway.
I took a look at npvr.db3. Would I be correct in assuming that if I were able to extract the data from the Emby database and format it correctly, writing the data to the SCHEDULED_RECORDING table would be the correct approach?
It looks like event_details is where XML data of the existing Emby recording would need to go, correct?
Is there any documentation surrounding the XML in event_details? Meaning, what elements are available, etc? I'm wondering if there are more elements available than what I'm seeing in my existing recordings in NextPVR. I'm also wondering which element defines the TV show series and the title. If I were to guess, I'm thinking the UniqueID is one of these?
Are there any write ups on NextPVR's database that might help me move ahead here?
Thanks!
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,659
Threads: 767
Joined: Nov 2003
#5
2020-04-20, 05:45 AM
No, there is no documentation on the database.

Try doing a recording, then export it in the Setting screen, to give you an example file to work with. copy the file and fill with your own xml, filling in the fields you have, the import it.

You don’t have to populate the oid fields. Most of the others should be self explanatory.
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,832
Threads: 954
Joined: May 2006
#6
2020-04-20, 07:52 AM
It would be easier for me to write the import from Emby then it would be to document it if you want to send me the library.db. I wouldn't bother with the xml file.

After this is done, I'd be happy to share the code.

Martin
wayloncovil
Offline

Junior Member

Posts: 39
Threads: 14
Joined: Oct 2013
#7
2020-04-22, 02:29 AM
(2020-04-20, 07:52 AM)mvallevand Wrote: It would be easier for me to write the import from Emby then it would be to document it if you want to send me the library.db.  I wouldn't bother with the xml file.

After this is done, I'd be happy to share the code.

Martin

Thanks, Martin.
I've sent you a PM with a link to the database.
Much appreciated.
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,832
Threads: 954
Joined: May 2006
#8
2020-04-22, 02:56 AM
I will have a look tomorrow thanks.

Martin
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,832
Threads: 954
Joined: May 2006
#9
2020-04-22, 06:51 PM
It was a pretty trivial conversion. I hoped your Emby database might have had more information from schedules direct or TMS to prevent duplicates in NextPVR but I don't see that.

Martin
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Controlling the nextpvr server from Jellyfin (via the nextpvr plugin) (no recording) kfmf 2 209 2025-05-04, 02:21 PM
Last Post: mvallevand
  I'm using nextpvr with jellyfin which I share with family. Besse1953 1 213 2025-04-18, 01:01 PM
Last Post: mvallevand
  Successful import from MythTV DB to NextPVR Allan 0 227 2025-02-10, 09:51 PM
Last Post: Allan
  Connection Timeout Issue When Selecting Channels in Kodi with NextPVR Paul92 9 1,071 2024-11-02, 11:40 PM
Last Post: mvallevand
  Can NextPVR work well under docker on oldish hardware? ramiroelliot 1 327 2024-10-29, 11:36 PM
Last Post: sub
  Import guide data from HD Homerun tuner jonasx 5 693 2024-10-14, 08:48 PM
Last Post: mvallevand
  Looking at NextPVR to possibly replace my SageTV implimentation BigBillSD 4 528 2024-10-10, 09:00 PM
Last Post: BigBillSD
  Help Automating M3U Channel Refresh NextPVR on Unraid (AMD64) mcs_94 5 605 2024-10-06, 08:29 PM
Last Post: sub
  NextPVR Deleted All My Important Files on SSD yngsadstn 4 712 2024-09-15, 08:38 AM
Last Post: mvallevand
  How to get xmltv from NextPVR working in Emby? guenti_r 6 961 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