mirror of
https://github.com/antebudimir/tempus.git
synced 2026-01-01 01:53:31 +00:00
Encoded password
This commit is contained in:
parent
e71cb5fd5c
commit
af93d233bd
4 changed files with 13 additions and 2 deletions
|
|
@ -17,6 +17,7 @@ import java.util.List;
|
|||
import java.util.Locale;
|
||||
import java.util.Map;
|
||||
import java.util.regex.Pattern;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
public class MusicUtil {
|
||||
private static final String TAG = "MusicUtil";
|
||||
|
|
@ -35,7 +36,7 @@ public class MusicUtil {
|
|||
"&c=" + params.get("c") +
|
||||
"&id=" + song.getId();
|
||||
|
||||
if(connectivityManager.getActiveNetworkInfo() != null) {
|
||||
if (connectivityManager.getActiveNetworkInfo() != null) {
|
||||
uri = uri + "&maxBitRate="
|
||||
+ getBitratePreference(context, connectivityManager.getActiveNetworkInfo().getType()) + "&format="
|
||||
+ getTranscodingFormatPreference(context, connectivityManager.getActiveNetworkInfo().getType());
|
||||
|
|
@ -129,6 +130,10 @@ public class MusicUtil {
|
|||
return readableStrings;
|
||||
}
|
||||
|
||||
public static String passwordHexEncoding(String plainPassword) {
|
||||
return "enc:" + plainPassword.chars().mapToObj(Integer::toHexString).collect(Collectors.joining());
|
||||
}
|
||||
|
||||
public static int getDefaultPicPerCategory(String category) {
|
||||
switch (category) {
|
||||
case CustomGlideRequest.SONG_PIC:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue