Skip to content

Commit 1424b52

Browse files
committed
feat(channel): expose podcasts tab in settings and labels
1 parent f08db95 commit 1424b52

3 files changed

Lines changed: 9 additions & 1 deletion

File tree

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ private static int getShowTabKey(final String tab) {
3030
return R.string.show_channel_tabs_channels;
3131
case ChannelTabs.ALBUMS:
3232
return R.string.show_channel_tabs_albums;
33+
case ChannelTabs.PODCASTS:
34+
return R.string.show_channel_tabs_podcasts;
3335
}
3436
return -1;
3537
}
@@ -63,6 +65,8 @@ public static int getTranslationKey(final String tab) {
6365
return R.string.channel_tab_channels;
6466
case ChannelTabs.ALBUMS:
6567
return R.string.channel_tab_albums;
68+
case ChannelTabs.PODCASTS:
69+
return R.string.channel_tab_podcasts;
6670
}
6771
return R.string.unknown_content;
6872
}

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,7 @@
271271
<item>@string/show_channel_tabs_shorts</item>
272272
<item>@string/show_channel_tabs_channels</item>
273273
<item>@string/show_channel_tabs_albums</item>
274+
<item>@string/show_channel_tabs_podcasts</item>
274275
<item>@string/show_channel_tabs_info</item>
275276
</string-array>
276277
<string-array name="show_channel_tabs_description_list">
@@ -279,6 +280,7 @@
279280
<item>@string/channel_tab_shorts</item>
280281
<item>@string/channel_tab_channels</item>
281282
<item>@string/channel_tab_albums</item>
283+
<item>@string/channel_tab_podcasts</item>
282284
<item>@string/channel_tab_info</item>
283285
</string-array>
284286
<string name="show_search_suggestions_key">show_search_suggestions</string>
@@ -1684,4 +1686,5 @@
16841686
<item>enqueue</item>
16851687
<item>disable</item>
16861688
</string-array>
1689+
<string name="show_channel_tabs_podcasts">show_channel_tabs_podcasts</string>
16871690
</resources>

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1106,4 +1106,5 @@
11061106
<string name="beta_test_dialog_title">Join the PipePipe 5.0.0 Beta-2 Test!</string>
11071107
<string name="beta_test_dialog_message">Thank you for your continued support! We\'re excited to release PipePipe 5.0.0 Beta-2, a major step forward in our ground-up rebuild of the app.\n\nThis version focuses on significant improvements in stability and feature completeness, based on early feedback. While we\'re getting much closer to a final release, it\'s still a beta, and your feedback is invaluable.\n\nReminder: This will be installed as \"PipePipe Beta\" and won\'t affect your current app or data.\n\nIf you encounter any bugs or have suggestions, please let us know by opening an issue on our GitHub repository!</string>
11081108
<string name="trending_replaced">YouTube has recently removed the Trending Videos feature, so we\'ve updated our default YouTube trending tab to show Recommended Lives instead. If you don\'t want to see this, you can remove the tab in Settings and set another one as your homepage.</string>
1109-
</resources>
1109+
<string name="channel_tab_podcasts">Podcasts</string>
1110+
</resources>

0 commit comments

Comments
 (0)