NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 28 29 30 31 32 … 93 Next »
Rename Recording

 
  • 0 Vote(s) - 0 Average
Rename Recording
leecole
Offline

Junior Member

Posts: 43
Threads: 9
Joined: Jan 2007
#261
2007-01-26, 06:15 PM (This post was last modified: 2007-01-27, 03:41 PM by leecole.)
Like many others, I need to use PostProcess,bat, but I also wish to rename the recording to include Episode. I would like to propose a way to return the new recording name back to the PostProcess.bat.
In your addepisode.au3, if you change the recording name:
FileWriteLine(@ScriptDir & "\NewFileName.bat","Set new=" & $NewFileName)

then in PostProcess.bat an example:
@echo off
set new=%1
addepisode.exe %1 "{show}{[-(]}{episode}{[)]}-{monthnameshort}-{day}-{yearshort}"
if EXIST NewFileName.bat goto OK
goto nonew
:ok <= This should read: Colon followed by ok
call NewFileName.bat
del NewFileName.bat
:nonew
"D:\Program Files\AutoXvid\AutoXvid.exe" %new%

If your program creates the NewFileName.bat, my program gets the new name.
adam714
Offline

Junior Member

Posts: 35
Threads: 4
Joined: Sep 2005
#262
2007-08-28, 03:00 AM
after recording the programs show up under Manage Recordings in EWA but once the postprocessing batch runs and the program is renamed, it is removed from Manage Recordings. i assume because EWA is referencing the files original name and once it is renamed, EWA thinks it is deleted. the only think in my postprocessing.bat is:

call comcut %1
RenameRecording.exe -t %1 >>rename.log
:eof

I've posted this before but no resolution. i've since rebuilt my pvr from scratch and the same problem occurs. hoping someone will have a solution.

thanks
gEd
Offline

Posting Freak

London
Posts: 3,518
Threads: 100
Joined: Jan 2005
#263
2007-08-28, 07:52 AM
your problem is that gbpvr is removing the recording from your recordings folder becuase it can no longer find the file. this is probably because renamerecording failed to update the database with the new file name.

ewa reads the recordings from the database.

the question is : why was renamerecordings unable to update the file name in the database?
“If this is the way Queen Victoria treats her prisoners, she doesn't deserve to have any.”
adam714
Offline

Junior Member

Posts: 35
Threads: 4
Joined: Sep 2005
#264
2007-08-29, 11:41 PM
well that's one step closer. can you suggest where i should look?
gEd
Offline

Posting Freak

London
Posts: 3,518
Threads: 100
Joined: Jan 2005
#265
2007-08-29, 11:53 PM
i think renamerecordings may not be working properly with the latest gbpvr database.

I use addepisode whcih does the same thing but with more options. works fine for me with 1.0.6

http://gbpvr.com/pmwiki/pmwiki.php/Utility/AddEpisode
“If this is the way Queen Victoria treats her prisoners, she doesn't deserve to have any.”
Ton
Offline

Member

Posts: 233
Threads: 16
Joined: Aug 2005
#266
2007-08-30, 12:22 AM
adam714 Wrote:after recording the programs show up under Manage Recordings in EWA but once the postprocessing batch runs and the program is renamed, it is removed from Manage Recordings. i assume because EWA is referencing the files original name and once it is renamed, EWA thinks it is deleted. the only think in my postprocessing.bat is:

call comcut %1
RenameRecording.exe -t %1 >>rename.log
:eof

I've posted this before but no resolution. i've since rebuilt my pvr from scratch and the same problem occurs. hoping someone will have a solution.

thanks

Hi,

Could you post youre "rename.log" so I can see what's going on?? As far a I know, it should work fine with the latest version (haven't heard anything to the contrary).

Regards
//Ton
adam714
Offline

Junior Member

