Skip to content

Commit

Permalink
Release 1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
xfangfang committed Jul 23, 2023
1 parent 5ec3864 commit 7f8e140
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions wiliwili/source/activity/dlna_activity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ using namespace brls::literals;
#define GET_SETTING ProgramConfig::instance().getSettingItem

DLNAActivity::DLNAActivity() {
GA("open_dlna")

SubtitleCore::instance().reset();

ip = brls::Application::getPlatform()->getIpAddress();
Expand Down
5 changes: 5 additions & 0 deletions wiliwili/source/fragment/season_evaluate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@
#include "fragment/season_evaluate.hpp"
#include "view/mpv_core.hpp"
#include "utils/string_helper.hpp"
#include "analytics.h"

SeasonEvaluate::SeasonEvaluate() {
this->inflateFromXMLRes("xml/fragment/season_evaluate.xml");

btnDouban->registerClickAction([this](...) {
GA("open_douban")
MPVCore::instance().pause();
brls::Application::getPlatform()->openBrowser(
"https://search.douban.com/movie/subject_search?search_text=" +
Expand All @@ -18,6 +20,7 @@ SeasonEvaluate::SeasonEvaluate() {
});

btnZhihu->registerClickAction([this](...) {
GA("open_zhihu")
MPVCore::instance().pause();
brls::Application::getPlatform()->openBrowser(
"https://www.zhihu.com/search?type=content&q=" +
Expand All @@ -26,13 +29,15 @@ SeasonEvaluate::SeasonEvaluate() {
});

btnBaidu->registerClickAction([this](...) {
GA("open_baidu")
MPVCore::instance().pause();
brls::Application::getPlatform()->openBrowser(
"https://www.baidu.com/s?wd=" + wiliwili::urlEncode(this->keyword));
return true;
});

btnBing->registerClickAction([this](...) {
GA("open_bing")
MPVCore::instance().pause();
brls::Application::getPlatform()->openBrowser(
"https://cn.bing.com/search?q=" +
Expand Down

0 comments on commit 7f8e140

Please sign in to comment.