Fixing build errors

This commit is contained in:
MichaelOultram 2015-08-03 23:02:16 +01:00
parent 5e70e69222
commit e73761dc82

View file

@ -16,6 +16,8 @@ type YouTubeDL struct {
thumbnail string thumbnail string
submitter string submitter string
duration string duration string
url string
offset string
playlist Playlist playlist Playlist
skippers []string skippers []string
dontSkip bool dontSkip bool
@ -99,7 +101,7 @@ func (dl *YouTubeDL) AddSkip(username string) error {
func (dl *YouTubeDL) RemoveSkip(username string) error { func (dl *YouTubeDL) RemoveSkip(username string) error {
for i, user := range dl.skippers { for i, user := range dl.skippers {
if username == user { if username == user {
dl.skippers = append(s.skippers[:i], s.skippers[i+1:]...) dl.skippers = append(dl.skippers[:i], dl.skippers[i+1:]...)
return nil return nil
} }
} }