@@ -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 ;
0 commit comments