0.6.2 - Spotify albums/tracks, album art gradient, languages, minor fixes
This commit is contained in:
parent
f877aa9d7b
commit
e9d97986b5
17 changed files with 497 additions and 221 deletions
|
@ -25,7 +25,7 @@
|
|||
android:name=".DownloadService"
|
||||
android:enabled="true"
|
||||
android:exported="true"
|
||||
android:process=':downloads'></service>
|
||||
android:process="f.f.freezer.DownloadService" ></service>
|
||||
|
||||
<activity
|
||||
android:name=".MainActivity"
|
||||
|
|
|
@ -352,7 +352,10 @@ public class Deezer {
|
|||
//Genres
|
||||
String genres = "";
|
||||
for (int i=0; i<publicAlbum.getJSONObject("genres").getJSONArray("data").length(); i++) {
|
||||
genres += ", " + publicAlbum.getJSONObject("genres").getJSONArray("data").getJSONObject(0).getString("name");
|
||||
String genre = publicAlbum.getJSONObject("genres").getJSONArray("data").getJSONObject(0).getString("name");
|
||||
if (!genres.contains(genre)) {
|
||||
genres += ", " + genre;
|
||||
}
|
||||
}
|
||||
if (genres.length() > 2)
|
||||
tag.setField(FieldKey.GENRE, genres.substring(2));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue