Trim the show name
authorRobert Sesek <rsesek@bluestatic.org>
Sat, 16 Apr 2011 21:17:52 +0000 (17:17 -0400)
committerRobert Sesek <rsesek@bluestatic.org>
Sat, 16 Apr 2011 21:17:52 +0000 (17:17 -0400)
src/tv_rename.go

index a083b66450941100ce46b8c019722cf3d3b0e158..f07fc0494862b3615b735f30758e51ed4a0bd0c8 100644 (file)
@@ -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)