NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Legacy (v4.x and earlier) v
« Previous 1 … 139 140 141 142 143 … 433 Next »
File Naming - show_yyyymmdd_hhmmssff - Add Date Separators (yyyy-mm-dd)

File Naming - show_yyyymmdd_hhmmssff - Add Date Separators (yyyy-mm-dd)
blaal02
Offline

Junior Member

Posts: 19
Threads: 2
Joined: Apr 2015
#11
2015-08-14, 03:43 PM (This post was last modified: 2015-08-14, 10:02 PM by blaal02.)
Hi Sub,
Everything seems to be working quite nicely now for my case. Imagegrablite updates the file names to something that Kodi will process, and updates NPVR too, so it's automatically cleaning up the older recordings. I believe imagegrablite has a --nfo option that will create a dummy .nfo file if the show isn't found in thetvdb database. I tried that, but in my case, it showed up in Kodi with that huge long title, and no indication of which day the recording was actually from. So I went the other route & added what I wanted to thetvdb.com.
The end of my PostProcessing.bat file now says:

if %5 == "NBC Nightly News" imagegrablite --oid %3 --rename
"C:\Program Files\cURL\bin\curl.exe" -i -X POST -d "{\"jsonrpc\": \"2.0\", \"method\": \"VideoLibrary.Scan\", \"id\": \"mybash\"}" -H "content-type:application/json" http://kodi:@htpc:808/jsonrpc

