From b496018c7c2c9d2bf4c42e66b0d7c2d2bfec3d3d Mon Sep 17 00:00:00 2001 From: p0ps Date: Fri, 13 Aug 2021 18:59:54 +0200 Subject: [PATCH] Feature/fix schedule (#9791) * schedule: Fix banner and poster layouts used with network sorting. * Don't offset the weekday * Fix shows in schedule not showing under "Sunday". * Fix key warning. On for loop. --- medusa/show/coming_episodes.py | 3 ++- themes-default/slim/src/components/history-compact.vue | 2 +- themes-default/slim/src/components/schedule/calendar.vue | 2 +- themes-default/slim/src/store/modules/schedule.js | 6 +++--- themes/dark/assets/js/medusa-runtime.js | 6 +++--- themes/light/assets/js/medusa-runtime.js | 6 +++--- 6 files changed, 13 insertions(+), 12 deletions(-) diff --git a/medusa/show/coming_episodes.py b/medusa/show/coming_episodes.py index 80e528c399..a9a8248d7c 100644 --- a/medusa/show/coming_episodes.py +++ b/medusa/show/coming_episodes.py @@ -168,7 +168,8 @@ def get_coming_episodes(categories, sort, group, paused=app.COMING_EPS_DISPLAY_P result['qualityValue'] = result['quality'] result['quality'] = get_quality_string(result['quality']) result['airs'] = sbdatetime.sbftime(result['localtime'], t_preset=timeFormat).lstrip('0').replace(' 0', ' ') - result['weekday'] = 1 + date.fromordinal(result['airdate']).weekday() + # Monday - Sunday (0 - 6) + result['weekday'] = date.fromordinal(result['airdate']).weekday() result['tvdbid'] = result['indexer_id'] result['airdate'] = sbdatetime.sbfdate(result['localtime'], d_preset=dateFormat) result['localtime'] = result['localtime'].toordinal() diff --git a/themes-default/slim/src/components/history-compact.vue b/themes-default/slim/src/components/history-compact.vue index 80d2ca5029..4cb3956720 100644 --- a/themes-default/slim/src/components/history-compact.vue +++ b/themes-default/slim/src/components/history-compact.vue @@ -56,7 +56,7 @@ diff --git a/themes-default/slim/src/components/schedule/calendar.vue b/themes-default/slim/src/components/schedule/calendar.vue index efae3ef135..f40d89c219 100644 --- a/themes-default/slim/src/components/schedule/calendar.vue +++ b/themes-default/slim/src/components/schedule/calendar.vue @@ -4,7 +4,7 @@
{{day.header}}