diff --git a/songqueue.go b/songqueue.go index cc773c1..c198219 100644 --- a/songqueue.go +++ b/songqueue.go @@ -32,7 +32,7 @@ func (q *SongQueue) AddSong(s Song) error { if len(q.queue) == beforeLen+1 { // Caching as added to queue - if dj.conf.Cache.Enabled && c.GetCurrentTotalFileSize() > (dj.conf.Cache.MaximumSize*1048576) { + if dj.conf.Cache.Enabled && dj.cache.GetCurrentTotalFileSize() > (dj.conf.Cache.MaximumSize*1048576) { s.Download() }