Skip to content

Commit 9465c40

Browse files
committed
[YouTube] Add icons and strings for new trending pages
1 parent 2b6b8b7 commit 9465c40

3 files changed

Lines changed: 25 additions & 0 deletions

File tree

app/src/main/java/org/schabi/newpipe/util/KioskTranslator.java

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,14 @@ public static String getTranslatedKioskName(final String kioskId, final Context
5252
return c.getString(R.string.featured);
5353
case "Radio":
5454
return c.getString(R.string.radio);
55+
case "trending_gaming":
56+
return c.getString(R.string.gaming);
57+
case "trending_music":
58+
return c.getString(R.string.music);
59+
case "trending_movies_and_shows":
60+
return c.getString(R.string.movies);
61+
case "trending_podcasts_episodes":
62+
return c.getString(R.string.podcasts);
5563
default:
5664
return kioskId;
5765
}
@@ -77,6 +85,14 @@ public static int getKioskIcon(final String kioskId) {
7785
return R.drawable.ic_stars;
7886
case "Radio":
7987
return R.drawable.ic_radio;
88+
case "trending_gaming":
89+
return R.drawable.ic_videogame_asset;
90+
case "trending_music":
91+
return R.drawable.ic_music_note;
92+
case "trending_movies_and_shows":
93+
return R.drawable.ic_movie;
94+
case "trending_podcasts_episodes":
95+
return R.drawable.ic_podcasts;
8096
default:
8197
return 0;
8298
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<vector xmlns:android="http://schemas.android.com/apk/res/android" android:height="24dp" android:tint="#000000" android:viewportHeight="24" android:viewportWidth="24" android:width="24dp">
2+
3+
<path android:fillColor="@android:color/white" android:pathData="M14,12c0,0.74 -0.4,1.38 -1,1.72V22h-2v-8.28c-0.6,-0.35 -1,-0.98 -1,-1.72c0,-1.1 0.9,-2 2,-2S14,10.9 14,12zM12,6c-3.31,0 -6,2.69 -6,6c0,1.74 0.75,3.31 1.94,4.4l1.42,-1.42C8.53,14.25 8,13.19 8,12c0,-2.21 1.79,-4 4,-4s4,1.79 4,4c0,1.19 -0.53,2.25 -1.36,2.98l1.42,1.42C17.25,15.31 18,13.74 18,12C18,8.69 15.31,6 12,6zM12,2C6.48,2 2,6.48 2,12c0,2.85 1.2,5.41 3.11,7.24l1.42,-1.42C4.98,16.36 4,14.29 4,12c0,-4.41 3.59,-8 8,-8s8,3.59 8,8c0,2.29 -0.98,4.36 -2.53,5.82l1.42,1.42C20.8,17.41 22,14.85 22,12C22,6.48 17.52,2 12,2z"/>
4+
5+
</vector>

app/src/main/res/values/strings.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -868,4 +868,8 @@
868868
<string name="migration_info_6_7_message">SoundCloud has discontinued the original Top 50 charts. The corresponding tab has been removed from your main page.</string>
869869
<string name="migration_info_7_8_title">YouTube combined trending removed</string>
870870
<string name="migration_info_7_8_message">YouTube has discontinued the combined trending page as of 21st July 2025. NewPipe replaced the default trending page with the trending livestreams.\n\nYou can also select different ones in the content settings.</string>
871+
<string name="gaming">Gaming</string>
872+
<string name="music">Music</string>
873+
<string name="movies">Movies</string>
874+
<string name="podcasts">Podcasts</string>
871875
</resources>

0 commit comments

Comments
 (0)