String() method improved
This commit is contained in:
parent
d99c281ab5
commit
80d7a2f422
@ -22,11 +22,12 @@ type ParsedTorrent struct {
|
||||
}
|
||||
|
||||
func (t ParsedTorrent) String() string {
|
||||
return fmt.Sprintf("title: %s | episode: %d | resolution: %s | languages: %s | subtitles: %s",
|
||||
return fmt.Sprintf("title: %s | episode: %d | resolution: %s | languages: %s | subtitles: %s | %s",
|
||||
t.Anime.Title.Native,
|
||||
t.Episode,
|
||||
t.Resolution,
|
||||
strings.Join(t.Languages, ", "),
|
||||
strings.Join(t.Subtitles, ", "),
|
||||
t.Torrent,
|
||||
)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user