Skip to content

Commit 4f9af81

Browse files
committed
phase-1 changes
1 parent 7bd4beb commit 4f9af81

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎Torch.API/WebAPI/PluginQuery.cs‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ namespace Torch.API.WebAPI
1313
public class PluginQuery
1414
{
1515
private const string ALL_QUERY = "https://torchapi.com/api/plugins";
16-
private const string PLUGIN_QUERY = "https://torchapi.net/api/plugins/{0}";
16+
private const string PLUGIN_QUERY = "https://torchapi.com/api/plugins/item/{0}";
1717
private readonly HttpClient _client;
1818
private static readonly Logger Log = LogManager.GetCurrentClassLogger();
1919

@@ -87,6 +87,7 @@ public async Task<bool> DownloadPlugin(Guid guid, string path = null)
8787
public async Task<bool> DownloadPlugin(string guid, string path = null)
8888
{
8989
var item = await QueryOne(guid);
90+
if (item == null) return false;
9091
return await DownloadPlugin(item, path);
9192
}
9293

0 commit comments

Comments
 (0)