Skip to content

Commit

Permalink
Metacritic: adjust to new search URLs.
Browse files Browse the repository at this point in the history
  • Loading branch information
UweTrottmann committed Jan 12, 2024
1 parent 14a746d commit 5b8f1ca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Version 71
* 🔧 Shows: adjust edit time dialog to avoid buttons moving around when changing values.
* 🔧 Add acknowledgement messages for actions that may take longer (that do network requests), drop
them for actions that complete immediately (e.g. set watched).
* 🔨 Update Metacritic search links.
* 📝 Latest user interface translations from Crowdin.

#### 71.0.2 🧪
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright 2023 Uwe Trottmann
// SPDX-License-Identifier: Apache-2.0
// Copyright 2020, 2023, 2024 Uwe Trottmann

package com.battlelancer.seriesguide.util

Expand All @@ -12,15 +12,15 @@ object Metacritic {
* Starts VIEW Intent with Metacritic website movie search results URL.
*/
fun searchForMovie(context: Context, title: String) {
val url = "https://www.metacritic.com/search/movie/${Uri.encode(title)}/results"
val url = "https://www.metacritic.com/search/${Uri.encode(title)}/?category=2"
WebTools.openInApp(context, url)
}

/**
* Starts VIEW Intent with Metacritic website TV search results URL.
*/
fun searchForTvShow(context: Context, title: String) {
val url = "https://www.metacritic.com/search/tv/${Uri.encode(title)}/results"
val url = "https://www.metacritic.com/search/${Uri.encode(title)}/?category=1"
WebTools.openInApp(context, url)
}

Expand Down

0 comments on commit 5b8f1ca

Please sign in to comment.