I added code for that to tv_util. I haven't committed it because I wasn't sure if you did it elsewhere.
Also, while we're doing that, we might as well move to a user-specified file format. Like, I prefer: 09-10_03:00_-_The_Daily_Show_With_Jon_Stewart_.mpg But others may prefer to have the year (I'm not sure why, since I think if you don't know what year it is, you have other problems :) We could probably just use strftime variables, like this: ---- mask = '%%m-%%d %%H:%%M %s.mpg' ## This goes in local_conf.py filemask = mask % (progname) ## This goes into tv_util.getProgFilename filename = progname2filename(time.strftime(filemask)) --- One last note, the progname2filename function should be copied into tv_util, and we shouldn't import record_video.py because record_video tries to initialize the display. Aubin On Wed, Sep 10, 2003 at 12:01:57PM -0300, Rob Shortt wrote: > Dave Ladd wrote: > >In the new XML-RPC based record server (which rocks, BTW), I notice the > >filename creation is just using the raw name (with, e.g., spaces). > > > >I guess that might be ok, if the VCR_CMD quoted the filename, but the > >sample > >VCR_CMD doesn't. > > > >Should the filename have _'s for spaces, etc..., or should the VCR_CMD > >quote? > > Ahh, yes, I have to look into this a bit closer. There is code in there > that should substitute _ for space but it may be broken for the > generic_record.py plugin. Personally, I have been using double quotes > around the filename in VCR_CMD (when using that plugin) to avoid problems. > > -Rob > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Freevo-devel mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/freevo-devel ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Freevo-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freevo-devel
