fix for the less than 16 getVideos output issue

This commit is contained in:
pythagoraswitch 2018-08-12 16:33:05 +02:00
parent a73aff927a
commit a590c0ea2a

View file

@ -9,6 +9,7 @@ import logging
import os
import random
import time
import copy
import ox
@ -188,7 +189,7 @@ class Engine:
gridChange = {k: v.get('value', 0) for k, v in self.state['gridChange'].items()}
# Exclude playlists from the most recent grid
playlists = self.playlists
playlists = copy.deepcopy(self.playlists)
if len(vids_exclude) > 0:
for playlist in playlists:
if playlist["name"] in vids_exclude: