From 0ca9cf5b75b7405a64f81cfb830727899f7754d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Arnauts?= Date: Sun, 22 Mar 2020 10:39:49 +0100 Subject: [PATCH] Fix resolution in stream_dict --- resources/lib/modules/menu.py | 10 ++++------ resources/lib/viervijfzes/__init__.py | 4 ++-- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/resources/lib/modules/menu.py b/resources/lib/modules/menu.py index 82eac4f..10d7807 100644 --- a/resources/lib/modules/menu.py +++ b/resources/lib/modules/menu.py @@ -5,7 +5,7 @@ from __future__ import absolute_import, division, unicode_literals from resources.lib import kodiutils from resources.lib.kodiutils import TitleItem -from resources.lib.viervijfzes import CHANNELS +from resources.lib.viervijfzes import CHANNELS, STREAM_DICT from resources.lib.viervijfzes.content import Program, Episode @@ -107,12 +107,10 @@ class Menu: 'aired': item.aired.strftime('%Y-%m-%d'), }) - stream_dict = { - 'codec': 'h264', + stream_dict = STREAM_DICT.copy() + stream_dict.update({ 'duration': item.duration, - 'height': 576, - 'width': 720, - } + }) return TitleItem(title=info_dict['title'], path=kodiutils.url_for('play', channel=item.channel, uuid=item.uuid), diff --git a/resources/lib/viervijfzes/__init__.py b/resources/lib/viervijfzes/__init__.py index 0260b05..e3c9c24 100644 --- a/resources/lib/viervijfzes/__init__.py +++ b/resources/lib/viervijfzes/__init__.py @@ -45,6 +45,6 @@ CHANNELS = OrderedDict([ STREAM_DICT = { 'codec': 'h264', - 'height': 960, - 'width': 544, + 'height': 544, + 'width': 960, }