I have moved from SageTV to NextPVR using Kodi\XBMC as the primary interface. For this to work as desired I need for the recording to show up in the Kodi TV Shows Library.
I have found IGL to be the best (possibly only) way get the shows to show up in the Kodi Library but I still have a few issues and questions that I have not been able to answer\solve.
I am running IGL in the "PostProcessing.bat" using the following:
"C:\Program Files (x86)\NPVR\ImageGrabLite.exe" --oid %3 --season --rename --nfo
"C:\Program Files (x86)\NPVR\ImageGrabLite.exe" --oid %3 --nfo
I use the --rename option mainly because I want the SXXEXX naming standard so that the shows will show up in Kodi\Plex and SageTV after they are recorded.
What I have found with using the --rename option is that if it renames the file it will not create the --nfo file.
If the renamed file gets the SXXEXX information then generally the .nfo is not necessary but often it renames with something like: "The Daily Show With Jon Stewart.2015-04-23.Neil deGrasse Tyson.ts"
Generally only News type programs or specials don't get a good match but there are some files like "The Daily Show With Jon Stewart" that also don't match well with Season\Episode information.
The non Season\Episode naming standard does not seem to scan into Kodi without the .nfo file.
For that reason I run the second IGL lookup just to add the nfo file.
This approach generally gets everything into Kodi but since I use multiple recording Libraries I can end up with multiple folders in Kodi for a show like "The Daily Show With Jon Stewart".
I may have an entry for the show for each recording drive instead of one folder for all episodes of a show. (So not all episodes are grouped together)
Questions:
Is there another approach where I can only create the .nfo file when there is not a Season\Episode match? (Or another approach in general that might work better)
Also: I see the Season\Episode information in the Guide before the recording in most cases but it does not appear to get used in the rename process. I see in the IGL log that the Season\Episode data seems to be missing.
Is there an option that might force it to rename with the Guide Season\Episode data?
Lastly: I was able to fix one issue I was having by updating the version of IGL I was using. But...the update seemed to be buried in the forum. Is there a location where the latest beta version of IGL is always located?
Log from the Daily show rename: (from Schedules Direct)
[...startup]
2015-04-24 20:22:59.259 [DEBUG][1] imageGrabLite, Version=2.2.5530.32668, Culture=neutral, PublicKeyToken=null
2015-04-24 20:22:59.259 [DEBUG][1] Command Line --oid 17621 --season --rename --nfo
2015-04-24 20:22:59.276 [DEBUG][1] Rename file True
2015-04-24 20:22:59.323 [DEBUG][1] Searching select scheduled_recording.name, event_details, start_time, filename, service_type from scheduled_recording, channel, channel_mapping where scheduled_recording.oid = 17621 limit 1
2015-04-24 20:22:59.340 [DEBUG][1] Zap2it reference http://tvlistings.zap2it.com/tv/the-dail...2930532516
2015-04-24 20:22:59.340 [DEBUG][1] Zap2it image page http://www.zap2it.com/tv/the-daily-show-...2930530000
2015-04-24 20:22:59.342 [DEBUG][1] Subtitle: Length=19 Neil deGrasse Tyson
2015-04-24 20:22:59.347 [DEBUG][1] OID is 4009678
2015-04-24 20:22:59.347 [DEBUG][1] Season is 0
2015-04-24 20:22:59.347 [DEBUG][1] Episode is 0
2015-04-24 20:22:59.347 [DEBUG][1] OriginalAirDate is 2015-04-23
2015-04-24 20:22:59.347 [DEBUG][1] First run
2015-04-24 20:22:59.347 [DEBUG][1] Recorded 2015-04-23
2015-04-24 20:22:59.347 [DEBUG][1] Record Ended 2015-04-23
2015-04-24 20:22:59.347 [DEBUG][1] Meta files exists C:\Users\Public\NPVR\Media/Shows/The Daily Show With Jon Stewart.xml
2015-04-24 20:22:59.354 [DEBUG][1] Episodic: True C:\Users\Public\NPVR\Plugins/SearchLite/Series/The Daily Show With Jon Stewart.xml
2015-04-24 20:22:59.354 [DEBUG][1] C:\Users\Public\NPVR\Media/Shows/The Daily Show With Jon Stewart.xml
2015-04-24 20:22:59.392 [DEBUG][1] Using daily renaming rules
2015-04-24 20:22:59.393 [DEBUG][1] The Daily Show With Jon Stewart.2015-04-23.Neil deGrasse Tyson
2015-04-24 20:22:59.405 [DEBUG][1] PlaybackPositionHelper.GetPlaybackPosition(D:\DVR\The Daily Show With Jon Stewart\The Daily Show With Jon Stewart_20150423_22590700.ts)
2015-04-24 20:22:59.407 [DEBUG][1] D:\DVR\The Daily Show With Jon Stewart\The Daily Show With Jon Stewart_20150423_22590700.ts
2015-04-24 20:22:59.407 [DEBUG][1] False
2015-04-24 20:22:59.407 [DEBUG][1] False
PostProcessing.bat: (Runs Comskip after the rename)
"C:\Program Files (x86)\NPVR\ImageGrabLite.exe" --oid %3 --season --rename --nfo
"C:\Program Files (x86)\NPVR\ImageGrabLite.exe" --oid %3 --nfo
SET SQLITE="C:\Users\Public\NPVR\Utility\sqlite3.exe"
SET DB="C:\Users\Public\NPVR\npvr.DB3"
SET SQL=Select filename from SCHEDULED_RECORDING WHERE oid=%3;
Echo %SQL% > Xsqlscript.txt
%SQLITE% %DB% < Xsqlscript.txt > XOutput.txt
for /f "tokens=1 delims=|" %%a in (XOutput.txt) do Set ThePath="%%a%"
@echo on
cd /d "C:\Data\comskip"
hiderun comskip %ThePath%
I have found IGL to be the best (possibly only) way get the shows to show up in the Kodi Library but I still have a few issues and questions that I have not been able to answer\solve.
I am running IGL in the "PostProcessing.bat" using the following:
"C:\Program Files (x86)\NPVR\ImageGrabLite.exe" --oid %3 --season --rename --nfo
"C:\Program Files (x86)\NPVR\ImageGrabLite.exe" --oid %3 --nfo
I use the --rename option mainly because I want the SXXEXX naming standard so that the shows will show up in Kodi\Plex and SageTV after they are recorded.
What I have found with using the --rename option is that if it renames the file it will not create the --nfo file.
If the renamed file gets the SXXEXX information then generally the .nfo is not necessary but often it renames with something like: "The Daily Show With Jon Stewart.2015-04-23.Neil deGrasse Tyson.ts"
Generally only News type programs or specials don't get a good match but there are some files like "The Daily Show With Jon Stewart" that also don't match well with Season\Episode information.
The non Season\Episode naming standard does not seem to scan into Kodi without the .nfo file.
For that reason I run the second IGL lookup just to add the nfo file.
This approach generally gets everything into Kodi but since I use multiple recording Libraries I can end up with multiple folders in Kodi for a show like "The Daily Show With Jon Stewart".
I may have an entry for the show for each recording drive instead of one folder for all episodes of a show. (So not all episodes are grouped together)
Questions:
Is there another approach where I can only create the .nfo file when there is not a Season\Episode match? (Or another approach in general that might work better)
Also: I see the Season\Episode information in the Guide before the recording in most cases but it does not appear to get used in the rename process. I see in the IGL log that the Season\Episode data seems to be missing.
Is there an option that might force it to rename with the Guide Season\Episode data?
Lastly: I was able to fix one issue I was having by updating the version of IGL I was using. But...the update seemed to be buried in the forum. Is there a location where the latest beta version of IGL is always located?
Log from the Daily show rename: (from Schedules Direct)
[...startup]
2015-04-24 20:22:59.259 [DEBUG][1] imageGrabLite, Version=2.2.5530.32668, Culture=neutral, PublicKeyToken=null
2015-04-24 20:22:59.259 [DEBUG][1] Command Line --oid 17621 --season --rename --nfo
2015-04-24 20:22:59.276 [DEBUG][1] Rename file True
2015-04-24 20:22:59.323 [DEBUG][1] Searching select scheduled_recording.name, event_details, start_time, filename, service_type from scheduled_recording, channel, channel_mapping where scheduled_recording.oid = 17621 limit 1
2015-04-24 20:22:59.340 [DEBUG][1] Zap2it reference http://tvlistings.zap2it.com/tv/the-dail...2930532516
2015-04-24 20:22:59.340 [DEBUG][1] Zap2it image page http://www.zap2it.com/tv/the-daily-show-...2930530000
2015-04-24 20:22:59.342 [DEBUG][1] Subtitle: Length=19 Neil deGrasse Tyson
2015-04-24 20:22:59.347 [DEBUG][1] OID is 4009678
2015-04-24 20:22:59.347 [DEBUG][1] Season is 0
2015-04-24 20:22:59.347 [DEBUG][1] Episode is 0
2015-04-24 20:22:59.347 [DEBUG][1] OriginalAirDate is 2015-04-23
2015-04-24 20:22:59.347 [DEBUG][1] First run
2015-04-24 20:22:59.347 [DEBUG][1] Recorded 2015-04-23
2015-04-24 20:22:59.347 [DEBUG][1] Record Ended 2015-04-23
2015-04-24 20:22:59.347 [DEBUG][1] Meta files exists C:\Users\Public\NPVR\Media/Shows/The Daily Show With Jon Stewart.xml
2015-04-24 20:22:59.354 [DEBUG][1] Episodic: True C:\Users\Public\NPVR\Plugins/SearchLite/Series/The Daily Show With Jon Stewart.xml
2015-04-24 20:22:59.354 [DEBUG][1] C:\Users\Public\NPVR\Media/Shows/The Daily Show With Jon Stewart.xml
2015-04-24 20:22:59.392 [DEBUG][1] Using daily renaming rules
2015-04-24 20:22:59.393 [DEBUG][1] The Daily Show With Jon Stewart.2015-04-23.Neil deGrasse Tyson
2015-04-24 20:22:59.405 [DEBUG][1] PlaybackPositionHelper.GetPlaybackPosition(D:\DVR\The Daily Show With Jon Stewart\The Daily Show With Jon Stewart_20150423_22590700.ts)
2015-04-24 20:22:59.407 [DEBUG][1] D:\DVR\The Daily Show With Jon Stewart\The Daily Show With Jon Stewart_20150423_22590700.ts
2015-04-24 20:22:59.407 [DEBUG][1] False
2015-04-24 20:22:59.407 [DEBUG][1] False
PostProcessing.bat: (Runs Comskip after the rename)
"C:\Program Files (x86)\NPVR\ImageGrabLite.exe" --oid %3 --season --rename --nfo
"C:\Program Files (x86)\NPVR\ImageGrabLite.exe" --oid %3 --nfo
SET SQLITE="C:\Users\Public\NPVR\Utility\sqlite3.exe"
SET DB="C:\Users\Public\NPVR\npvr.DB3"
SET SQL=Select filename from SCHEDULED_RECORDING WHERE oid=%3;
Echo %SQL% > Xsqlscript.txt
%SQLITE% %DB% < Xsqlscript.txt > XOutput.txt
for /f "tokens=1 delims=|" %%a in (XOutput.txt) do Set ThePath="%%a%"
@echo on
cd /d "C:\Data\comskip"
hiderun comskip %ThePath%