On 11/3/05, <b class="gmail_sendername">Michael T. Dean</b> <<a href="mailto:mtdean@thirdcontact.com">mtdean@thirdcontact.com</a>> wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On 11/03/05 13:14, Devan Lippman wrote:<br><br>>On 11/2/05, Michael T. Dean <<a href="mailto:mtdean@thirdcontact.com">mtdean@thirdcontact.com</a>> wrote:<br>><br>><br>>>Line 1222 of programinfo.cpp is the culprit, but unfortunately, I can't
<br>>>see an easy way to fix it. We can't just trim the RecordFilePrefix off<br>>>the left because it won't work with multiple hosts...<br>>><br>>><br>>><a href="http://svn.mythtv.org/trac/browser/trunk/mythtv/libs/libmythtv/programinfo.cpp?rev=7677#L1217">
http://svn.mythtv.org/trac/browser/trunk/mythtv/libs/libmythtv/programinfo.cpp?rev=7677#L1217</a><br>>><br>>>I can't think of a non-invasive approach to use. Ideas?<br>>><br>>Maybe something like:<br>
> 1221 if (!pathname.isEmpty())<br>> 1222 retval = pathname.mid(pathname.findRev( '/'));<br>> 1223 else<br>><br>><br>That's doing the same as the existing code--it strips off all<br>subdirectory information (
i.e. takes the filename at the end of the path<br>only)--right?<br><br>Mike<br>_______________________________________________<br>mythtv-dev mailing list<br><a href="mailto:mythtv-dev@mythtv.org">mythtv-dev@mythtv.org</a>
<br><a href="http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev">http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev</a><br></blockquote></div><br>correct, did I misinterpret what was wanted? <br>
I forgot that in Qstring it returns an index value so you'll want to add 1 to the findrev<br>
retval = pathname.mid(pathname.findRev( '/')+1);<br clear="all"><br>-- <br>Thanks,<br>Devan Lippman <devan at lippman dot net>