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
b00sfuk
Offline

Senior Member

Posts: 319
Threads: 26
Joined: Mar 2005
#211
2006-06-15, 04:53 PM
Link working OK for me now. Have been testing this and seems to work great - thanks.
One little thing I noticed on duplicate filenames on my first pass. My test example:

1. Existing file "Airline.mpg" in recording directory.
2. Record same programme (not episode title) from TV Guide correctly saves new file as "Airline (1).mpg"
3. Subsequent manual recording with same name then saves file as "Airl.mpg" (and a further manual recording creates "Airl (2).mpg".:confused:

thanks again
Silverstone LC10M with iMON
Gigabyte 780G+4850e, AMD 6570
Blackgold BGT3620, Harmony 555 Remote
Win7 32-bit, SAF
turkey
Offline

Member

Posts: 206
Threads: 17
Joined: Sep 2005
#212
2006-06-15, 07:36 PM
b00sfuk Wrote:3. Subsequent manual recording with same name then saves file as "Airl.mpg"

Just to make it easier for me to debug, what is the full path of "Airline.mpg"? I know it shouldn't matter, but it will help me a little. (I think I know what is happening, and should have it fixed in a little bit.)
b00sfuk
Offline

Senior Member

Posts: 319
Threads: 26
Joined: Mar 2005
#213
2006-06-15, 07:43 PM
turkey Wrote:Just to make it easier for me to debug, what is the full path of "Airline.mpg"? I know it shouldn't matter, but it will help me a little. (I think I know what is happening, and should have it fixed in a little bit.)

E:\capture-directory\airline.mpg

cheers
Silverstone LC10M with iMON
Gigabyte 780G+4850e, AMD 6570
Blackgold BGT3620, Harmony 555 Remote
Win7 32-bit, SAF
b00sfuk
Offline

Senior Member

Posts: 319
Threads: 26
Joined: Mar 2005
#214
2006-06-15, 08:12 PM
One last little thing, though not a real issue.
If you are watching a program while it is still recording (not in real time) and the recording stops then Addepisode cannot change the filename as the file is in use. However it still seems to update the database and so (I think) it is then deleted from the database by GB-PVR because of the filename mismatch (so you are left with nothing in Recordings but a file still on the disk). If I'm right I guess it just needs an exit if the filename change is unsuccessful.
Thanks again.
Silverstone LC10M with iMON
Gigabyte 780G+4850e, AMD 6570
Blackgold BGT3620, Harmony 555 Remote
Win7 32-bit, SAF
turkey
Offline

Member

Posts: 206
Threads: 17
Joined: Sep 2005
#215
2006-06-15, 09:03 PM
ok everything should work as advertised now. Everyone who downloaded the early version should download it again from my earlier post.

I have fixed the duplicate filename handler so it should work correctly.

I have also added in some logic to not update the database if it doesn't succesfully rename the file. I will think about how to delay the file rename if the file is in use, and see if I can get that to work later.

Thanks to b00sfuk for helping debug!
b00sfuk
Offline

Senior Member

Posts: 319
Threads: 26
Joined: Mar 2005
#216
2006-06-15, 09:16 PM
Wow, that is quick!
turkey Wrote:I have also added in some logic to not update the database if it doesn't succesfully rename the file. I will think about how to delay the file rename if the file is in use, and see if I can get that to work later.
I think this might be difficult, it was never solved in RenameRecordings which just left the original unchanged filename & database entry. I would guess you would have to start doing things outside of postprocessing.bat (in case there was a subsequent recording finishing) and it would get messy. Unless you think of a neat solution I'm happy for it to stay the way I've described above and leave everything unchanged.
Thanks again.
Silverstone LC10M with iMON
Gigabyte 780G+4850e, AMD 6570
Blackgold BGT3620, Harmony 555 Remote
Win7 32-bit, SAF
David
Offline

Senior Member

Posts: 435
Threads: 18
Joined: Oct 2005
#217
2006-06-16, 04:07 AM
b00sfuk Wrote:Wow, that is quick!
I think this might be difficult, it was never solved in RenameRecordings which just left the original unchanged filename & database entry. I would guess you would have to start doing things outside of postprocessing.bat (in case there was a subsequent recording finishing) and it would get messy. Unless you think of a neat solution I'm happy for it to stay the way I've described above and leave everything unchanged.
Thanks again.
RenameRecording was a one run deal, and if it failed then that was it. RenameRecordings checked all files each time it ran, and would pick up on shows that it missed due to locked files. I used that version for a while. I was never sure why it forked that way, but it seemed the the RenameRecording version was the one that continued to be maintained.
David

PVR PC: Win2K3, Athlon x2 64 4600+, 1280MB Ram, 40+400 GB HD's, Gigabyte Network
PVR-250, ATSC-110 digital x2, GBPVR v1.3.7 w/SQLite DB
Extras: Addepisode 41, Comskip 79.46, EWA 76, Zaptools

DSM-520 (D-Link Media Lounge) FW 1.04 using TVersity Media Server 0.9.11.4
DSM-320 (D-Link Media Lounge) FW 1.09
MediaMVP

More specs
David
Offline

Senior Member

Posts: 435
Threads: 18
Joined: Oct 2005
#218
2006-06-16, 04:13 AM
turkey Wrote:It will rename the video file (as well as the comskip files if they exist) to be in the format "Show Name - Episode Name" if there is a episode name, if not it will just be the show name.
I've been hoping for a RenameRecording update. I need the rename to just be the Episode name, if any. My DSM-320 doesn't display very much of the file name, and I would never see the episode name for most shows. The show name is available from the folder name where the show is stored. Any chance you could include a command line switch to choose how the rename is performed?
David

PVR PC: Win2K3, Athlon x2 64 4600+, 1280MB Ram, 40+400 GB HD's, Gigabyte Network
PVR-250, ATSC-110 digital x2, GBPVR v1.3.7 w/SQLite DB
Extras: Addepisode 41, Comskip 79.46, EWA 76, Zaptools

DSM-520 (D-Link Media Lounge) FW 1.04 using TVersity Media Server 0.9.11.4
DSM-320 (D-Link Media Lounge) FW 1.09
MediaMVP

More specs
turkey
Offline

Member

Posts: 206
Threads: 17
Joined: Sep 2005
#219
2006-06-16, 06:11 AM
David Wrote:RenameRecording was a one run deal, and if it failed then that was it. RenameRecordings checked all files each time it ran, and would pick up on shows that it missed due to locked files. I used that version for a while. I was never sure why it forked that way, but it seemed the the RenameRecording version was the one that continued to be maintained.

I used renamerecordings as well, but I stopped after a while because it renamed all files in the recordings directory. I don't think this is a good approach, as it takes the control away from the user. I think I have a fix for it, but I'll have to test it a bit.


David Wrote:Any chance you could include a command line switch to choose how the rename is performed?

Sure, I can do this. Do you just want it to rename to the show name, or do you want anything else added on like the date or time? While I'm asking, is there any other function that anyone wants that I should add to this utility?
b00sfuk
Offline

Senior Member

Posts: 319
Threads: 26
Joined: Mar 2005
#220
2006-06-16, 07:06 AM
I'm very happy with the feature set as is. If you did start changing filenames at points other than the end of the recording (as Renamerecordings) then I would like the option to add date/time. This would be for recordings without episode title as the filedate/time won't then show you when the recording was made (though you have chronological order with incremental filenames you might want to watch an episode that was at a certain date/time or refer back to description in TV Guide).
Another simple solution for the above is to write a log file of changes so you can refer back to what original name was. Renamerecording did this and you could, for example, use "Addepisode %1 >>Addepisode.log" (though nothing is written by app currently) to keep a text file tracking the old/new filenames.
Thanks again.
Silverstone LC10M with iMON
Gigabyte 780G+4850e, AMD 6570
Blackgold BGT3620, Harmony 555 Remote
Win7 32-bit, SAF
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (31): « Previous 1 … 20 21 22 23 24 … 31 Next »
Jump to page 


Possibly Related Threads…
Thread Author Replies Views Last Post
  Custom recording tomx 2 762 2025-02-07, 09:14 AM
Last Post: tomx
  API call for Recording Complete linustorvalds 1 503 2025-01-19, 02:11 PM
Last Post: mvallevand
  Manual recording API mvallevand 2 1,170 2023-11-09, 02:14 PM
Last Post: mvallevand
  Recording direct to GPhotos API rgonzalez 0 1,547 2020-06-29, 04:45 AM
Last Post: rgonzalez
  Recurring Recording URL Parameters jcole998 2 3,102 2019-09-19, 01:08 PM
Last Post: jcole998
  Get recording length from stream skogl 46 14,711 2019-08-15, 09:34 PM
Last Post: sub
  Unexpected result when deleting a pending recording scJohn 5 3,931 2018-05-06, 10:09 PM
Last Post: sub
  How to best verify success when adding a recurring recording drmargarit 1 2,908 2017-03-02, 03:13 PM
Last Post: mvallevand
  Change recording filename programmatically immediately before recording starts? craigrs84 5 6,277 2015-07-13, 09:28 PM
Last Post: patco444
  Recording a specific episode based on season and episode number cbgifford 26 10,888 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