Results 1 to 10 of 10

Thread: How to get proper names for French episodes recording?

  1. #1
    Join Date
    May 2018
    Location
    canada
    Posts
    4

    How to get proper names for French episodes recording?

    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

  2. #2
    Join Date
    Nov 2003
    Location
    NextPVR HQ, Wellington, New Zealand
    Posts
    86,144
    Quote Originally Posted by virtualpaul View Post
    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.

    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?

  3. #3
    Join Date
    May 2018
    Location
    canada
    Posts
    4
    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?

  4. #4
    Join Date
    May 2018
    Location
    canada
    Posts
    4
    Quote Originally Posted by sub View Post
    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

  5. #5
    Join Date
    Dec 2005
    Location
    UK
    Posts
    2,804
    Quote Originally Posted by virtualpaul View Post
    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?
    Quote Originally Posted by virtualpaul View Post
    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.....ImageGrabLite
    i5 750 2.67 GHz, 6 Gig, 1000 Gig, Nvidia N710
    2 x Hauppauge WinTV QuadHD DVB-T2

  6. #6
    Join Date
    Nov 2003
    Location
    NextPVR HQ, Wellington, New Zealand
    Posts
    86,144
    Quote Originally Posted by virtualpaul View Post
    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.

  7. #7
    Join Date
    May 2018
    Location
    Canada
    Posts
    2

    vbscript tp change file name, to be called in postprocessing.bat

    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

  8. #8
    Join Date
    May 2018
    Location
    canada
    Posts
    4
    Quote Originally Posted by sub View Post
    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:
    echo %time% OID = %3 >> Processed.txt
    "C:\Program Files (x86)\NPVR\imageGrabLite.exe" --oid %3 --rename --season

    Also, not related, but I could not find how to change my password in my profile.
    Last edited by virtualpaul; 2018-05-21 at 03:19 PM.

  9. #9
    Join Date
    May 2006
    Location
    Canada
    Posts
    26,095
    There is an imagegrabe log file created with the other logs.

    Martin

  10. #10
    Join Date
    Dec 2005
    Location
    UK
    Posts
    2,804
    Quote Originally Posted by virtualpaul View Post
    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:
    echo %time% OID = %3 >> Processed.txt
    "C:\Program Files (x86)\NPVR\imageGrabLite.exe" --oid %3 --rename --season
    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.
    i5 750 2.67 GHz, 6 Gig, 1000 Gig, Nvidia N710
    2 x Hauppauge WinTV QuadHD DVB-T2

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •