removed redundant output
This commit is contained in:
@@ -2,7 +2,6 @@ package plugin
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
|
||||||
"regexp"
|
"regexp"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
@@ -328,8 +327,6 @@ func (m *Musify) FetchSong(source data.Source) (data.Song, error) {
|
|||||||
return song, errors.New("too many breadcrumbs on page")
|
return song, errors.New("too many breadcrumbs on page")
|
||||||
}
|
}
|
||||||
|
|
||||||
fmt.Println("found breadcrumbs")
|
|
||||||
|
|
||||||
if artistAnchor := listPoints.Eq(2).Find("a"); artistAnchor != nil && artistAnchor.Length() > 0 {
|
if artistAnchor := listPoints.Eq(2).Find("a"); artistAnchor != nil && artistAnchor.Length() > 0 {
|
||||||
artist := data.Artist{}
|
artist := data.Artist{}
|
||||||
useArtist := true
|
useArtist := true
|
||||||
@@ -357,8 +354,6 @@ func (m *Musify) FetchSong(source data.Source) (data.Song, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if albumAnchor := listPoints.Eq(3).Find("a"); albumAnchor != nil && albumAnchor.Length() > 0 {
|
if albumAnchor := listPoints.Eq(3).Find("a"); albumAnchor != nil && albumAnchor.Length() > 0 {
|
||||||
fmt.Println("found album")
|
|
||||||
|
|
||||||
if href, exists := albumAnchor.Attr("href"); exists {
|
if href, exists := albumAnchor.Attr("href"); exists {
|
||||||
song.Album.Sources = append(song.Album.Sources, data.Source{
|
song.Album.Sources = append(song.Album.Sources, data.Source{
|
||||||
Url: musifyHost + href,
|
Url: musifyHost + href,
|
||||||
|
|||||||
Reference in New Issue
Block a user