From a4ec619e5a81c30b0410cf73ee5ea28845e79d6a Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Fri, 27 Feb 2015 01:15:21 -0500 Subject: [PATCH] Add back the capability to get box art with NvHTTP --- .../src/com/limelight/nvstream/http/NvHTTP.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/moonlight-common/src/com/limelight/nvstream/http/NvHTTP.java b/moonlight-common/src/com/limelight/nvstream/http/NvHTTP.java index 3b8fd8f3..ea05c29e 100644 --- a/moonlight-common/src/com/limelight/nvstream/http/NvHTTP.java +++ b/moonlight-common/src/com/limelight/nvstream/http/NvHTTP.java @@ -401,6 +401,12 @@ public class NvHTTP { public void unpair() throws IOException { 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(); private static String bytesToHex(byte[] bytes) {