fix for the less than 16 getVideos output issue
This commit is contained in:
parent
a73aff927a
commit
a590c0ea2a
1 changed files with 2 additions and 1 deletions
|
@ -9,6 +9,7 @@ import logging
|
||||||
import os
|
import os
|
||||||
import random
|
import random
|
||||||
import time
|
import time
|
||||||
|
import copy
|
||||||
|
|
||||||
import ox
|
import ox
|
||||||
|
|
||||||
|
@ -188,7 +189,7 @@ class Engine:
|
||||||
gridChange = {k: v.get('value', 0) for k, v in self.state['gridChange'].items()}
|
gridChange = {k: v.get('value', 0) for k, v in self.state['gridChange'].items()}
|
||||||
|
|
||||||
# Exclude playlists from the most recent grid
|
# Exclude playlists from the most recent grid
|
||||||
playlists = self.playlists
|
playlists = copy.deepcopy(self.playlists)
|
||||||
if len(vids_exclude) > 0:
|
if len(vids_exclude) > 0:
|
||||||
for playlist in playlists:
|
for playlist in playlists:
|
||||||
if playlist["name"] in vids_exclude:
|
if playlist["name"] in vids_exclude:
|
||||||
|
|
Loading…
Reference in a new issue