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 … 51 52 53 54 55 … 433 Next »
How to get proper names for French episodes recording?

How to get proper names for French episodes recording?
virtualpaul
Offline

Junior Member

Posts: 45
Threads: 9
Joined: May 2018
#1
2018-05-17, 10:58 PM
Is there a setting somewhere that will allow NextPvr to name French episodes recording properly?

It works for English episodes but right now I am getting names like this:
name of the tv show 20180224_09541005.ts

These names are not visible when using Plex as it wants something like this (where xx is the season, and yy is the episode number):
name of the tv show.SxxEyy.name.of.the.episode
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,627
Threads: 767
Joined: Nov 2003
#2
2018-05-18, 12:57 AM
virtualpaul Wrote:Is there a setting somewhere that will allow NextPvr to name French episodes recording properly?
Why what happens with French shows? You'll probably need to post the logs showing a recording of a French show.

Quote:It works for English episodes but right now I am getting names like this:
name of the tv show 20180224_09541005.ts

These names are not visible when using Plex as it wants something like this (where xx is the season, and yy is the episode number):
name of the tv show.SxxEyy.name.of.the.episode
What EPG source are you using? Does it provide season and episodes numbers?
virtualpaul
Offline

Junior Member

Posts: 45
Threads: 9
Joined: May 2018
#3
2018-05-18, 11:35 AM
Sorry for being unclear.
The English episodes are named properly with the seasons and episode number.
From your answer I deduce that the naming is based on the EPG source only then.
I looked at the EPG data and confirmed that there are no season/episode numbers for French shows.
I thought some online databases where searched or something.

Are there any other EPG sources besides schedulesdirect, tvguide and zap2it?
virtualpaul
Offline

Junior Member

Posts: 45
Threads: 9
Joined: May 2018
#4
2018-05-18, 11:41 AM
sub Wrote:Why what happens with French shows? You'll probably need to post the logs showing a recording of a French show.

What EPG source are you using? Does it provide season and episodes numbers?

If the season/episode numbers are not present in the EPG source, is there a way to force a format list this instead? Where '01' would either increase on every recording or some other logic.
name of the tv show.S99E01.name.of.the.episode
Graham
Offline

Posting Freak

UK
Posts: 4,058
Threads: 102
Joined: Dec 2005
#5
2018-05-18, 12:25 PM
virtualpaul Wrote:I looked at the EPG data and confirmed that there are no season/episode numbers for French shows.
Are there any other EPG sources besides schedulesdirect, tvguide and zap2it?

virtualpaul Wrote:If the season/episode numbers are not present in the EPG source, is there a way to force a format list this instead? Where '01' would either increase on every recording or some other logic.
name of the tv show.S99E01.name.of.the.episode

Does this do what you want ... http://www.nextpvr.com/nwiki/pmwiki.php?...geGrabLite
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,627
Threads: 767
Joined: Nov 2003
#6
2018-05-18, 06:02 PM
virtualpaul Wrote:If the season/episode numbers are not present in the EPG source, is there a way to force a format list this instead? Where '01' would either increase on every recording or some other logic.
name of the tv show.S99E01.name.of.the.episode
I wouldn't be making a change like that. If I don't know the season/episode numbers, it's better for me to just make files with the date in them. As Graham mentioned, you could try the imagegrablite lite utility, which has the ability to look up season/episode info online and rename recordings.
HioWerBji
Offline

Junior Member

Posts: 12
Threads: 4
Joined: May 2018
#7
2018-05-19, 03:25 PM
I have the same need so I created this little VB script to change File name.

Put this line in the postprocessing.bat file :

Code:
cscript //nologo C:\Users\Public\NPVR\Scripts\ checkepisode.vbs %1 "%~n1" %5 %3


Will check is need to add Season and Episode number. Season will be Month, and Episode will be Day, + OID at the end to make sure no two file name the same
Will leave file with (YEAR) alone since they are movie!
Finaly will update NextPVR database with new file name

create a file called checkepisode.vbs and copy code in it.

Code:
set Args = Wscript.Arguments

set Args = Wscript.Arguments
if Args.Count < 4 or Args.Count > 4 then
    wscript.echo( "? Invalid number of arguments - usage is: ")
    wscript.echo( " cscript checkepisode.vbs <NPVRfile> <finename> <TITLE> <OID>" )
    wscript.echo( " <NPVRfile> = %1" )
    wscript.echo( " <finename> filename without extension = %~n1" )
    wscript.echo( " <TITLE> = %5" )
    wscript.echo( " <OID> = %3" )
    Wscript.Quit 2
end if

sourceFile = args(1)

