update extractor, kiosk names and icons

This commit is contained in:
yausername 2019-12-03 01:50:23 +05:30
parent 4c89d1a6e5
commit 890d1cb50b
No known key found for this signature in database
GPG Key ID: F946F508AA241678
3 changed files with 12 additions and 1 deletions

View File

@ -62,7 +62,7 @@ dependencies {
exclude module: 'support-annotations' exclude module: 'support-annotations'
}) })
implementation 'com.github.yausername:NewPipeExtractor:6a7680c' implementation 'com.github.yausername:NewPipeExtractor:00c2368'
testImplementation 'junit:junit:4.12' testImplementation 'junit:junit:4.12'
testImplementation 'org.mockito:mockito-core:2.23.0' testImplementation 'org.mockito:mockito-core:2.23.0'

View File

@ -31,6 +31,12 @@ public class KioskTranslator {
return c.getString(R.string.top_50); return c.getString(R.string.top_50);
case "New & hot": case "New & hot":
return c.getString(R.string.new_and_hot); return c.getString(R.string.new_and_hot);
case "Local":
return c.getString(R.string.local);
case "Recently added":
return c.getString(R.string.recently_added);
case "Most liked":
return c.getString(R.string.most_liked);
case "conferences": case "conferences":
return c.getString(R.string.conferences); return c.getString(R.string.conferences);
default: default:
@ -50,6 +56,8 @@ public class KioskTranslator {
return ThemeHelper.resolveResourceIdFromAttr(c, R.attr.ic_kiosk_local); return ThemeHelper.resolveResourceIdFromAttr(c, R.attr.ic_kiosk_local);
case "Recently added": case "Recently added":
return ThemeHelper.resolveResourceIdFromAttr(c, R.attr.ic_kiosk_recent); return ThemeHelper.resolveResourceIdFromAttr(c, R.attr.ic_kiosk_recent);
case "Most liked":
return ThemeHelper.resolveResourceIdFromAttr(c, R.attr.thumbs_up);
case "conferences": case "conferences":
return ThemeHelper.resolveResourceIdFromAttr(c, R.attr.ic_hot); return ThemeHelper.resolveResourceIdFromAttr(c, R.attr.ic_hot);
default: default:

View File

@ -405,6 +405,9 @@
<string name="trending">Trending</string> <string name="trending">Trending</string>
<string name="top_50">Top 50</string> <string name="top_50">Top 50</string>
<string name="new_and_hot">New &amp; hot</string> <string name="new_and_hot">New &amp; hot</string>
<string name="local">Local</string>
<string name="recently_added">Recently added</string>
<string name="most_liked">Most liked</string>
<string name="conferences">Conferences</string> <string name="conferences">Conferences</string>
<string name="service_kiosk_string" translatable="false">%1$s/%2$s</string> <string name="service_kiosk_string" translatable="false">%1$s/%2$s</string>
<!-- Play Queue --> <!-- Play Queue -->