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
1 changed files with 2 additions and 1 deletions

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: