DABDig Forums
register | my profile | my bookmarks | my notifications | search | faqs
Show topics:     

Note: You must be registered in order to post a topic or reply.
To register, click here. Registration is FREE!

Post reply to topic:  Redirect Recordings to different dirs?

Your User Name:
Your Password:    Forgotten your password?
Message:
Insert a smile Insert a frown Insert a big grin Insert a wink Insert a razz (stick out tongue) Insert a snore Insert roll eyes Insert mad Insert evil Insert a clown Insert a blush Insert kisses Insert an eek! Insert cool   Add other emotions to your message    
Add other Forum Code to your message
  Remember Me: uses a cookie to remember your login details.
Signature: adds your profile signature to the end.
Automatically parse URLs: automatically converts internet addresses into forum code.
Email Notification: get emails sent to you whenever someone replies.

T O P I C     R E V I E W
Ferguds

Does anyone know if it's possible (or even easy) to direct recordings to a directory depending on it's category (in DigiGuide)?

i.e. send all Films to c:\Movies\

R E C E N T    P O S T S     (newest first - Review the full topic)
Paul Webster

OK - good.

I made an official release - 253b17.

When you run it first time you will see a few warnings about having unexpected settings in your dabdig.ini

Don't worry about it. I always remove some of the experimental things when I make an official release. The messages will only come up once and do not effect your stuff.


Paul Webster

DABDig creator

Ferguds

Tried latest build (b16) with both WinTVCap & WinTVPVR, and they're both working as expected! That's it by the look of it!

Thanks!

Paul Webster

New field ... CategoryKeep

Put in there a comma-delimited list of categories that you do want to have in their own folder - others will go to whatever you have in DefaultCategory

e.g.

CategoryKeep=Film,Sport


Paul Webster

DABDig creator

Ferguds

That's brilliant Paul, thanks!

By all means, shelve it for a while, because I initially was asking this as a query, not expecting such a swift positive response, thanks again!

And yes, that sounds like an even better idea. If I understand you correctly, you're thinking of specifying the (possible) path for each Category (FILM=\Films, DRAMA=\Dramas) then everything else not specified would drop into the default? Nice one!

Paul Webster

I guess I could put in a mapping for Categories so that you could send different categories to specific locations and send unmapped categories to a default location.

However, I think that you will have to do without it for now as I want to freeze this code and make an official release and then get back to putting some stuff in for time overlaps.

If I can see an easy way to do it this weekend then you'll get it.


Paul Webster

DABDig creator

Ferguds

Yes, that works nicely, for both WinTVCap & WinTVPVR. Tested it loads of times & behaves as expected.

For your reference, if I turn off "OutputTargetCreate" WinTVPVR will run okay & still create the directory, but WinTVCap will bomb out.

While doing a load of tests, I notice that I'm left with loads of different directories with the relevant recordings in them, like SOAP, SPORT, SCI FI, DRAMA etc. I know you said it'd be a much more difficult thing to code for, but would this make sense?

Having a section of all the default DigiGuide Categories & making each of them choosable by turning on/off which ones that are to be redirected to another directory (i.e. FILM)...just a thought!

Fergus.

Ferguds


With WinTVCap ... do they arrive there OK if the directory already exists?


Paul Webster

DABDig creator


Yep, they do arrive in the directory, but ONLY if it exists already.

Paul Webster

Plane delayed ... and airport has free wireless access ... so just modified the code so that it can create the output directory (at least ... assuming that the parent directory already exists).

To use this facility you will have to make some changes to your dabdig.ini

I had to change the way that OutputTarget works.

What you would do is this:

OutputTarget=c:\recordings\$CT

OutputTargetCreate=1

WinTVPVRCmdP2=$OT\

WinTVCapCmdP2=$OT\

Don't try it without the new code though - and I can't send you that until I get home late tonight.


Paul Webster

DABDig creator

Edited by Paul Webster on Wednesday, February 23, 2005 - 5:38:01 PM

Paul Webster

With WinTVCap ... do they arrive there OK if the directory already exists?


Paul Webster

DABDig creator

Ferguds

I'd installed it but it didn't pick up the new marker for some reason. Removed the old marker(s) in the dir & then it picked up the new one okay, and the new setup works grand now.

Films now go into the \Film dir etc, but only with WinTV2k.exe not while using WinTVcap.exe