Skip to content

Commit

Permalink
Merge pull request #227 from Fcatme/php8
Browse files Browse the repository at this point in the history
fix imdb https
  • Loading branch information
xiaomlove authored Sep 24, 2023
2 parents a84a6fd + 794d8d5 commit 8306b7e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions include/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -1199,10 +1199,10 @@ function get_external_tr($imdb_url = "")
}
$ptGen = new Nexus\PTGen\PTGen();
$imdbNumber = parse_imdb_id($imdb_url);
$y = $ptGen->buildInput("url", $imdbNumber ? "http://www.imdb.com/title/tt".parse_imdb_id($imdb_url) : "", $lang_functions['text_imdb_url_note'], nexus_trans('ptgen.btn_get_desc'));
$y = $ptGen->buildInput("url", $imdbNumber ? "https://www.imdb.com/title/tt".parse_imdb_id($imdb_url) : "", $lang_functions['text_imdb_url_note'], nexus_trans('ptgen.btn_get_desc'));
return tr($lang_functions['row_imdb_url'], $y, 1);

// ($showextinfo['imdb'] == 'yes' ? tr($lang_functions['row_imdb_url'], "<input type=\"text\" style=\"width: 99%;\" name=\"url\" value=\"".($imdbNumber ? "http://www.imdb.com/title/tt".parse_imdb_id($imdb_url) : "")."\" /><br /><font class=\"medium\">".$lang_functions['text_imdb_url_note']."</font>", 1) : "");
// ($showextinfo['imdb'] == 'yes' ? tr($lang_functions['row_imdb_url'], "<input type=\"text\" style=\"width: 99%;\" name=\"url\" value=\"".($imdbNumber ? "https://www.imdb.com/title/tt".parse_imdb_id($imdb_url) : "")."\" /><br /><font class=\"medium\">".$lang_functions['text_imdb_url_note']."</font>", 1) : "");
}

function get_torrent_extinfo_identifier($torrentid)
Expand Down Expand Up @@ -1239,7 +1239,7 @@ function parse_imdb_id($url)

function build_imdb_url($imdb_id)
{
return $imdb_id == "" ? "" : "http://www.imdb.com/title/tt" . $imdb_id . "/";
return $imdb_id == "" ? "" : "https://www.imdb.com/title/tt" . $imdb_id . "/";
}

// it's a stub implemetation here, we need more acurate regression analysis to complete our algorithm
Expand Down
2 changes: 1 addition & 1 deletion lang/chs/lang_functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@
'title_no_new_comment' => "无新评论",
'row_external_info' => "外部信息",
'row_imdb_url' => "IMDb链接",
'text_imdb_url_note' => "(来自<strong><a href=\"http://www.imdb.com\">IMDb</a></strong>的链接。如电影<b>The Dark Knight</b>的链接是<b>http://www.imdb.com/title/tt0468569/</b>)",
'text_imdb_url_note' => "(来自<strong><a href=\"https://www.imdb.com\">IMDb</a></strong>的链接。如电影<b>The Dark Knight</b>的链接是<b>https://www.imdb.com/title/tt0468569/</b>)",
'text_artist' => "艺术家:",
'text_album' => "专辑名:",
'title_get_rss' => "获取RSS",
Expand Down
2 changes: 1 addition & 1 deletion lang/cht/lang_functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@
'title_no_new_comment' => "無新評論",
'row_external_info' => "外部信息",
'row_imdb_url' => "IMDb鏈接",
'text_imdb_url_note' => "(來自<strong><a href=\"http://www.imdb.com\">IMDb</a></strong>的鏈接。如電影<b>The Dark Knight</b>的鏈接是<b>http://www.imdb.com/title/tt0468569/</b>)",
'text_imdb_url_note' => "(來自<strong><a href=\"https://www.imdb.com\">IMDb</a></strong>的鏈接。如電影<b>The Dark Knight</b>的鏈接是<b>https://www.imdb.com/title/tt0468569/</b>)",
'text_artist' => "藝術家:",
'text_album' => "專輯名:",
'title_get_rss' => "獲取RSS",
Expand Down
2 changes: 1 addition & 1 deletion lang/en/lang_functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@
'title_no_new_comment' => "No&nbsp;new&nbsp;comment",
'row_external_info' => "External&nbsp;Info",
'row_imdb_url' => "IMDb&nbsp;URL",
'text_imdb_url_note' => "(URL taken from <strong><a href=\"http://www.imdb.com\">IMDb</a></strong>. e.g.&nbsp;for movie <b>The Dark Knight</b> the URL is <b>http://www.imdb.com/title/tt0468569/</b>)",
'text_imdb_url_note' => "(URL taken from <strong><a href=\"https://www.imdb.com\">IMDb</a></strong>. e.g.&nbsp;for movie <b>The Dark Knight</b> the URL is <b>https://www.imdb.com/title/tt0468569/</b>)",
'text_artist' => "&nbsp;Artist:&nbsp;",
'text_album' => "Album:&nbsp;",
'title_get_rss' => "Get&nbsp;RSS",
Expand Down

0 comments on commit 8306b7e

Please sign in to comment.