Fix episode extraction logic