NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Add-ons (3rd party plugins, utilities and skins) v
1 2 3 4 5 20 Next »
VideoConduit - Standalone App to Import Lost TV Recordings into NPVR

 
  • 0 Vote(s) - 0 Average
VideoConduit - Standalone App to Import Lost TV Recordings into NPVR
27InchSony
Offline

Junior Member

Michigan, USA
Posts: 16
Threads: 2
Joined: May 2009
#1
2016-09-23, 03:38 AM (This post was last modified: 2020-05-16, 01:05 AM by 27InchSony.)
Backstory
I moved some of my 300-400 media files (TV episodes) to a different drive and NPVR dutifully removed them from its database. I didn't catch it in time so all the various methods of fixing the problem didn't work. I played with VidImport.exe but don't recall why I wasn't satisfied with the results. Thus was born VideoConduit.

What does VideoConduit do?
VideoConduit (VC) scans a directory for media files, parses episode information from the filenames by configurable settings (Season/Episode details, or by Air Date details), obtains episode details from http://thetvdb.com, and creates scheduled_recording records in the NPVR DB (and/or creates a normal import .XML file too).

Version 2 Release Notes (May 2020)
  1. TVDB changed their API. Leveraged an updated 3rd party library which changed the innards of the app.
  2. Added a show picker dialog.
  3. Version 1.x will no longer function due to TVDB API changes.
Notes/Usage Tips
  • Backup your NPVR DB before starting to be safe.
  • Adjust the .config if needed. The path to the NPVR DB (NPVRSQLiteConnectionString) must be correct.
  • You can adjust the REGEXs that parse  filenames as long as you keep the named capture groupings intact. Out of the box it handles media file names like using:
    • CSI Crime Scene Investigation_20131120_22002300.mkv (RegEx_FileNameAirDateInfoMatcher[i] matches the colored text)[/i]
    • The.Blacklist..S03E18.Mr..Solomon.Conclusion.mkv (RegEx_FileNameEpisodeInfoMatcher matches the colored text)
  • If you modify the REGEXs in the .config file, note they are encoded for storage in the XML file so that the < and > signs are encoded.
  • The air date matcher must match the exact original air date of the show or the immediate prior day.
  • VC scans one directory at a time. Scan a single show directory at a time. I have no plans to scan multiple shows recursively.
  • The app will display a show picker dialog to help in selecting the right series when matching on the folder name.
  • If the picker doesn't work, you can add #.seriesid file to your folder where # is the exact integer of thetvdb.com series id. If the folder contains this, it will not attempt to match on folder name. For instance, in the screenshot below, to match on the show "Arrows on the Bowstring" add an empty file to the show directory named: 336201.seriesid
  • Includes a API key to the TheTVDB.com in setting TheTVDBAPIKey. You can get your own for free (at time of post) if it goes defunct.
  • Need the .Net Framework 4.7.
  • Tested on US English environment.
   

Download
https://1drv.ms/u/s!AjgJ9hmr0mAGhtkMz1RIh1ZtQvpjTQ
SHA256: DB025E9B350EBDD82A05E3927FB8654B61ED90A814624B9A431A164844BDD439
I have to use this OneDrive link because the forum isn't handling the upload.
p37307
Offline

Senior Member

Posts: 252
Threads: 46
Joined: Jul 2016
#2
2016-09-27, 08:18 AM
This worked good for me. Thanks for sharing.

I did get an error so I didn't know if it would work or not. It did import most of the files except the file in the error

I think the error was the " ' "in the file name. s01e13.Wood's.Thirtieth.Reunion.avi

That episode did not get imported.

The error was:

Code:
Unknown problem: SQL logic error or missing database
near "s": syntax error System.Data.SQLite    at System.Data.SQLite.SQLite3.Prepare(SQLiteConnection cnn, String strSql, SQLiteStatement previous, UInt32 timeoutMS, String& strRemain)
   at System.Data.SQLite.SQLiteCommand.BuildNextCommand()
   at System.Data.SQLite.SQLiteCommand.GetStatement(Int32 index)
   at System.Data.SQLite.SQLiteDataReader.NextResult()
   at System.Data.SQLite.SQLiteDataReader..ctor(SQLiteCommand cmd, CommandBehavior behave)
   at System.Data.SQLite.SQLiteCommand.ExecuteReader(CommandBehavior behavior)
   at System.Data.SQLite.SQLiteCommand.ExecuteScalar(CommandBehavior behavior)
   at VideoConduit.Core.DoesFileExistInNPVRDBAlready(String fullFilePath)
   at VideoConduit.Core.Go(String fileDirectoryToProcess)
   at VideoConduit.Form1.btnGo_Click(Object sender, EventArgs e)9/27/2016 4:08:17 AM    File: K:\Serviio\TV\Classic Sitcoms\Evening Shade\s01e13.Wood's.Thirtieth.Reunion.avi
~Paul

If you haven't broken it at least once, you're not doing it right. :eek:
27InchSony
Offline

Junior Member

Michigan, USA
Posts: 16
Threads: 2
Joined: May 2009
#3
2016-09-28, 03:18 AM
I just updated the original post with a new version. It cures the problem caused by my laziness by properly using a parameterized query when checking to see if the file exists in the DB.
p37307
Offline

