On Fri, Jan 9, 2009 at 12:59 PM, Hayden Lovett <span dir="ltr">&lt;<a href="mailto:hayden.lovett@gmail.com">hayden.lovett@gmail.com</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d"><div style="margin-left: 40px;">for example stargate.atlantis.s02e13.critical.mass.ws.dvdrip.xvid-saints.avi<br>
is not picked up as a TV show.<br></div></div><div><br>I have a mask which searches the MySQL to look for TV shows % s__e__% so there is a space before the s.&nbsp; Otherwise it picked up &quot;episode&quot; in the mask.<br>
<br>I will add the option of %.s__e__%<br></div><div class="Ih2E3d"></div></blockquote><div><br>Having a dot before the s is the more common case I suspect, but I don&#39;t think you can make any assumptions as to where the sXXeXX will appear. My own layout is to have &quot;&lt;showname&gt;/sXXeXX &lt;episode title&gt;&quot; or &quot;&lt;showname&gt;/sXXeXX - &lt;episode title&gt;&quot;. I think you&#39;ll have to stick with %s__e__% and then verify that the s and e are followed by numbers outside of sql. I&#39;d use a regular expression in Python to figure it out myself.<br>
<br>Cheers,<br>Steve<br></div></div><br>