String() improved

This commit is contained in:
Timon Ringwald 2022-08-21 14:38:44 +02:00
parent d99c281ab5
commit 0a28c6b415

View File

@ -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.StringWithoutTitle(),
)
}