Everything else I'm recording was working fine, so I decided I'd only do this when I knew there was a problem (hence the if %5 == "NBC...)

One observation; Kodi didn't seem to like switching back & forth between using the scrapers & using .nfo files. I'd get one file working with a .nfo, then try adding another file that should scrape properly, and had before creating the .nfo for the other file - and it wouldn't! Tried deleting all the .nfo's, tried cleaning the library, tried deleting & re-adding the source; nothing helped. Probably overkill, but I took to uninstalling Kodi (and deleting the user data) & reinstalling between tests!

Thanks for all the pointers!
Sandy
blaal02
Offline

Junior Member

Posts: 19
Threads: 2
Joined: Apr 2015
#12
2015-12-20, 04:44 PM
Just in case anyone's doing the same thing, NBC and/or Schedules Direct just changed the name of the news; it's now 'NBC Nightly News with Lester Holt'. TheTVdb added this as an alias (so the Kodi scraper is OK with it), but imagegrablite, doesn't pick it up anymore. So I did end up doing my own rename in postprocessing.bat:

@echo off
rem if the input file includes a date, add punctuation
setlocal enableDelayedExpansion
for /f "tokens=1-4 delims=/ " %%i in ("%date%") do set YYYYMMDD=%%l%%j%%k&set YYYY-MM-DD=%%l-%%j-%%k
set in=%1
set out=!in:%YYYYMMDD%=%YYYY-MM-DD%!
if not %in% == %out% (
move %in% %out%
NScriptHelper.exe -rename %in% %out%
)

comskip %out%

rem and have kodi clean the library to remove shows where nextpvr tidied up old ones, then refresh
"C:\Program Files\cURL\bin\curl.exe" -i -X POST -d "{\"jsonrpc\": \"2.0\", \"method\": \"VideoLibrary.Clean\", \"id\": \"mybash\"}" -H "content-type:application/json" http://kodi:@htpc:808/jsonrpc
ping -n 1 -w 10000 2.2.2.2
"C:\Program Files\cURL\bin\curl.exe" -i -X POST -d "{\"jsonrpc\": \"2.0\", \"method\": \"VideoLibrary.Scan\", \"id\": \"mybash\"}" -H "content-type:application/json" http://kodi:@htpc:808/jsonrpc

endlocal


Sub, if you see this, couple of questions...
  • This all works great in post processing, but I was thinking of trying comskip in parallel processing, and for that, I think it would still be helpful if NextPVR allowed the original file name to be configured (i.e. punctuate the date to start with).
  • Or, this whole thread is all about a workaround to get these shows into Kodi libraries so they can be played with .edl files. Have you heard anything from the Kodi folks about if/when Kodi might start supporting http streamed .edl files? (This isn't by any chance part of the Jarvis PVR rewrite is it?)

Thanks,
Sandy
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,170
Threads: 958
Joined: May 2006
#13
2015-12-20, 11:48 PM
iGL should work with aliases perhaps the new full SD title isn't being passed properly or is truncated by NextPVR. I'd really need to see the igl log if you wanted this work work.

Martin
blaal02
Offline

Junior Member

Posts: 19
Threads: 2
Joined: Apr 2015
#14
2015-12-21, 01:36 AM
Hi Martin,
Here's the log from the last time I tried to imagegrab one of these...
[...startup]
2015-12-17 18:11:54.800 [DEBUG][1] imageGrabLite, Version=2.2.5433.16677, Culture=neutral, PublicKeyToken=null
2015-12-17 18:11:54.800 [DEBUG][1] Command Line --oid 4243 --rename
2015-12-17 18:11:54.831 [DEBUG][1] Rename file True
2015-12-17 18:11:54.972 [DEBUG][1] Searching select scheduled_recording.name, event_details, start_time, filename, service_type from scheduled_recording, channel, channel_mapping where scheduled_recording.oid = 4243 and scheduled_recording.channel_oid = channel.oid and scheduled_recording.channel_oid = channel_mapping.channel_oid and scheduled_recording.capture_source_oid = channel_mapping.capture_source_oid
2015-12-17 18:11:55.003 [DEBUG][1] Zap2it reference http://tvlistings.zap2it.com/tv/nbc-nigh...3034510014
2015-12-17 18:11:55.003 [DEBUG][1] Zap2it image page http://www.zap2it.com/tv/nbc-nightly-new...3034510000
2015-12-17 18:11:55.003 [DEBUG][1] Subtitle: Length=0
2015-12-17 18:11:55.019 [DEBUG][1] OID is 1780209
2015-12-17 18:11:55.019 [DEBUG][1] OriginalAirDate is 2015-12-17
2015-12-17 18:11:55.019 [DEBUG][1] First run
2015-12-17 18:11:55.019 [DEBUG][1] Recorded 2015-12-17
2015-12-17 18:11:55.019 [DEBUG][1] Record Ended 2015-12-17
2015-12-17 18:11:55.065 [DEBUG][1] http://www.thetvdb.com/api/GetSeries.php...ester+holt
2015-12-17 18:11:55.362 [DEBUG][1] nbc nightly news
2015-12-17 18:11:55.362 [DEBUG][1] nbc nightly news with lester holtnbc nightly news with brian williams
2015-12-17 18:11:55.362 [DEBUG][1] Checking for other years
2015-12-17 18:12:16.581 [ERROR][1] Read Error Data at the root level is invalid. Line 1, position 1.

(logs from the previous 3 days are the same)
Thanks,
Sandy
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,170
Threads: 958
Joined: May 2006
#15
2015-12-21, 03:05 AM
Are you using this version http://forums.nextpvr.com/showthread.php...post493860

Martin
blaal02
Offline

Junior Member

Posts: 19
Threads: 2
Joined: Apr 2015
#16
2015-12-21, 02:21 PM
umm, no!
I had one from 11/16/2014. I'll give the new one a shot tonight.
Thanks,
Sandy
pkscout
Offline

Senior Member

USA
Posts: 464
Threads: 50
Joined: May 2014
#17
2015-12-21, 11:00 PM
I'm not really supporting this for external use, but I wrote a script that does some file renaming to get things into Kodi. What I did for things like news was use the S00E0x and then had the script write a basic .nfo file. For other stuff the script will take the episode and season info from NPVR (if it's available). I use those mostly for things that aren't well updated in thetvdb. After it does the rename it saves that info back to NPVR and then tells Kodi to do a library update. Anyway, if you'd like to try it, it's available at:

https://github.com/pkscout/trigger.xbmcscan

Check the readme. It requires python by installed along with a couple extra modules.
blaal02
Offline

Junior Member

Posts: 19
Threads: 2
Joined: Apr 2015
#18
2015-12-22, 11:00 PM
Hi pkscout, I'll take a look, thanks!
The case I've got here is when NPVR doesn't have any kind of SxxEyy to work with, so it's using a date-time in the file name. And indeed thedbdb wasn't well updated for the show I was after, so I've just been doing the updates myself! The problem is finding something in the file name that can be matched to thetvdb - and I found that so long as the date was formatted as yyyy-mm-dd, the Kodi scraper would match to thetvdb aired date.

I think all of these rename methods are fine for postprocessing. But ideally, I'd like to look at parallel processing so I can start watching shortly after the show has started recording. Any idea if NPVR can rename a file as it's recording it? (using any of these NPVR rename methods).
If not, then maybe your .nfo file creation (without changing the name of the currently recording show) may be the way to go.
Thanks,
Sandy
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,807
Threads: 769
Joined: Nov 2003
#19
2015-12-22, 11:21 PM
blaal02 Wrote:I think all of these rename methods are fine for postprocessing. But ideally, I'd like to look at parallel processing so I can start watching shortly after the show has started recording. Any idea if NPVR can rename a file as it's recording it? (using any of these NPVR rename methods).
No, you won't be able to rename it until the recording is complete.
blaal02
Offline

Junior Member

Posts: 19
Threads: 2
Joined: Apr 2015
#20
2015-12-22, 11:52 PM
Hi Sub,
Thanks, saves me going anywhere down that path! (Unfortunate, but I'm not surprised, it was a long shot).
Any idea if anything like this is possible - watching something through Kodi while comskip is working in parallel? (presumably, parallelprocessing would need to add the file to the Kodi library ast NPRV is writing to it). Or have you heard if they've fixed Kodi to read .edl when streaming (recordings from NPVR via http)?
Thanks,
Sandy
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (4): « Previous 1 2 3 4 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  incorrect frequency in adelaide .ini file spin35 5 3,111 2023-02-01, 05:40 PM
Last Post: sub
  ts file shows length too long? SuttonWillow 2 1,990 2021-03-15, 01:56 PM
Last Post: mvallevand
  Unhandled Exception: file name too long (idiots at pbs made it super long) jobby99 1 1,451 2020-10-29, 09:40 PM
Last Post: mvallevand
  ts file shows length too long SamM 4 2,391 2020-10-06, 02:45 AM
Last Post: Ehrlichia
  EPG displaying small subset of xmltv file. Esteban 9 3,103 2020-07-18, 10:07 PM
Last Post: Esteban
  Recordings Date Format NumberFive 3 2,063 2020-05-14, 11:08 PM
Last Post: NumberFive
  Max File Size jrockow 2 1,569 2020-04-21, 02:38 PM
Last Post: jrockow
  Skip causes fast-forward to the end of the file madbrain 9 4,031 2020-02-27, 10:24 PM
Last Post: Esch
  Be notified when EPG (xml file) is empty ? nonob 2 1,475 2020-02-14, 05:00 PM
Last Post: nonob
  Recording extra 0-byte .ts file seeker_ktf 6 2,759 2020-01-25, 08:40 PM
Last Post: seeker_ktf

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

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

Linear Mode
Threaded Mode