From ec303e485fcd32b3e6d191a23273b2edcbd9022f Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sun, 29 Jun 2014 23:49:06 -0700 Subject: [PATCH] Add a function to retrieve box art for an NvApp --- moonlight-common/src/com/limelight/nvstream/http/NvHTTP.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/moonlight-common/src/com/limelight/nvstream/http/NvHTTP.java b/moonlight-common/src/com/limelight/nvstream/http/NvHTTP.java index 765281c0..6204dff2 100644 --- a/moonlight-common/src/com/limelight/nvstream/http/NvHTTP.java +++ b/moonlight-common/src/com/limelight/nvstream/http/NvHTTP.java @@ -155,6 +155,11 @@ public class NvHTTP { return pm.pair(uniqueId, pin); } + public InputStream getBoxArtPng(NvApp app) throws IOException { + return openHttpConnection(baseUrl + "/applist?uniqueid="+uniqueId+"&appid="+ + app.getAppId()+"&AssetType=2&AssetIdx=0"); + } + public LinkedList getAppList() throws GfeHttpResponseException, IOException, XmlPullParserException { InputStream in = openHttpConnection(baseUrl + "/applist?uniqueid=" + uniqueId); XmlPullParserFactory factory = XmlPullParserFactory.newInstance();