mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2025-07-21 03:52:48 +00:00
Add back the capability to get box art with NvHTTP
This commit is contained in:
parent
8fb2622b66
commit
a4ec619e5a
@ -402,6 +402,12 @@ public class NvHTTP {
|
|||||||
openHttpConnectionToString(baseUrl + "/unpair?uniqueid=" + uniqueId, true);
|
openHttpConnectionToString(baseUrl + "/unpair?uniqueid=" + uniqueId, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public InputStream getBoxArt(NvApp app) throws IOException {
|
||||||
|
ResponseBody resp = openHttpConnection(baseUrl + "/appasset?uniqueid=" + uniqueId +
|
||||||
|
"&appid=" + app.getAppId() + "&AssetType=2&AssetIdx=0", true);
|
||||||
|
return resp.byteStream();
|
||||||
|
}
|
||||||
|
|
||||||
final private static char[] hexArray = "0123456789ABCDEF".toCharArray();
|
final private static char[] hexArray = "0123456789ABCDEF".toCharArray();
|
||||||
private static String bytesToHex(byte[] bytes) {
|
private static String bytesToHex(byte[] bytes) {
|
||||||
char[] hexChars = new char[bytes.length * 2];
|
char[] hexChars = new char[bytes.length * 2];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user