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)
Download
https://1drv.ms/u/s!AjgJ9hmr0mAGhtkMz1RIh1ZtQvpjTQ
SHA256: DB025E9B350EBDD82A05E3927FB8654B61ED90A814624B9A431A164844BDD439
I have to use this OneDrive link because the forum isn't handling the upload.
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)
- TVDB changed their API. Leveraged an updated 3rd party library which changed the innards of the app.
- Added a show picker dialog.
- Version 1.x will no longer function due to TVDB API changes.
- 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)
- CSI Crime Scene Investigation_20131120_22002300.mkv (RegEx_FileNameAirDateInfoMatcher[i] matches the colored text)[/i]
- 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.