Senior Member

Posts: 252
Threads: 46
Joined: Jul 2016
#4
2016-09-28, 04:48 AM
27InchSony Wrote:I just updated the original post with a new version. It cures the problem caused by my laziness by properly using a parameterized query when checking to see if the file exists in the DB.

Thank you. I really find this program useful. I am running 2 independent Nextpvr setups sharing Network Storage, I can merge both databases until I figure out how to setup 2 separate boxes with tuners and 1 NPVR server with client.
~Paul

If you haven't broken it at least once, you're not doing it right. :eek:
drbenjamin
Offline

Member

Posts: 145
Threads: 36
Joined: Oct 2007
#5
2016-12-26, 09:00 PM
This program is superb - thank you so much! I have recordings going back to 2008 (longtime GBPVR/NPVR user). Over the years I've migrated several times, and this summer lost my whole setup. Thanks to you I now have a complete database, with episode information to boot! Really appreciate it -

Cheers

Dennis
HD-PVR Rocket, G4400 w/ 4GB RAM, 12 TB HD, Windows 10 Pro, AppleTV
p37307
Offline

Senior Member

Posts: 252
Threads: 46
Joined: Jul 2016
#6
2017-03-31, 05:44 AM
Still loving the App.

I tried to import some movies I recorded through NPVR to no luck. I assume because they are not in TVDB.

I was wondering if you plan on making a "MovieConduit" to search IMDB or one of the other movie db's for recorded movies?

Really like the simplicity of this app though.
~Paul

If you haven't broken it at least once, you're not doing it right. :eek:
27InchSony
Offline

Junior Member

Michigan, USA
Posts: 16
Threads: 2
Joined: May 2009
#7
2017-04-22, 04:29 AM
Great idea, but no plans at this point. Sorry!
afeldspar
Offline

Junior Member

Posts: 6
Threads: 2
Joined: Nov 2016
#8
2017-04-22, 09:07 PM
Great app! Just used it to restore the majority of entries lost by a crash.

Two series gave me particular problems, and I had an idea for a minimally invasive fix.

The series were "Marvel's Agents of S.H.I.E.L.D." and the series NextPVR records as "The Librarians", which TheTVDB knows as "The Librarians (2014)". The problem with the latter is obvious, and was solved by renaming the folder to "The Librarians (2014)". The other one was trickier; Windows doesn't allow folder names to end in a period, so there's no way to have the recordings in a folder that matches the name TheTVDB knows.

What if the app asked to be pointed to a directory, but would accept as input a shortcut to a directory, with the title of the shortcut being the TheTVDB series ID for the series? For instance, if the app is pointed to a shortcut called "281709" pointing to the folder for "The Librarians", it knows that it's dealing with the series "The Librarians (2014)" even if that's not what the folder says.
27InchSony
Offline

Junior Member

Michigan, USA
Posts: 16
Threads: 2
Joined: May 2009
#9
2017-05-25, 03:30 AM
I just released v1.0.2. If you name the folder based on the thetvdb.com integer series id, VC will use the number to lookup the show. A shortcut to the folder will NOT work because windows resolved the shortcut to the real folder. Your real folder must be named the series id. Kinda think everything else still works, but I didn't do a whole lotta testing.
jksmurf
Offline

Posting Freak

HK (DMBTH)
Posts: 3,590
Threads: 410
Joined: Jul 2005
#10
2017-05-25, 08:04 AM
Thank you, don't know how I missed it before, but what a great idea!
ASUS STRIX X470-F AMD 2700x 4GHz | Win10Prox64 | 32GB | NVIDIA GEforce GT1030 Fanless | WinTV DMB-TH | WinTV HVR-1280 | Hauppauge Colossus | AC86U/AC68U | USB-UIRT | RPi4 Libreelec | Sony Bravia LCD X9000F Android TV |
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (6): 1 2 3 4 5 6 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  NextTool import Dale Dewing 13 3,056 2023-01-31, 02:54 PM
Last Post: mvallevand
  Update NPVR Database with UniqueID element using NextTool ChrisHammond56 7 1,981 2022-08-18, 03:29 AM
Last Post: sub
  new format for NextTool import? spagio 7 2,188 2022-08-11, 01:17 PM
Last Post: mvallevand
  SageTV Import Utility mvallevand 97 39,572 2022-04-13, 04:42 PM
Last Post: sDiesel
  RFC Recordings Import Utility mvallevand 24 8,869 2020-05-08, 02:16 PM
Last Post: Graham
  Npvr and IR Blaster Buddha B 11 5,871 2018-11-13, 06:16 PM
Last Post: sub
  NextPVR Recordings and MCEBuddy (Script) KV-Tools 6 7,904 2016-10-25, 11:50 PM
Last Post: snagglewest
  System Plugin Confused by New NPVR Naming Scheme Lao Pan 1 2,655 2016-09-25, 08:26 AM
Last Post: imilne
  Unified Remote (Android) NPVR custom remote. fuzzweed 5 7,561 2016-08-10, 01:52 AM
Last Post: baj1
  hy is there a way to use an LCD or VFD (2x16 or 4x40 chars) in NPVR tto 7 4,729 2016-06-19, 01:38 PM
Last Post: jdauthre

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

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

Linear Mode
Threaded Mode