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
#1
2015-08-13, 12:31 AM
Hi,
I'm wondering if there's a way that I can change the name of the file that's generated for certain shows.
Where there's a proper season/episode - SnnEnn, everything is great. But when there isn't NPVR seems to use a yyyymmdd_hhmmssff suffix. E.g. I like to record the daily news, and I today I got:
NBC Nightly News_20150812_17301800.ts
Problem is that the TheTVDB scraper that Kodi uses doesn't seem to want to import that into its library. However, if the name could be made:
NBC Nightly News_2015-08-12_17301800.ts
Then everything looks like it works perfectly.
Is this something I can configure? Or would an option/code change be possible?

The last piece is that the "episode" needs to be in TheTVDB with the appropriate aired date - but that I can add.
I'm trying to add these to the library rather than streaming from NPVR because I'm also running comskip, and Kodi doesn't seem to look for the .edl files when streaming - unless you know different?

Thanks,
Sandy
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,986
Threads: 770
Joined: Nov 2003
#2
2015-08-13, 01:06 AM
There is no built in way to get a filename like that. You could of course implement your own renaming in PostProcessing.bat though.
blaal02
Offline

Junior Member

Posts: 19
Threads: 2
Joined: Apr 2015
#3
2015-08-13, 04:35 AM
Hi Sub,
Thanks for the update - I was afraid of that!
I was thinking about my own renames, but I was worried that NPVR would lose control of the files, so it wouldn't be able to retain "just the last 3 episodes" - which is now working perfectly.
However, I just tried ImageGrabLite, and I think that might be the answer - it renames my files (all of the various .ts, .edl ... versions) to:
NBC Nightly News.2015-08-12.Reports and analysis of the day's national and international newsworthy events.ts
Which is a bit unwieldy (not quite sure where it got the description from) - but it has the date in the right format; Kodi seems to scrape it properly, and replaces the big long title in the file name with the one from TheTVDB (which is just the corresponding date).
I'm just waiting for tomorrow evening to see if it tidies up the oldest set of files (I think I saw that ImagerGrabLite updates the NPVR database, so I'm hopeful!)
Thanks again,
Sandy
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,986
Threads: 770
Joined: Nov 2003
#4
2015-08-13, 04:44 AM
blaal02 Wrote:I was thinking about my own renames, but I was worried that NPVR would lose control of the files, so it wouldn't be able to retain "just the last 3 episodes" - which is now working perfectly.
If you do end up renaming them yourself, you'd also call the following, to let NextPVR know the recording filename has changed. It'd still be treated as the original recording, just a different filename.

NScriptHelper.exe -rename <sourcefile> <destfile>
ReplayHarry
Offline

Member

Posts: 87
Threads: 12
Joined: Feb 2014
#5
2015-08-13, 03:16 PM
sub Wrote:If you do end up renaming them yourself, you'd also call the following, to let NextPVR know the recording filename has changed. It'd still be treated as the original recording, just a different filename.

NScriptHelper.exe -rename <sourcefile> <destfile>

So would you put that NScriptHelper.exe above in your postprocessing.bat file?
Graham
Offline

Posting Freak

UK
Posts: 4,058
Threads: 102
Joined: Dec 2005
#6
2015-08-13, 03:25 PM
ReplayHarry Wrote:So would you put that NScriptHelper.exe above in your postprocessing.bat file?

Yes ... but ... nscripthelper does not change the file name. nscripthelper updates the database so that the filename in the database matches the name of the file after some other command has changed the file name of the file.
ReplayHarry
Offline

Member

Posts: 87
Threads: 12
Joined: Feb 2014
#7
2015-08-13, 03:29 PM
blaal02 Wrote:Hi Sub,
Thanks for the update - I was afraid of that!
I was thinking about my own renames, but I was worried that NPVR would lose control of the files, so it wouldn't be able to retain "just the last 3 episodes" - which is now working perfectly.
However, I just tried ImageGrabLite, and I think that might be the answer - it renames my files (all of the various .ts, .edl ... versions) to:
NBC Nightly News.2015-08-12.Reports and analysis of the day's national and international newsworthy events.ts
Which is a bit unwieldy (not quite sure where it got the description from) - but it has the date in the right format; Kodi seems to scrape it properly, and replaces the big long title in the file name with the one from TheTVDB (which is just the corresponding date).
I'm just waiting for tomorrow evening to see if it tidies up the oldest set of files (I think I saw that ImagerGrabLite updates the NPVR database, so I'm hopeful!)
Thanks again,
Sandy

One thing I know for sure, the standard NextPvr filenames (NBC Nightly News_20150812_17301800.ts) won't scrape into Kodi, even if you have an associated .nfo file. They would with Gotham, but after that, no luck. I went the rename root too, and that works, but then I had an issue where NextPvr didn't manage the number of episodes correctly as you were testing. Once I get a reply about how to use NScriptHelper, I will give that a try. But in the meanwhile I have been back to Gotham which works perfectly.
ReplayHarry
Offline

Member

Posts: 87
Threads: 12
Joined: Feb 2014
#8
2015-08-13, 03:37 PM
Graham Wrote:Yes ... but ... nscripthelper does not change the file name. nscripthelper updates the database so that the filename in the database matches the name of the file after some other command has changed the file name of the file.

So if I rename my file 1st to (NBC Nightly News.S01E01.News.ts), then I would put the following command in my postprocessing bat file.
NScriptHelper.exe -rename <NBC Nightly News_20150812_17301800.ts> <NBC Nightly News.S01E01.News.ts>

Do I need the full path filename, or just the name as noted above?
Thanks much for your assistance. If I can get this working ok, I might just go back to the latest version of Kodi.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,986
Threads: 770
Joined: Nov 2003
#9
2015-08-13, 06:06 PM
ReplayHarry Wrote:Do I need the full path filename, or just the name as noted above?
It needs the full path.
ReplayHarry
Offline

Member

Posts: 87
Threads: 12
Joined: Feb 2014
#10
2015-08-13, 07:23 PM
sub Wrote:It needs the full path.

Thanks. That it what I figured. I will give it a go.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (4): 1 2 3 4 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  incorrect frequency in adelaide .ini file spin35 5 3,355 2023-02-01, 05:40 PM
Last Post: sub
  ts file shows length too long? SuttonWillow 2 2,208 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,615 2020-10-29, 09:40 PM
Last Post: mvallevand
  ts file shows length too long SamM 4 2,592 2020-10-06, 02:45 AM
Last Post: Ehrlichia
  EPG displaying small subset of xmltv file. Esteban 9 3,435 2020-07-18, 10:07 PM
Last Post: Esteban
  Recordings Date Format NumberFive 3 2,262 2020-05-14, 11:08 PM
Last Post: NumberFive
  Max File Size jrockow 2 1,732 2020-04-21, 02:38 PM
Last Post: jrockow
  Skip causes fast-forward to the end of the file madbrain 9 4,440 2020-02-27, 10:24 PM
Last Post: Esch
  Be notified when EPG (xml file) is empty ? nonob 2 1,642 2020-02-14, 05:00 PM
Last Post: nonob
  Recording extra 0-byte .ts file seeker_ktf 6 3,037 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