Posts: 35
Threads: 4
Joined: Sep 2005
#267
2007-08-31, 09:52 PM
RenameRecording v2.1 build20051223
...using System.Data.SQLite.SQLiteFactory DB Provider Factory
Title: Unwrapped
Argument: -t E:\My Videos\Unwrapped\Unwrapped_20070827_21002130.mpg
Episode name: Unwrapped - Hamburgers
Episode Oid: 5
Renaming file: E:\My Videos\Unwrapped\Unwrapped_20070827_21002130.mpg
to: E:\My Videos\Unwrapped\Unwrapped - Hamburgers.mpg
Renaming file: E:\My Videos\Unwrapped\Unwrapped_20070827_21002130.original.mpg
to: E:\My Videos\Unwrapped\Unwrapped - Hamburgers.mpg
System.ApplicationException: Error renaming program 'E:\My Videos\Unwrapped\Unwrapped_20070827_21002130.mpg' to 'Unwrapped - Hamburgers' (oid 5) ---> System.IO.IOException: Cannot create a file when that file already exists.

at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.__Error.WinIOError()
at System.IO.FileInfo.MoveTo(String destFileName)
at RenameRecording.RenameRecording.RenameRecordinga(String sEpisodeName, Int32 iEpisodeOid)
--- End of inner exception stack trace ---
at RenameRecording.RenameRecording.RenameRecordinga(String sEpisodeName, Int32 iEpisodeOid)
at RenameRecording.RenameRecording.RenameRecordingTitle(String sEpisodeName, Int32 iEpisodeOid)
at RenameRecording.RenameRecording.DoMain()
System.IO.IOException: Cannot create a file when that file already exists.

at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.__Error.WinIOError()
at System.IO.FileInfo.MoveTo(String destFileName)
at RenameRecording.RenameRecording.RenameRecordinga(String sEpisodeName, Int32 iEpisodeOid)
RenameRecording v2.1 build20051223
...using System.Data.SQLite.SQLiteFactory DB Provider Factory
Title: The Fresh Prince of Bel-Air
Argument: -t E:\My Videos\The Fresh Prince of Bel-Air\The Fresh Prince of Bel-Air_20070827_22002230.mpg
Episode name: The Fresh Prince of Bel-Air - Fresh Prince, The Movie
Episode Oid: 11
Renaming file: E:\My Videos\The Fresh Prince of Bel-Air\The Fresh Prince of Bel-Air_20070827_22002230.mpg
to: E:\My Videos\The Fresh Prince of Bel-Air\The Fresh Prince of Bel-Air - Fresh Prince, The Movie.mpg
Renaming file: E:\My Videos\The Fresh Prince of Bel-Air\The Fresh Prince of Bel-Air_20070827_22002230.original.mpg
to: E:\My Videos\The Fresh Prince of Bel-Air\The Fresh Prince of Bel-Air - Fresh Prince, The Movie.mpg
System.ApplicationException: Error renaming program 'E:\My Videos\The Fresh Prince of Bel-Air\The Fresh Prince of Bel-Air_20070827_22002230.mpg' to 'The Fresh Prince of Bel-Air - Fresh Prince, The Movie' (oid 11) ---> System.IO.IOException: Cannot create a file when that file already exists.

at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.__Error.WinIOError()
at System.IO.FileInfo.MoveTo(String destFileName)
at RenameRecording.RenameRecording.RenameRecordinga(String sEpisodeName, Int32 iEpisodeOid)
--- End of inner exception stack trace ---
at RenameRecording.RenameRecording.RenameRecordinga(String sEpisodeName, Int32 iEpisodeOid)
at RenameRecording.RenameRecording.RenameRecordingTitle(String sEpisodeName, Int32 iEpisodeOid)
at RenameRecording.RenameRecording.DoMain()
System.IO.IOException: Cannot create a file when that file already exists.

