function(doc)
{
    if(doc.doc_type == "PodcastList")
    {
        var rating = 0;
        for(var n in doc.ratings)
        {
            rating += doc.ratings[n].rating;
        }

        if (rating > 0)
        {
            emit(rating, null);
        }
    }
}

@@ -49,24 +49,126 @@
 ist%22)%0A    %7B%0A
+        if(doc.podcasts == null %7C%7C doc.podcasts.length == 0)%0A        %7B%0A            return;%0A        %7D%0A%0A
         var 

exclude empty lists from by-rating view