On 11/3/05, <b class="gmail_sendername">Michael T. Dean</b> &lt;<a href="mailto:mtdean@thirdcontact.com">mtdean@thirdcontact.com</a>&gt; 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>&gt;On 11/2/05, Michael T. Dean &lt;<a href="mailto:mtdean@thirdcontact.com">mtdean@thirdcontact.com</a>&gt; wrote:<br>&gt;<br>&gt;<br>&gt;&gt;Line 1222 of programinfo.cpp is the culprit, but unfortunately, I can't
<br>&gt;&gt;see an easy way to fix it. We can't just trim the RecordFilePrefix off<br>&gt;&gt;the left because it won't work with multiple hosts...<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt;<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>&gt;&gt;<br>&gt;&gt;I can't think of a non-invasive approach to use. Ideas?<br>&gt;&gt;<br>&gt;Maybe something like:<br>
&gt;&nbsp;&nbsp;1221&nbsp;&nbsp;if (!pathname.isEmpty())<br>&gt;&nbsp;&nbsp;1222&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;retval = pathname.mid(pathname.findRev( '/'));<br>&gt;&nbsp;&nbsp;1223&nbsp;&nbsp;else<br>&gt;<br>&gt;<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?&nbsp; <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 &lt;devan at lippman dot net&gt;