diff --git a/CHANGELOG.md b/CHANGELOG.md index a0e114a2..bb73dfcf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,15 +1,16 @@ # Changelog -## [next] +## [0.5.3] ### Add * save windows state when exit -* support touch input on linux -* support paste text to search input +* support touch input on linux (@xfangfang) +* support paste text to search input (@xfangfang) * new option low quality * new option subtitle fallback * support custom user-agent in webdav browser +* http server support for remote ### Fixed diff --git a/CMakeLists.txt b/CMakeLists.txt index a4ecf875..604e77d1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -51,7 +51,7 @@ include(${BOREALIS_LIBRARY}/cmake/toolchain.cmake) project(Switchfin) set(VERSION_MAJOR "0") set(VERSION_MINOR "5") -set(VERSION_ALTER "2") +set(VERSION_ALTER "3") set(PROJECT_TITLEID "010ff000ffff0003") set(PROJECT_AUTHOR "dragonflylee") set(PACKAGE_NAME "org.player.switchfin") diff --git a/app/src/api/http.cpp b/app/src/api/http.cpp index 58c69bac..a72b185a 100644 --- a/app/src/api/http.cpp +++ b/app/src/api/http.cpp @@ -16,6 +16,9 @@ class curl_error : public std::exception { CURLcode code; }; +static std::string user_agent = + fmt::format("{}/{} ({})", AppVersion::getPackageName(), AppVersion::getVersion(), AppVersion::getPlatform()); + /// @brief curl context HTTP::HTTP() : chunk(nullptr) { @@ -32,6 +35,7 @@ HTTP::HTTP() : chunk(nullptr) { this->easy = curl_easy_init(); + curl_easy_setopt(this->easy, CURLOPT_USERAGENT, user_agent.c_str()); curl_easy_setopt(this->easy, CURLOPT_FOLLOWLOCATION, 1L); // enable all supported built-in compressions curl_easy_setopt(this->easy, CURLOPT_ACCEPT_ENCODING, ""); @@ -109,8 +113,7 @@ void HTTP::set_option(const Cookies& cookies) { curl_easy_setopt(this->easy, CURLOPT_COOKIE, ss.str().c_str()); } -void HTTP::set_basic_auth(const std::string& user, const std::string& passwd) -{ +void HTTP::set_basic_auth(const std::string& user, const std::string& passwd) { curl_easy_setopt(this->easy, CURLOPT_HTTPAUTH, CURLAUTH_BASIC); curl_easy_setopt(this->easy, CURLOPT_USERNAME, user.c_str()); curl_easy_setopt(this->easy, CURLOPT_PASSWORD, passwd.c_str()); diff --git a/debian/control b/debian/control index cb8ccd73..ef251aa9 100644 --- a/debian/control +++ b/debian/control @@ -11,7 +11,7 @@ Build-Depends: debhelper (>= 10), libcurl4-openssl-dev, libwebp-dev, libmpv-dev -Standards-Version: 0.5.2 +Standards-Version: 0.5.3 Vcs-Git: https://github.com/dragonflylee/switchfin.git Package: switchfin diff --git a/scripts/aur/PKGBUILD b/scripts/aur/PKGBUILD index ca2279c8..75267d0b 100644 --- a/scripts/aur/PKGBUILD +++ b/scripts/aur/PKGBUILD @@ -1,5 +1,5 @@ pkgname=switchfin -pkgver=0.5.2 +pkgver=0.5.3 pkgrel=1 pkgdesc='Third-party native Jellyfin client' arch=('x86_64' 'aarch64') diff --git a/scripts/org.player.switchfin.appdata.xml b/scripts/org.player.switchfin.appdata.xml index ce0bcd3d..a0b34d66 100644 --- a/scripts/org.player.switchfin.appdata.xml +++ b/scripts/org.player.switchfin.appdata.xml @@ -18,7 +18,7 @@ - +

Please See Official Changelog at github.com/dragonflylee/switchfin/releases diff --git a/scripts/snap/snapcraft.yaml b/scripts/snap/snapcraft.yaml index 802129cd..c2f2cee4 100644 --- a/scripts/snap/snapcraft.yaml +++ b/scripts/snap/snapcraft.yaml @@ -2,7 +2,7 @@ name: switchfin summary: switchfin description: | third-party PC player for Jellyfin -version: "0.5.2" +version: "0.5.3" grade: stable icon: ../resources/icon/icon.png base: core20