From 39a3f03e7952de40bbac8719d97dc47721401a65 Mon Sep 17 00:00:00 2001 From: Fynn Godau Date: Thu, 4 Jun 2020 11:05:41 +0200 Subject: [PATCH] Bandcamp support --- app/src/main/AndroidManifest.xml | 16 +++++++++++++++ .../schabi/newpipe/util/KioskTranslator.java | 8 ++++++++ .../schabi/newpipe/util/ServiceHelper.java | 2 ++ .../drawable-nodpi/place_holder_bandcamp.png | Bin 0 -> 6893 bytes app/src/main/res/values/colors_services.xml | 9 +++++++++ app/src/main/res/values/strings.xml | 2 ++ app/src/main/res/values/styles_services.xml | 19 ++++++++++++++++++ 7 files changed, 56 insertions(+) create mode 100644 app/src/main/res/drawable-nodpi/place_holder_bandcamp.png diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index e7fa95759..23128117a 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -317,6 +317,22 @@ + + + + + + + + + + + + + + + + `o9OEtw?*?6qEcs*h-}o8KOPf##3H;@puWD61JMWOfx217-_RkrS_4K zm|nKjLz0eU#%5@xsc>q-6oYnWD?>xm(d7Nyw|0M@c02#U@%i}Ret53?zOL{0`hKrl z`UW57w9n>z1^}3bd#>38fDZgt2N>$ZFaO^6WC(tl9P1gh7XYI>=#y3-b9o0`oX!0@ zkh?i1lFQ%5i2!^)fAP-f-Fw5g#YQZS;Y8)BUFQHW=UaTuSAP4>yjJvFyT(g+`KGB( zpSE$$Z)bxiZ`pJ8SKU3{HYVFVQ|Dd$lK4tRJ42n@QqGG!dTh_G{L>lN;|@nIzwo`| zF@xg!J5$g3t&7#O(mmIFc17-$Fc3HBr_shCobx)UbT^N9!z$C|=`$JgHRm-Kem#kQ_ z*K!wN+^i_XDs81#K5sHORoh22GYhR)n~zNe_+!PAb)2Xf*@q;N&$5*>i2)~>Wof!i z1|TtF;3}3K@g`wLW&PKA&w*rJOey!GeF(slcR5nQ7#CLa>hT<8*XxiFdU(PlnF@mAj(y$4Z?=saF z5f|D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924 100644 --- a/app/src/main/res/values/colors_services.xml +++ b/app/src/main/res/values/colors_services.xml @@ -44,4 +44,13 @@ #FFFFFF #9e9e9e + + #17a0c4 + #000000 + #17a0c4 + + #17a0c4 + #FFFFFF + #17a0c4 + \ No newline at end of file diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 25e7f6210..9fb15e463 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -707,4 +707,6 @@ This content is private, so it cannot be streamed or downloaded by NewPipe. This video is available only to YouTube Music Premium members, so it cannot be streamed or downloaded by NewPipe. This content is only available to users who have paid, so it cannot be streamed or downloaded by NewPipe. + Featured + Radio diff --git a/app/src/main/res/values/styles_services.xml b/app/src/main/res/values/styles_services.xml index ad8b35899..89d04e49f 100644 --- a/app/src/main/res/values/styles_services.xml +++ b/app/src/main/res/values/styles_services.xml @@ -70,4 +70,23 @@ @color/dark_media_ccc_accent_color + + + + + + +