<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Am 06.02.2012 22:50, schrieb Anthony Giggins:
    <blockquote
cite="mid:CAKpY+ar6O_PsHGs-jfUcqrsU_b_wokv=bTEo4RgYZrhS4CYhHQ@mail.gmail.com"
      type="cite"><br>
      <br>
      <div class="gmail_quote">On 7 February 2012 05:59, Mario Weilguni
        <span dir="ltr">&lt;<a moz-do-not-send="true"
            href="mailto:roadrunner6@gmx.at">roadrunner6@gmx.at</a>&gt;</span>
        wrote:<br>
        <blockquote class="gmail_quote" style="margin:0 0 0
          .8ex;border-left:1px #ccc solid;padding-left:1ex">
          Am 06.02.2012 01:46, schrieb Anthony Giggins:<br>
          <div class="im">&gt; What is the SQL query that fetches the
            Series dropdown list, this<br>
            &gt; doesn't quiet look complete?<br>
            &gt;<br>
            <br>
          </div>
          It's within selectMovie.php<br>
          <br>
          <br>
          select title, count(1) as cnt, sum(filesize) as size<br>
          &nbsp; &nbsp; &nbsp; &nbsp; from recorded r<br>
          &nbsp; &nbsp; &nbsp; &nbsp;where transcoded = 0<br>
          &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;and deletepending = 0<br>
          &nbsp; &nbsp; &nbsp; &nbsp; and not exists (select 1 from recordedmarkup m where<br>
          m.chanid=r.chanid and m.starttime=r.starttime and m.type in
          (0,1))";<br>
          &nbsp; &nbsp; &nbsp; &nbsp;group by title having count(1) &gt; 1<br>
          &nbsp; &nbsp; &nbsp; &nbsp;order by size desc<br>
          <br>
          Regards<br>
          <span class="HOEnZb"><font color="#888888">Mario<br>
            </font></span>
          <div class="HOEnZb">
            <div class="h5"><br>
              <br>
            </div>
          </div>
        </blockquote>
        <div><br>
          I'd like to see this set to <br>
          &nbsp;group by title having count(1) &gt; 0<br>
          <br>
          As if you have transcoded an entire series and then another
          episode appears you dont see this in the list until the next
          episode airs.<br>
          <br>
          Cheers,<br>
          <br>
        </div>
      </div>
    </blockquote>
    <br>
    Well, having count(1) &gt; 0 is a little pointless, same as where
    true. How do you distinguish between series and real "films"?<br>
    <br>
    Regards<br>
    Mario<br>
    <br>
    <br>
    <br>
  </body>
</html>