Skip to content

Commit c4e92da

Browse files
committed
Merge pull request #3 from arkraft/master
2 parents 3addf5b + 9b5cda4 commit c4e92da

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,4 @@ build/
2222
# ReSharper
2323
_ReSharper*/
2424
*.[Rr]e[Ss]harper
25+
packages/

.wox/Newtonsoft.Json.dll

416 KB
Binary file not shown.

.wox/Wox.Plugin.dll

15.5 KB
Binary file not shown.

SpotifyPlugin.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public void Init(PluginInitContext context)
1616
this._context = context;
1717

1818
// initialize data, passing it the plugin directory
19-
data = new ApiData(_context.CurrentPluginMetadata.PluginDirecotry);
19+
data = new ApiData(_context.CurrentPluginMetadata.PluginDirectory);
2020
}
2121

2222
public List<Result> Query(Query query)
@@ -35,7 +35,7 @@ public List<Result> Query(Query query)
3535
Title = x.Name,
3636
SubTitle = string.Format("Popularity: {0}%", System.Convert.ToDouble(x.Popularity)*100 ),
3737
// When selected, open it with the spotify client
38-
Action = e => _context.ShellRun(x.Href),
38+
Action = e => _context.API.ShellRun(x.Href),
3939
IcoPath = "icon.png"
4040
}).ToList();
4141
break;
@@ -47,7 +47,7 @@ public List<Result> Query(Query query)
4747
Title = x.Name,
4848
SubTitle = "Artist: " + string.Join(", ", x.Artists.Select(a => a.Name).ToArray()),
4949
// When selected, open it with the spotify client
50-
Action = e => _context.ShellRun(x.Href),
50+
Action = e => _context.API.ShellRun(x.Href),
5151
IcoPath = data.GetArtwork(x.Href)
5252
}).ToList();
5353
break;
@@ -60,7 +60,7 @@ public List<Result> Query(Query query)
6060
Title = x.Name,
6161
SubTitle = "Artist: " + string.Join(", ", x.Artists.Select(a => a.Name).ToArray()),
6262
// When selected, open it with the spotify client
63-
Action = e => _context.ShellRun(x.Href),
63+
Action = e => _context.API.ShellRun(x.Href),
6464
IcoPath = "icon.png"
6565
}).ToList();
6666
break;

Wox.Plugin.Spotify.csproj

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,8 @@
3333
<Prefer32Bit>false</Prefer32Bit>
3434
</PropertyGroup>
3535
<ItemGroup>
36-
<Reference Include="Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
37-
<SpecificVersion>False</SpecificVersion>
38-
<HintPath>..\packages\Newtonsoft.Json.6.0.1\lib\net35\Newtonsoft.Json.dll</HintPath>
36+
<Reference Include="Newtonsoft.Json">
37+
<HintPath>.wox\Newtonsoft.Json.dll</HintPath>
3938
</Reference>
4039
<Reference Include="System" />
4140
<Reference Include="System.Core" />
@@ -44,7 +43,7 @@
4443
<Reference Include="System.Data" />
4544
<Reference Include="System.Xml" />
4645
<Reference Include="Wox.Plugin">
47-
<HintPath>..\packages\Wox.Plugin.1.0.0\lib\Wox.Plugin.dll</HintPath>
46+
<HintPath>.wox\Wox.Plugin.dll</HintPath>
4847
</Reference>
4948
</ItemGroup>
5049
<ItemGroup>

0 commit comments

Comments
 (0)