at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.__Error.WinIOError()
at System.IO.FileInfo.MoveTo(String destFileName)
at RenameRecording.RenameRecording.RenameRecordinga(String sEpisodeName, Int32 iEpisodeOid)
RenameRecording v2.1 build20051223
...using System.Data.SQLite.SQLiteFactory DB Provider Factory
Title: Scrubs
Argument: -t E:\My Videos\Scrubs\Scrubs_20070827_22302300.mpg
Episode name: Scrubs - My Fifteen Minutes
Episode Oid: 10
Renaming file: E:\My Videos\Scrubs\Scrubs_20070827_22302300.mpg
to: E:\My Videos\Scrubs\Scrubs - My Fifteen Minutes.mpg
Renaming file: E:\My Videos\Scrubs\Scrubs_20070827_22302300.original.mpg
to: E:\My Videos\Scrubs\Scrubs - My Fifteen Minutes.mpg
System.ApplicationException: Error renaming program 'E:\My Videos\Scrubs\Scrubs_20070827_22302300.mpg' to 'Scrubs - My Fifteen Minutes' (oid 10) ---> System.IO.IOException: Cannot create a file when that file already exists.

at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.__Error.WinIOError()
at System.IO.FileInfo.MoveTo(String destFileName)
at RenameRecording.RenameRecording.RenameRecordinga(String sEpisodeName, Int32 iEpisodeOid)
--- End of inner exception stack trace ---
at RenameRecording.RenameRecording.RenameRecordinga(String sEpisodeName, Int32 iEpisodeOid)
at RenameRecording.RenameRecording.RenameRecordingTitle(String sEpisodeName, Int32 iEpisodeOid)
at RenameRecording.RenameRecording.DoMain()
System.IO.IOException: Cannot create a file when that file already exists.

at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.__Error.WinIOError()
at System.IO.FileInfo.MoveTo(String destFileName)
at RenameRecording.RenameRecording.RenameRecordinga(String sEpisodeName, Int32 iEpisodeOid)
RenameRecording v2.1 build20051223
...using System.Data.SQLite.SQLiteFactory DB Provider Factory
Title: MythBusters
Argument: -t E:\My Videos\MythBusters\MythBusters_20070829_21002200.mpg
Episode name: MythBusters - Superhero Hour
Episode Oid: 4
Renaming file: E:\My Videos\MythBusters\MythBusters_20070829_21002200.mpg
to: E:\My Videos\MythBusters\MythBusters - Superhero Hour.mpg
Renaming file: E:\My Videos\MythBusters\MythBusters_20070829_21002200.original.mpg
to: E:\My Videos\MythBusters\MythBusters - Superhero Hour.mpg
System.ApplicationException: Error renaming program 'E:\My Videos\MythBusters\MythBusters_20070829_21002200.mpg' to 'MythBusters - Superhero Hour' (oid 4) ---> System.IO.IOException: Cannot create a file when that file already exists.

at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.__Error.WinIOError()
at System.IO.FileInfo.MoveTo(String destFileName)
at RenameRecording.RenameRecording.RenameRecordinga(String sEpisodeName, Int32 iEpisodeOid)
--- End of inner exception stack trace ---
at RenameRecording.RenameRecording.RenameRecordinga(String sEpisodeName, Int32 iEpisodeOid)
at RenameRecording.RenameRecording.RenameRecordingTitle(String sEpisodeName, Int32 iEpisodeOid)
at RenameRecording.RenameRecording.DoMain()
System.IO.IOException: Cannot create a file when that file already exists.

at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.__Error.WinIOError()
at System.IO.FileInfo.MoveTo(String destFileName)
at RenameRecording.RenameRecording.RenameRecordinga(String sEpisodeName, Int32 iEpisodeOid)
RenameRecording v2.1 build20051223
...using System.Data.SQLite.SQLiteFactory DB Provider Factory
Title: MythBusters
Argument: -t E:\My Videos\MythBusters\MythBusters_20070829_23000000.mpg
Episode name: MythBusters - Killer Whirlpool
Episode Oid: 9
Renaming file: E:\My Videos\MythBusters\MythBusters_20070829_23000000.mpg
to: E:\My Videos\MythBusters\MythBusters - Killer Whirlpool.mpg
Renaming file: E:\My Videos\MythBusters\MythBusters_20070829_23000000.original.mpg
to: E:\My Videos\MythBusters\MythBusters - Killer Whirlpool.mpg
System.ApplicationException: Error renaming program 'E:\My Videos\MythBusters\MythBusters_20070829_23000000.mpg' to 'MythBusters - Killer Whirlpool' (oid 9) ---> System.IO.IOException: Cannot create a file when that file already exists.

