On 11/3/05, Michael T. Dean <[EMAIL PROTECTED]> wrote:
On 11/03/05 13:14, Devan Lippman wrote:

>On 11/2/05, Michael T. Dean <[EMAIL PROTECTED]> 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
[email protected]
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>
_______________________________________________
mythtv-dev mailing list
[email protected]
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev

Reply via email to