Skip to content

Commit 506546f

Browse files
committed
log: use logrus
1 parent 8809097 commit 506546f

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

caps.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
package subtitles
22

33
import (
4-
"log"
54
"strings"
5+
6+
log "github.com/Sirupsen/logrus"
67
)
78

89
// filterCapitalization converts "ALL CAPS" text into "Initial letter capped"

cleaner.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@ package subtitles
22

33
import (
44
"fmt"
5-
"log"
65
"strings"
76
"time"
7+
8+
log "github.com/Sirupsen/logrus"
89
)
910

1011
// CleanupSub parses .srt or .ssa, performs cleanup and renders to a .srt, returning a string. caller is responsible for passing UTF8 string

html.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package subtitles
22

33
import (
4-
"log"
4+
log "github.com/Sirupsen/logrus"
55

66
"github.com/kennygrant/sanitize"
77
)

thesubdb.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@ import (
44
"crypto/md5"
55
"fmt"
66
"io/ioutil"
7-
"log"
87
"net/http"
98
"os"
9+
10+
log "github.com/Sirupsen/logrus"
1011
)
1112

1213
// FindSub finds subtitle online, returns untouched data
@@ -113,7 +114,7 @@ func downloadSubtitleByHash(hash string, language string, apiHost string) ([]byt
113114
}
114115

115116
req.Header.Set("User-Agent",
116-
"SubDB/1.0 (GoSubber/1.0; http://github.com/martinlindhe/subber)")
117+
"SubDB/1.0 (GoSubber/1.0; https://github.com/martinlindhe/subber)")
117118

118119
resp, err := client.Do(req)
119120
if err != nil {

0 commit comments

Comments
 (0)