[88] update queues

This commit is contained in:
meisnate12 2022-10-05 03:00:01 -04:00
parent 4d7feaeb1b
commit 28b88c4f23
3 changed files with 40 additions and 16 deletions

View file

@ -1 +1 @@
1.17.3-develop87
1.17.3-develop88

View file

@ -1,17 +1,31 @@
queues:
top10:
- horizontal_offset: 30 # This is the first position
horizontal_align: right
vertical_offset: 465
vertical_align: top
- horizontal_offset: 30 # This is the second position
horizontal_align: right
vertical_offset: 670
vertical_align: top
- horizontal_offset: 30 # This is the third position
horizontal_align: right
vertical_offset: 875
vertical_align: top
flixpatrol_position:
right:
- horizontal_offset: 30 # This is the first position
horizontal_align: right
vertical_offset: 465
vertical_align: top
- horizontal_offset: 30 # This is the second position
horizontal_align: right
vertical_offset: 670
vertical_align: top
- horizontal_offset: 30 # This is the third position
horizontal_align: right
vertical_offset: 875
vertical_align: top
left:
- horizontal_offset: 30 # This is the first position
horizontal_align: left
vertical_offset: 465
vertical_align: top
- horizontal_offset: 30 # This is the second position
horizontal_align: left
vertical_offset: 670
vertical_align: top
- horizontal_offset: 30 # This is the third position
horizontal_align: left
vertical_offset: 875
vertical_align: top
templates:
FlixPatrol:
@ -49,7 +63,7 @@ templates:
allowed_library_types: <<use_<<key>>>>
overlay:
name: text(TOP<<limit>>)
queue: top10
queue: flixpatrol_position
weight: <<weight_<<key>>>>
horizontal_offset: <<horizontal_offset>>
horizontal_align: <<horizontal_align>>

View file

@ -1448,7 +1448,17 @@ class OverlayFile(DataFile):
data = self.load_file(self.type, self.path, overlay=True)
self.overlays = get_dict("overlays", data)
self.templates = get_dict("templates", data)
self.queues = get_dict("queues", data, library.queue_names)
queues = get_dict("queues", data, library.queue_names)
self.queues = {}
for queue_name, queue in queues.items():
if isinstance(queue, list):
self.queues[queue_name] = queue
elif queue_name in temp_vars and temp_vars[queue_name] and temp_vars[queue_name] in queue:
self.queues[queue_name] = queue[temp_vars[queue_name]]
else:
for dq, dv in queue.items():
self.queues[queue_name] = dv
break
self.external_templates(data)
self.translation_files(data)
if not self.overlays: