NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Add-ons (3rd party plugins, utilities and skins) Old Stuff (Legacy) SearchWiz & MovieWiz v
« Previous 1 2 3 4 5 … 16 Next »
WizRenameRecording - blank output

 
  • 0 Vote(s) - 0 Average
WizRenameRecording - blank output
hakras
Offline

Member

Posts: 228
Threads: 40
Joined: Mar 2007
#1
2009-10-02, 09:34 PM
I have been using WizRenameRecording for a while and it is a great tool. I need to make a change to how things are set up. Therefore, I need to update my postprocess.bat. Will this work?

Code:
@ECHO OFF
CLS
: START
if "{episode}" is null (
    if exist "d:\media\recordedtv\" "{show}" (
        move "%~f1" "D:\Media\RecordedTV\" "{show}"
    ) else (
        md "d:\media\recordedtv\" "{show}"
        move "%~f1" "D:\Media\RecordedTV\" "{show}"
) else (
    WizRenameRecording "%~f1" "{episode}"
    if exist "d:\media\recordedtv\" "{show}" (
        move "%~f1" "{episode}" "D:\Media\RecordedTV\" "{show}"
    ) else (
        md "d:\media\recordedtv\" "{show}"
        move "%~f1" "{episode}" "D:\Media\RecordedTV\" "{show}"
)
: END

I do have 2 issues that I have with WizRenameRecording that I'm hoping to resolve with the above script:

1. I occassionally get a blank file name (ex. ".ts")
2. I occassionally get the show name and time of recording (ex. "Gary Unmarried_20090930_20302100.ts").

How horrible is that bat file?
JavaWiz
Offline

Posting Freak

Jacksonville, FL. USA
Posts: 2,522
Threads: 141
Joined: Dec 2006
#2
2009-10-03, 02:36 AM
hakras Wrote:I have been using WizRenameRecording for a while and it is a great tool. I need to make a change to how things are set up. Therefore, I need to update my postprocess.bat. Will this work?

Code:
@ECHO OFF
CLS
: START
if "{episode}" is null (
    if exist "d:\media\recordedtv\" "{show}" (
        move "%~f1" "D:\Media\RecordedTV\" "{show}"
    ) else (
        md "d:\media\recordedtv\" "{show}"
        move "%~f1" "D:\Media\RecordedTV\" "{show}"
) else (
    WizRenameRecording "%~f1" "{episode}"
    if exist "d:\media\recordedtv\" "{show}" (
        move "%~f1" "{episode}" "D:\Media\RecordedTV\" "{show}"
    ) else (
        md "d:\media\recordedtv\" "{show}"
        move "%~f1" "{episode}" "D:\Media\RecordedTV\" "{show}"
)
: END

I do have 2 issues that I have with WizRenameRecording that I'm hoping to resolve with the above script:

1. I occassionally get a blank file name (ex. ".ts")
2. I occassionally get the show name and time of recording (ex. "Gary Unmarried_20090930_20302100.ts").

How horrible is that bat file?

Hmmm..

Not sure I understand the bat file.
  • where do "{episode}" and "{show}" get set?
  • I don't think "is null " is valid batch file syntax.
hakras
Offline

Member

Posts: 228
Threads: 40
Joined: Mar 2007
#3
2009-10-03, 02:49 AM (This post was last modified: 2009-10-03, 03:01 AM by hakras.)
yeah...I think I got that all wrong Smile

I'm going in a different (easier) direction:

Code:
@ECHO OFF
CLS
: START
    WizRenameRecording "%~f1" "{show} - {episode} - {month}-{day}-{year}"
: END

Will this work? I just want to rename the show.
JavaWiz
Offline

Posting Freak

Jacksonville, FL. USA
Posts: 2,522
Threads: 141
Joined: Dec 2006
#4
2009-10-03, 06:30 AM
Yep, that should work, or you could specify as:

{show}({[ - ]}{episode}{or}{[ - ]}\({year}-{month}-{day}\))

Which will rename as:
show - episode
or
show - (year-month-day) if no episode name exists.
hakras
Offline

Member

Posts: 228
Threads: 40
Joined: Mar 2007
#5
2009-10-03, 10:10 AM
I didn't know you could throw an "or" in there. That's great. I'll give that a try.

One more question. Is there a way to get the season and episode number instead of name. I'm using an app that wants the file name to look like this:

showname S##E##

I'm unsure if that data gets passed from Schedules Direct or not, but it would make life much easier.
JavaWiz
Offline

Posting Freak

Jacksonville, FL. USA
Posts: 2,522
Threads: 141
Joined: Dec 2006
#6
2009-10-04, 03:53 PM
In my output for the EPG, I do not get the Season and Episode number. I could potentially make an enhancement to lookup on TheTvDb and try to grab it there...
hakras
Offline

Member

Posts: 228
Threads: 40
Joined: Mar 2007
#7
2009-10-04, 09:36 PM
It looks like there is nothing else out there that can do it. If you could make it happen, I'm sure I'm not the only one who would greatly appreciate it. If you need me to test or anything else, let me know. Thanks
hakras
Offline

Member

Posts: 228
Threads: 40
Joined: Mar 2007
#8
2009-10-12, 10:56 AM
Hi JavaWiz

Have you been able to look into this any further?
JavaWiz
Offline

Posting Freak

Jacksonville, FL. USA
Posts: 2,522
Threads: 141
Joined: Dec 2006
#9
2009-10-12, 11:28 PM
Yes, version 0.2.0.3 updated on the wiki. I think the pattern you'll want is something like:

Code:
{show}({[ - ]}({[S]}{seasonNo}{[E]}{episodeNo}{or}_{year}-{month}-{day})

If Season and Episode numbers exist, the file name would be:

ShowName - S99E99.mpg

otherwise it will be

ShowName_2009-10-22.mpg
hakras
Offline

Member

Posts: 228
Threads: 40
Joined: Mar 2007
#10
2009-10-20, 03:33 AM
I finally got around to testing this. I upgraded to the newest release of GBPVR this weekend (actually ended up reinstalling). I had recordings scheduled tonight and everything renamed to "show - SxxExx.ts" as desired. Thank you very much for this. You saved me a lot of pain.
« 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
  Would Somebody Please Help Me With A WizRenameRecording Problem??? skycyclepilot 1 4,950 2010-05-20, 03:01 PM
Last Post: Gedanken
  WizRenameRecording issues reboot 6 3,270 2009-03-24, 09:01 PM
Last Post: reboot
  WizRenameRecording v0.1.0.0 JavaWiz 83 25,451 2008-11-24, 04:17 AM
Last Post: JavaWiz
  new issues WizRenameRecording reboot 8 3,723 2008-10-06, 10:19 PM
Last Post: reboot

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

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

Linear Mode
Threaded Mode