Skip to content

Commit

Permalink
Add setting for journalPath, remove commented out code
Browse files Browse the repository at this point in the history
  • Loading branch information
dvdmuckle committed Dec 10, 2024
1 parent 378c756 commit 23544f1
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions cmd/elite.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,6 @@ var eliteCmd = &cobra.Command{
if playlistToSearch != "" && lastSeenTrack != currentlyPlayingTrack {
currentlyPlayingTrack = lastSeenTrack
ctx := context.Background()
//searchResult, err := conf.Client.Search(ctx, playlistToSearch, spotify.SearchTypePlaylist)
//if err != nil {
// helper.LogErrorAndExit(err)
//}
//opts.PlaybackContext = &searchResult.Playlists.Playlists[0].URI
var opts spotify.PlayOptions
opts.DeviceID = &conf.DeviceID
playlistString := spotify.URI(playlistToSearch)
Expand Down Expand Up @@ -122,12 +117,12 @@ var eliteCmd = &cobra.Command{
helper.LogErrorAndExit(err)
}
if viper.GetString("journalPath") != "" {
err = watcher.Add(home + "/Saved Games/Frontier Developments/Elite Dangerous")
err = watcher.Add(viper.GetString("journalPath"))
if err != nil {
helper.LogErrorAndExit(err)
}
} else {
err = watcher.Add(viper.GetString("journalPath"))
err = watcher.Add(home + "/Saved Games/Frontier Developments/Elite Dangerous")
if err != nil {
helper.LogErrorAndExit(err)
}
Expand Down

0 comments on commit 23544f1

Please sign in to comment.