From eeba0ae9d8b8099557d40b4096d89f95294e7152 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=AB=8F=E8=A8=AA=E5=AD=90?= Date: Sat, 9 Sep 2023 21:43:01 +0900 Subject: [PATCH] spliti 1.1.1 --- CHANGELOG.md | 5 +++++ www/index.php | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 295988c..4dd8e92 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +# 1.1.1 +* YouTube動画があれば、オワコンYouTubeに変更させる様に +* サムネイルがなければ、getimg()関数をす部に終了する様に +* もっと小さいバグを修正 + # 1.1.0 * 画像はimgproxy化 * カテゴリーを追加 diff --git a/www/index.php b/www/index.php index c34b1be..c54ed85 100644 --- a/www/index.php +++ b/www/index.php @@ -4,7 +4,7 @@ /* ページのタイトル */ function gettitle (string $str): string { preg_match("/(.*)<\/title>/", $str, $matches); - return $matches[1]; + return isset($matches[1]) ? $matches[1] : ""; } function getimg (string $str): string { @@ -152,7 +152,7 @@ <body> <?= $out["content"] ?> <p class="footer"> - Spliti 1.1.0 | + Spliti 1.1.1 | <a href="https://gitler.moe/suwako/spliti"><img src="/git.png" alt="Git"></a> | <a href="https://076.moe/">076</a> </p>