From 055d777ca1fe28df3598d5c89b7287cff0b81ece Mon Sep 17 00:00:00 2001 From: Courville Software Date: Sun, 11 Aug 2024 18:19:42 +0400 Subject: [PATCH] VideoInfoActivityFragment: one getLanguage for tmdb in Scraper class --- .../video/info/VideoInfoActivityFragment.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/archos/mediacenter/video/info/VideoInfoActivityFragment.java b/src/main/java/com/archos/mediacenter/video/info/VideoInfoActivityFragment.java index c90b8d52..657d362b 100644 --- a/src/main/java/com/archos/mediacenter/video/info/VideoInfoActivityFragment.java +++ b/src/main/java/com/archos/mediacenter/video/info/VideoInfoActivityFragment.java @@ -107,11 +107,10 @@ import com.archos.mediascraper.EpisodeTags; import com.archos.mediascraper.MovieTags; import com.archos.mediascraper.NfoWriter; +import com.archos.mediascraper.Scraper; import com.archos.mediascraper.ScraperTrailer; import com.archos.mediascraper.ShowTags; import com.archos.mediascraper.VideoTags; -import com.archos.mediascraper.xml.MovieScraper3; -import com.archos.mediascraper.xml.ShowScraper4; import com.github.ksoichiro.android.observablescrollview.ObservableScrollView; import com.github.ksoichiro.android.observablescrollview.ObservableScrollViewCallbacks; import com.github.ksoichiro.android.observablescrollview.ScrollState; @@ -1123,10 +1122,10 @@ else if(view == mSubtitleHeader){ // Format TMDB URL with movie ID and preferred language final String language, tmdbUrl; if (mIsVideoMovie) { - language = MovieScraper3.getLanguage(getActivity()); + language = Scraper.getLanguage(getActivity()); tmdbUrl = String.format(getResources().getString(R.string.tmdb_movie_title_url), Long.toString(mTMDBId), language); } else { - language = ShowScraper4.getLanguage(getActivity()); + language = Scraper.getLanguage(getActivity()); tmdbUrl = String.format(getResources().getString(R.string.tmdb_tvshow_title_url), Long.toString(mOnlineId), language); } log.debug("onClick: mTMDBId=" + mTMDBId + ", tmdbUrl=" + tmdbUrl); @@ -1137,7 +1136,7 @@ else if(view == mSubtitleHeader){ }else if(view == mTVDBIcon){ final String language; // Format TVDB URL with movie ID and preferred language - language = ShowScraper4.getLanguage(getActivity()); + language = Scraper.getLanguage(getActivity()); final String tvdbUrl = String.format(getResources().getString(R.string.tvdb_title_url), Long.toString(mTVDBId), language); // Breaks AndroidTV acceptance Intent it = new Intent(Intent.ACTION_VIEW, Uri.parse(tvdbUrl));