Skip to content

Commit

Permalink
feat: add is adult in output search file
Browse files Browse the repository at this point in the history
  • Loading branch information
lpsm-dev committed Jan 3, 2022
1 parent dd145f4 commit 9ac8d89
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/trace/search_file.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ func SearchAnimeByFile(animeFile string, pretty bool) {
{"πŸ—½ Title English", animeResp.Result[0].Anilist.Title.English},
{"πŸ—» Title Romaji", animeResp.Result[0].Anilist.Title.Romaji},
{"πŸ“Ί Episode Number", color.MagentaString(strconv.Itoa(animeResp.Result[0].Episode))},
{"😈 Is Adult", animeResp.Result[0].Anilist.IsAdult},
})
versionTable.SetStyle(table.StyleColoredBlueWhiteOnBlack)
versionTable.Render()
Expand All @@ -101,5 +102,6 @@ func SearchAnimeByFile(animeFile string, pretty bool) {
fmt.Println("πŸ—½ Title English: " + animeResp.Result[0].Anilist.Title.English)
fmt.Println("πŸ—» Title Romaji: " + animeResp.Result[0].Anilist.Title.Romaji)
fmt.Println("πŸ“Ί Episode Number: " + color.MagentaString(strconv.Itoa(animeResp.Result[0].Episode)))
fmt.Println("😈 Is Adult: " + fmt.Sprintf("%v", animeResp.Result[0].Anilist.IsAdult))
}
}

0 comments on commit 9ac8d89

Please sign in to comment.