1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2024-11-13 05:20:03 +00:00

Add ability to translate YouTube Music search options

This commit is contained in:
wb9688 2020-03-17 11:39:01 +01:00
parent 63e489f134
commit 41a100613f
4 changed files with 22 additions and 2 deletions

View File

@ -136,7 +136,7 @@ dependencies {
exclude module: 'support-annotations'
})
implementation 'com.github.XiangRongLin:NewPipeExtractor:34073527498a22e1f7c1feb18132bf62fb544825'
implementation 'com.github.wb9688:NewPipeExtractor:3b4fca8133456cc8839c465341cf185eb2d276be'
testImplementation 'junit:junit:4.12'
testImplementation 'org.mockito:mockito-core:2.23.0'

View File

@ -61,6 +61,16 @@ public final class ServiceHelper {
return c.getString(R.string.conferences);
case "events":
return c.getString(R.string.events);
case "music_songs":
return c.getString(R.string.music_songs);
case "music_videos":
return c.getString(R.string.music_videos);
case "music_albums":
return c.getString(R.string.music_albums);
case "music_playlists":
return c.getString(R.string.music_playlists);
case "music_artists":
return c.getString(R.string.music_artists);
default:
return filter;
}

View File

@ -596,4 +596,9 @@
<string name="drawer_header_description">Toggle service, momenteel geselecteerd:</string>
<string name="most_liked">Meest geliked</string>
<string name="error_postprocessing_stopped">NewPipe werd gesloten terwijl het bezig was met het bestand</string>
</resources>
<string name="music_songs">Music/Nummers</string>
<string name="music_videos">Music/Video\'s</string>
<string name="music_albums">Music/Albums</string>
<string name="music_playlists">Music/Afspeellijsten</string>
<string name="music_artists">Music/Artiesten</string>
</resources>

View File

@ -150,6 +150,11 @@
<string name="tracks">Tracks</string>
<string name="users">Users</string>
<string name="events">Events</string>
<string name="music_songs">Music/Songs</string>
<string name="music_videos">Music/Videos</string>
<string name="music_albums">Music/Albums</string>
<string name="music_playlists">Music/Playlists</string>
<string name="music_artists">Music/Artists</string>
<string name="yes">Yes</string>
<string name="later">Later</string>
<string name="disabled">Disabled</string>