mirror of
				https://github.com/TeamNewPipe/NewPipe
				synced 2025-10-30 23:03:00 +00:00 
			
		
		
		
	Bandcamp support
This commit is contained in:
		| @@ -317,6 +317,22 @@ | ||||
|                 <data android:pathPrefix="/accounts/" /> | ||||
|                 <data android:pathPrefix="/video-channels/" /> | ||||
|             </intent-filter> | ||||
|  | ||||
|             <!-- Bandcamp filter --> | ||||
|             <intent-filter> | ||||
|                 <action android:name="android.intent.action.VIEW"/> | ||||
|                 <action android:name="android.media.action.MEDIA_PLAY_FROM_SEARCH"/> | ||||
|                 <action android:name="android.nfc.action.NDEF_DISCOVERED"/> | ||||
|  | ||||
|                 <category android:name="android.intent.category.DEFAULT"/> | ||||
|                 <category android:name="android.intent.category.BROWSABLE"/> | ||||
|  | ||||
|                 <data android:scheme="http"/> | ||||
|                 <data android:scheme="https"/> | ||||
|                 <data android:host="bandcamp.com"/> | ||||
|                 <data android:host="*.bandcamp.com"/> | ||||
|                 <data android:pathPrefix="/"/> | ||||
|             </intent-filter> | ||||
|         </activity> | ||||
|         <service | ||||
|             android:name=".RouterActivity$FetcherService" | ||||
|   | ||||
| @@ -48,6 +48,10 @@ public final class KioskTranslator { | ||||
|                 return c.getString(R.string.recent); | ||||
|             case "live": | ||||
|                 return c.getString(R.string.duration_live); | ||||
|             case "Featured": | ||||
|                 return c.getString(R.string.featured); | ||||
|             case "Radio": | ||||
|                 return c.getString(R.string.radio); | ||||
|             default: | ||||
|                 return kioskId; | ||||
|         } | ||||
| @@ -69,6 +73,10 @@ public final class KioskTranslator { | ||||
|                 return ThemeHelper.resolveResourceIdFromAttr(c, R.attr.ic_thumb_up); | ||||
|             case "live": | ||||
|                 return ThemeHelper.resolveResourceIdFromAttr(c, R.attr.ic_live_tv); | ||||
|             case "Featured": | ||||
|                 return ThemeHelper.resolveResourceIdFromAttr(c, R.attr.ic_stars); | ||||
|             case "Radio": | ||||
|                 return ThemeHelper.resolveResourceIdFromAttr(c, R.attr.ic_radio); | ||||
|             default: | ||||
|                 return 0; | ||||
|         } | ||||
|   | ||||
| @@ -38,6 +38,8 @@ public final class ServiceHelper { | ||||
|                 return R.drawable.place_holder_gadse; | ||||
|             case 3: | ||||
|                 return R.drawable.place_holder_peertube; | ||||
|             case 4: | ||||
|                 return R.drawable.place_holder_bandcamp; | ||||
|             default: | ||||
|                 return R.drawable.place_holder_circle; | ||||
|         } | ||||
|   | ||||
							
								
								
									
										
											BIN
										
									
								
								app/src/main/res/drawable-nodpi/place_holder_bandcamp.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								app/src/main/res/drawable-nodpi/place_holder_bandcamp.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| After Width: | Height: | Size: 6.7 KiB | 
| @@ -44,4 +44,13 @@ | ||||
|     <color name="dark_media_ccc_accent_color">#FFFFFF</color> | ||||
|     <color name="dark_media_ccc_statusbar_color">#9e9e9e</color> | ||||
|  | ||||
|     <!-- Bandcamp --> | ||||
|     <color name="light_bandcamp_primary_color">#17a0c4</color> | ||||
|     <color name="light_bandcamp_accent_color">#000000</color> | ||||
|     <color name="light_bandcamp_statusbar_color">#17a0c4</color> | ||||
|  | ||||
|     <color name="dark_bandcamp_primary_color">#17a0c4</color> | ||||
|     <color name="dark_bandcamp_accent_color">#FFFFFF</color> | ||||
|     <color name="dark_bandcamp_statusbar_color">#17a0c4</color> | ||||
|  | ||||
| </resources> | ||||
| @@ -707,4 +707,6 @@ | ||||
|     <string name="private_content">This content is private, so it cannot be streamed or downloaded by NewPipe.</string> | ||||
|     <string name="youtube_music_premium_content">This video is available only to YouTube Music Premium members, so it cannot be streamed or downloaded by NewPipe.</string> | ||||
|     <string name="paid_content">This content is only available to users who have paid, so it cannot be streamed or downloaded by NewPipe.</string> | ||||
|     <string name="featured">Featured</string> | ||||
|     <string name="radio">Radio</string> | ||||
| </resources> | ||||
|   | ||||
| @@ -70,4 +70,23 @@ | ||||
|         <item name="colorAccent">@color/dark_media_ccc_accent_color</item> | ||||
|     </style> | ||||
|  | ||||
|     <!-- Bandcamp --> | ||||
|     <style name="LightTheme.Bandcamp" parent="LightTheme"> | ||||
|         <item name="colorPrimary">@color/light_bandcamp_primary_color</item> | ||||
|         <item name="colorPrimaryDark">@color/light_bandcamp_statusbar_color</item> | ||||
|         <item name="colorAccent">@color/light_bandcamp_accent_color</item> | ||||
|     </style> | ||||
|  | ||||
|     <style name="DarkTheme.Bandcamp" parent="DarkTheme"> | ||||
|         <item name="colorPrimary">@color/dark_bandcamp_primary_color</item> | ||||
|         <item name="colorPrimaryDark">@color/dark_bandcamp_statusbar_color</item> | ||||
|         <item name="colorAccent">@color/dark_bandcamp_accent_color</item> | ||||
|     </style> | ||||
|  | ||||
|     <style name="BlackTheme.Bandcamp" parent="BlackTheme"> | ||||
|         <item name="colorPrimary">@color/dark_bandcamp_primary_color</item> | ||||
|         <item name="colorPrimaryDark">@color/dark_bandcamp_statusbar_color</item> | ||||
|         <item name="colorAccent">@color/dark_bandcamp_accent_color</item> | ||||
|     </style> | ||||
|  | ||||
| </resources> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Fynn Godau
					Fynn Godau