[mythtv] mutliple storage directories idea... ?

Devan Lippman devan.lippman at gmail.com
Thu Nov 3 20:03:02 EST 2005


On 11/3/05, Michael T. Dean <mtdean at thirdcontact.com> wrote:
>
> On 11/03/05 13:14, Devan Lippman wrote:
>
> >On 11/2/05, Michael T. Dean <mtdean at thirdcontact.com> wrote:
> >
> >
> >>Line 1222 of programinfo.cpp is the culprit, but unfortunately, I can't
> >>see an easy way to fix it. We can't just trim the RecordFilePrefix off
> >>the left because it won't work with multiple hosts...
> >>
> >>
> >>
> http://svn.mythtv.org/trac/browser/trunk/mythtv/libs/libmythtv/programinfo.cpp?rev=7677#L1217
> >>
> >>I can't think of a non-invasive approach to use. Ideas?
> >>
> >Maybe something like:
> > 1221 if (!pathname.isEmpty())
> > 1222 retval = pathname.mid(pathname.findRev( '/'));
> > 1223 else
> >
> >
> That's doing the same as the existing code--it strips off all
> subdirectory information (i.e. takes the filename at the end of the path
> only)--right?
>
> Mike
> _______________________________________________
> mythtv-dev mailing list
> mythtv-dev at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
>

correct, did I misinterpret what was wanted?
I forgot that in Qstring it returns an index value so you'll want to add 1
to the findrev
retval = pathname.mid(pathname.findRev( '/')+1);

--
Thanks,
Devan Lippman <devan at lippman dot net>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mythtv.org/pipermail/mythtv-dev/attachments/20051103/7abf5219/attachment.htm


More information about the mythtv-dev mailing list