mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-23 19:37:23 +08:00
hot&classic do not resize cover
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
defined('VERSION_NUMBER') || define('VERSION_NUMBER', '1.7.8');
|
||||
defined('RELEASE_DATE') || define('RELEASE_DATE', '2022-05-03');
|
||||
defined('RELEASE_DATE') || define('RELEASE_DATE', '2022-05-04');
|
||||
defined('IN_TRACKER') || define('IN_TRACKER', true);
|
||||
defined('PROJECTNAME') || define("PROJECTNAME","NexusPHP");
|
||||
defined('NEXUSPHPURL') || define("NEXUSPHPURL","https://nexusphp.org");
|
||||
|
||||
@@ -5071,7 +5071,7 @@ function displayHotAndClassic()
|
||||
{
|
||||
$pro_torrent = get_torrent_promotion_append($array['sp_state'],'word');
|
||||
if (!empty($array['cover'])) {
|
||||
$thumbnail = "<img width=\"{$width}\" height=\"{$height}\" src=\"".resize_image($array['cover'], $width, $height)."\" border=\"0\" alt=\"poster\" />";
|
||||
$thumbnail = "<img width=\"{$width}\" height=\"{$height}\" src=\"".$array['cover']."\" border=\"0\" alt=\"poster\" />";
|
||||
} elseif ($imdb_id = parse_imdb_id($array["url"])) {
|
||||
if (array_search($imdb_id, $allImdb) !== false) { //a torrent with the same IMDb url already exists
|
||||
continue;
|
||||
@@ -5082,7 +5082,7 @@ function displayHotAndClassic()
|
||||
if (empty($photo_url)) {
|
||||
do_log("torrent: {$array['id']}, url: {$array['url']}, imdb_id: $imdb_id can not get photo", 'error');
|
||||
}
|
||||
$thumbnail = "<img width=\"{$width}\" height=\"{$height}\" src=\"".resize_image($photo_url, $width, $height)."\" border=\"0\" alt=\"poster\" />";
|
||||
$thumbnail = "<img width=\"{$width}\" height=\"{$height}\" src=\"".$photo_url."\" border=\"0\" alt=\"poster\" />";
|
||||
} catch (\Exception $exception) {
|
||||
do_log($exception->getMessage() . "\n[stacktrace]\n" . $exception->getTraceAsString(), 'error');
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user