From d6397b4d95af646a01482ad2e8a593f21119c0ee Mon Sep 17 00:00:00 2001 From: Vincent Date: Fri, 23 Aug 2019 10:16:49 +0200 Subject: [PATCH] . --- .idea/workspace.xml | 26 ++++++++++++++------------ scripts/lib/lib.php | 13 +++++++------ scripts/lib/tmdb.php | 4 ++-- style/style.css | 11 ++++++++++- style/style.less | 13 ++++++++++++- 5 files changed, 45 insertions(+), 22 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index cfee259..f5e4083 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -3,9 +3,10 @@ - - - + + + + diff --git a/scripts/lib/lib.php b/scripts/lib/lib.php index 8aeacf9..c43a57f 100644 --- a/scripts/lib/lib.php +++ b/scripts/lib/lib.php @@ -303,12 +303,13 @@ function shortcut($s, $hash) if (isset($s['seen']) && $s['seen']) { $attrs['data-seen'] = '1'; } -// if (isset($s['srt']) && count($s['srt'])) { -// $langtoemoji = ['fr' => '🇫🇷', 'en' => '🇺🇸']; -// foreach ($s['srt'] as $item) { -// $swcorner .= '' . $langtoemoji[$item] . ''; -// } -// } + + if (isset($s['srt']) && count($s['srt'])) { + $langtoemoji = ['fr' => '🇫🇷', 'en' => '🇺🇸']; + foreach ($s['srt'] as $item) { + $swcorner .= '' . $langtoemoji[$item] . ''; + } + } if (isset($s['poster'])) { diff --git a/scripts/lib/tmdb.php b/scripts/lib/tmdb.php index 9321c24..784b872 100644 --- a/scripts/lib/tmdb.php +++ b/scripts/lib/tmdb.php @@ -265,7 +265,7 @@ class tvShowLibrary extends mediaLibrary usort($m, function ($a, $b) { return $b['mtime'] - $a['mtime']; }); - return array_slice($m, 0, 10); + return array_slice($m, 0, 20); } } @@ -366,7 +366,7 @@ class moviesLibrary extends mediaLibrary usort($m, function ($a, $b) { return $b['mtime'] - $a['mtime']; }); - return array_slice($m, 0, 30); + return array_slice($m, 0, 60); } function getShortcuts() diff --git a/style/style.css b/style/style.css index c3768fe..43bf310 100644 --- a/style/style.css +++ b/style/style.css @@ -150,11 +150,20 @@ section .col > * { overflow: hidden; position: relative; } +section .col > * .sw-corner { + position: absolute; + left: 0.7em; + bottom: 0.6em; +} +section .col > * .sw-corner span { + margin-right: 0.05em; +} section .col > *.poster { background-size: 100% 100%; background-position: 50% 50%; } -section .col > *.poster:after { +section .col > *.poster:after, +section .col > *.poster:before { mix-blend-mode: exclusion; color: #fff; } diff --git a/style/style.less b/style/style.less index 5039b2d..5322e48 100644 --- a/style/style.less +++ b/style/style.less @@ -173,11 +173,22 @@ section { overflow: hidden; position: relative; + .sw-corner { + position: absolute; + left: 0.7em; + bottom: 0.6em; + + span { + margin-right: 0.05em; + } + + } + &.poster { background-size: 100% 100%; background-position: 50% 50%; - &:after { + &:after,&:before { mix-blend-mode: exclusion; color: #fff; } -- 2.39.5