Medium quality is also not letterboxed

This commit is contained in:
John Mertz 2023-03-22 18:21:51 -04:00
parent f59076af0f
commit 858d10cdd4
Signed by: jpm
GPG Key ID: E9C5EA2D867501AB
1 changed files with 2 additions and 2 deletions

View File

@ -233,7 +233,7 @@ function print_video($video,$settings,$mobile,$show_seen)
} }
$html .= " $html .= "
$default" . ' $default" . '
<div class="thumb' . ($settings['thumbnail_quality'] == 'maxresdefault' ? '' : ' letterbox') . '" id="thumbnail:' . $video['videoId'] . '"> <div class="thumb' . ($settings['thumbnail_quality'] == 'maxresdefault' || $settings['thumbnail_quality'] == 'mqdefault' ? '' : ' letterbox') . '" id="thumbnail:' . $video['videoId'] . '">
<img src="https://i.ytimg.com/vi/' . $video['videoId'] . '/' . ($settings['thumbnail_quality'] ? $settings['thumbnail_quality'] : 'default') . '.jpg"/> <img src="https://i.ytimg.com/vi/' . $video['videoId'] . '/' . ($settings['thumbnail_quality'] ? $settings['thumbnail_quality'] : 'default') . '.jpg"/>
<div class="time"> <div class="time">
<h4>' . $video['lengthText'] . '</h4> <h4>' . $video['lengthText'] . '</h4>
@ -1131,7 +1131,7 @@ if (isset($permissions['readable']) && $permissions['readable']) {
if ($settings['thumbnail_quality'] == 'medium' || $settings['thumbnail_quality'] == 'mqdefault') { if ($settings['thumbnail_quality'] == 'medium' || $settings['thumbnail_quality'] == 'mqdefault') {
$header .= ' selected="selected"'; $header .= ' selected="selected"';
} }
$header .= '>Medium (320x180*)</option><option value="default"'; $header .= '>Medium (320x180)</option><option value="default"';
if ($settings['thumbnail_quality'] == 'low' || $settings['thumbnail_quality'] == 'default') { if ($settings['thumbnail_quality'] == 'low' || $settings['thumbnail_quality'] == 'default') {
$header .= ' selected="selected"'; $header .= ' selected="selected"';
} }