0.6.3 - Playlist search, few other things i forgot

This commit is contained in:
exttex 2020-11-15 20:25:28 +01:00
parent e9d97986b5
commit e029c41b43
26 changed files with 520 additions and 62 deletions

View file

@ -19,6 +19,7 @@
android:name="io.flutter.app.FlutterApplication"
android:icon="@mipmap/ic_launcher"
android:label="Freezer"
android:requestLegacyExternalStorage="true"
android:usesCleartextTraffic="true">
<service

View file

@ -326,7 +326,7 @@ public class Deezer {
artists += ", " + artist;
}
tag.addField(FieldKey.ARTIST, artists.substring(2));
tag.setField(FieldKey.TRACK, Integer.toString(publicTrack.getInt("track_position")));
tag.setField(FieldKey.TRACK, String.format("%02d", publicTrack.getInt("track_position")));
tag.setField(FieldKey.DISC_NO, Integer.toString(publicTrack.getInt("disk_number")));
tag.setField(FieldKey.ALBUM_ARTIST, publicAlbum.getJSONObject("artist").getString("name"));
tag.setField(FieldKey.YEAR, publicTrack.getString("release_date").substring(0, 4));

View file

@ -180,6 +180,11 @@ public class MainActivity extends FlutterActivity {
intentPreload = null;
return;
}
//Get architecture
if (call.method.equals("arch")) {
result.success(System.getProperty("os.arch"));
return;
}
result.error("0", "Not implemented!", "Not implemented!");
})));

View file

@ -45,8 +45,6 @@ JNIEXPORT void JNICALL Java_f_f_freezer_Deezer_decryptFile(JNIEnv *env, jobject
fwrite(decrypted, sizeof(unsigned char), sizeof(decrypted), ofile);
} else {
int written = fwrite(buffer, sizeof(unsigned char), (size_t)read, ofile);
if (read != 2048)
__android_log_print(ANDROID_LOG_WARN, "DECRYPTOR", "READ: %d, WRITE: %d", read, written);
}
i++;
}

View file

@ -0,0 +1,13 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="23.686956"
android:viewportHeight="23.686956"
android:tint="#FFFFFF">
<group android:translateX="-0.15652174"
android:translateY="-0.15652174">
<path
android:fillColor="#FF000000"
android:pathData="M12,21.35l-1.45,-1.32C5.4,15.36 2,12.28 2,8.5 2,5.42 4.42,3 7.5,3c1.74,0 3.41,0.81 4.5,2.09C13.09,3.81 14.76,3 16.5,3 19.58,3 22,5.42 22,8.5c0,3.78 -3.4,6.86 -8.55,11.54L12,21.35z"/>
</group>
</vector>

Binary file not shown.

After

Width:  |  Height:  |  Size: 418 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 293 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 546 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 789 B