From 91114547c6a98d23960494d455932851fa89ecf7 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sat, 16 Apr 2011 17:17:52 -0400 Subject: [PATCH] Trim the show name --- src/tv_rename.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tv_rename.go b/src/tv_rename.go index a083b66..f07fc04 100644 --- a/src/tv_rename.go +++ b/src/tv_rename.go @@ -171,7 +171,7 @@ func parseResponse(response *http.Response) *fullEpisodeInfo { } switch parts[0] { case "Show Name": - info.episode.showName = parts[1] + info.episode.showName = strings.TrimSpace(parts[1]) case "Episode Info": // Split the line, which is of the form: |SxE^Name^AirDate|. parts = strings.Split(parts[1], "^", 3) -- 2.22.5