at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.__Error.WinIOError()
at System.IO.FileInfo.MoveTo(String destFileName)
at RenameRecording.RenameRecording.RenameRecordinga(String sEpisodeName, Int32 iEpisodeOid)
--- End of inner exception stack trace ---
at RenameRecording.RenameRecording.RenameRecordinga(String sEpisodeName, Int32 iEpisodeOid)
at RenameRecording.RenameRecording.RenameRecordingTitle(String sEpisodeName, Int32 iEpisodeOid)
at RenameRecording.RenameRecording.DoMain()
System.IO.IOException: Cannot create a file when that file already exists.

at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.__Error.WinIOError()
at System.IO.FileInfo.MoveTo(String destFileName)
at RenameRecording.RenameRecording.RenameRecordinga(String sEpisodeName, Int32 iEpisodeOid)
RenameRecording v2.1 build20051223
...using System.Data.SQLite.SQLiteFactory DB Provider Factory
Title: Live With Regis and Kelly
Argument: -t E:\My Videos\Live With Regis and Kelly\Live With Regis and Kelly_20070831_09001000.mpg
No episode name found
adam714
Offline

Junior Member

Posts: 35
Threads: 4
Joined: Sep 2005
#268
2007-09-01, 07:19 PM
switched to addepisode, took out RenameRecording.exe -t %1 >>rename.log and added addepisode %1 "{show} - {episode} same exact problem. i don't get it at all.
gEd
Offline

Posting Freak

London
Posts: 3,518
Threads: 100
Joined: Jan 2005
#269
2007-09-01, 07:45 PM
what about this (from the wiki)

Note to comskip users. Please make sure that if using version 0.79 or greater of comskip, that your comskip.ini has the delete_logo_file option set to 1 and not zero. This file must be deleted before RenameRecording runs otherwise you will run into problems.

if that doesn;t work, try commenting out "call comcut" and see what happens. if that cures it, download a "sleep" utility and add sleep 5 after call comcut
“If this is the way Queen Victoria treats her prisoners, she doesn't deserve to have any.”
adam714
Offline

Junior Member

Posts: 35
Threads: 4
Joined: Sep 2005
#270
2007-09-01, 09:49 PM
ok, i'll try that and post results. thanks very much
« Next Oldest | Next Newest »

Users browsing this thread: 2 Guest(s)

Pages (31): « Previous 1 … 25 26 27 28 29 … 31 Next »
Jump to page 


Possibly Related Threads…
Thread Author Replies Views Last Post
  Custom recording tomx 2 685 2025-02-07, 09:14 AM
Last Post: tomx
  API call for Recording Complete linustorvalds 1 456 2025-01-19, 02:11 PM
Last Post: mvallevand
  Manual recording API mvallevand 2 1,122 2023-11-09, 02:14 PM
Last Post: mvallevand
  Recording direct to GPhotos API rgonzalez 0 1,512 2020-06-29, 04:45 AM
Last Post: rgonzalez
  Recurring Recording URL Parameters jcole998 2 3,059 2019-09-19, 01:08 PM
Last Post: jcole998
  Get recording length from stream skogl 46 14,470 2019-08-15, 09:34 PM
Last Post: sub
  Unexpected result when deleting a pending recording scJohn 5 3,870 2018-05-06, 10:09 PM
Last Post: sub
  How to best verify success when adding a recurring recording drmargarit 1 2,873 2017-03-02, 03:13 PM
Last Post: mvallevand
  Change recording filename programmatically immediately before recording starts? craigrs84 5 6,196 2015-07-13, 09:28 PM
Last Post: patco444
  Recording a specific episode based on season and episode number cbgifford 26 10,749 2014-12-19, 10:28 PM
Last Post: cbgifford

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

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

Linear Mode
Threaded Mode