Remove unused lines. Fix playlist condition