Set re = New RegExp
re.Pattern = "([sS]([0-9]{2,}|[X]{2,})[eE]([0-9]{2,}|[Y]{2,}))"
re.IgnoreCase = True
Set ve = New RegExp
ve.Pattern = "([(]([0-9]{4})[)])"
ve.IgnoreCase = True

If ve.Test(sourceFile) Then
  Wscript.Echo( "FOUND MOVIE INFO STOP PROCESSING")
else

Dim dt
dt=now

If re.Test(sourceFile) Then
  Wscript.Echo( "FOUND SERIE INFO STOP PROCESSING")
else
i = month(dt)
s = Right("0" & i, 2)  
j = day(dt)
e = Right("0" & j, 2)  

Set objFSO = CreateObject("Scripting.FileSystemObject")

tochange=args(2) & " S" & s & "E" & e & " " & args(3)
myString=Replace(args(0),args(1),tochange)
Wscript.Echo(args(0)& " " &args(1)& " " &tochange)
Wscript.Echo(myString)
objFSO.MoveFile args(0) , myString
' Moving file with serie info

Set objShell = Wscript.CreateObject("Wscript.Shell")

strPath1 = """C:\Program Files (x86)\NPVR\NScriptHelper.exe"""
strAttr1 = " -Rename "
strAttr2 = """" & args(0) & """"
strAttr3 = " " & """" & myString & """"
Wscript.Echo(strPath1 & strAttr1 & strAttr2 & strAttr3)
objShell.Run strPath1 & strAttr1 & strAttr2 & strAttr3
' Updated NPVR database with new file name


End If
end if

Wscript.quit 0
virtualpaul
Offline

Junior Member

Posts: 45
Threads: 9
Joined: May 2018
#8
2018-05-21, 03:13 PM (This post was last modified: 2018-05-21, 03:19 PM by virtualpaul.)
sub Wrote:I wouldn't be making a change like that. If I don't know the season/episode numbers, it's better for me to just make files with the date in them. As Graham mentioned, you could try the imagegrablite lite utility, which has the ability to look up season/episode info online and rename recordings.

I tried adding the following to 'c:\users\public\npvr\scripts\PostProcessing.bat' but I see no changes. It does not look like it's running since I added an 'echo' and does not see it in 'processed.txt' after a few recordings:
[INDENT]echo %time% OID = %3 >> Processed.txt
"C:\Program Files (x86)\NPVR\imageGrabLite.exe" --oid %3 --rename --season[/INDENT]

Also, not related, but I could not find how to change my password in my profile.
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,794
Threads: 954
Joined: May 2006
#9
2018-05-21, 03:37 PM
There is an imagegrabe log file created with the other logs.

Martin
Graham
Offline

Posting Freak

UK
Posts: 4,058
Threads: 102
Joined: Dec 2005
#10
2018-05-21, 03:58 PM
virtualpaul Wrote:I tried adding the following to 'c:\users\public\npvr\scripts\PostProcessing.bat' but I see no changes. It does not look like it's running since I added an 'echo' and does not see it in 'processed.txt' after a few recordings:
[INDENT]echo %time% OID = %3 >> Processed.txt
"C:\Program Files (x86)\NPVR\imageGrabLite.exe" --oid %3 --rename --season[/INDENT]

PostProcessing.bat (and other batch files) are run by the NextPVR Recording Service and run in the same user account as the service. This is the System user account. One consequence is that the paths to files may not be as expected. It is recommended that the very first command in these batch files should be a CD command to change to your chosen folder.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (3): 1 2 3 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Recording movies / TV to XBMC directory stucture spinnaker 10 3,315 2024-06-03, 03:56 AM
Last Post: Rod Hutchinson
  Not recording errors vidwiz 4 851 2024-04-17, 05:39 PM
Last Post: mvallevand
  Add Series/Episode Info to Recording Metadata andrewj 2 939 2023-11-20, 03:42 PM
Last Post: sub
  Recording to a network drive woes. 2leftfeet 12 7,044 2022-04-05, 08:03 PM
Last Post: mvallevand
  device needed for recording David209 2 1,672 2021-04-04, 08:47 AM
Last Post: David209
  PC not going to sleep after recording LeoL 7 3,134 2021-04-01, 07:17 PM
Last Post: Handy.Man
  HDHomerun recording bizzarely not working Jean0987654321 3 1,956 2021-03-27, 03:23 PM
Last Post: Jean0987654321
Video Restrict Recording Space foucomm 1 1,272 2021-01-30, 09:25 PM
Last Post: mvallevand
  Directory dropdown on the recording edit dialog MicahMakenzie 1 1,447 2021-01-11, 04:37 PM
Last Post: Graham
  Recording service stopped or not running at scheduled time MattInetroit 3 1,834 2021-01-08, 12:03 AM
Last Post: mvallevand

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

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

Linear Mode
Threaded Mode