removed prints
This commit is contained in:
@@ -2,7 +2,6 @@ package plugin
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
|
||||||
"regexp"
|
"regexp"
|
||||||
|
|
||||||
"gitea.elara.ws/Hazel/music-kraken/internal/common"
|
"gitea.elara.ws/Hazel/music-kraken/internal/common"
|
||||||
@@ -102,8 +101,6 @@ func compileSource(source data.Source) (data.Source, error) {
|
|||||||
|
|
||||||
func FetchSource(source data.Source) (data.MusicObject, error) {
|
func FetchSource(source data.Source) (data.MusicObject, error) {
|
||||||
// the fetch function without the post processing of the music objects
|
// the fetch function without the post processing of the music objects
|
||||||
fmt.Println("call")
|
|
||||||
|
|
||||||
source, err := compileSource(source)
|
source, err := compileSource(source)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
@@ -114,8 +111,6 @@ func FetchSource(source data.Source) (data.MusicObject, error) {
|
|||||||
return nil, errors.New("didn't find plugin of the name " + source.SourceType.Name)
|
return nil, errors.New("didn't find plugin of the name " + source.SourceType.Name)
|
||||||
}
|
}
|
||||||
|
|
||||||
fmt.Println("call2", source)
|
|
||||||
|
|
||||||
if source.ObjectType == data.SongSource {
|
if source.ObjectType == data.SongSource {
|
||||||
song, err := plugin.FetchSong(source)
|
song, err := plugin.FetchSong(source)
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,6 @@ package plugin
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
|
||||||
"regexp"
|
"regexp"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
@@ -568,8 +567,6 @@ func parseAlbum(doc *goquery.Document) data.Album {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (m Musify) FetchAlbum(source data.Source) (data.Album, error) {
|
func (m Musify) FetchAlbum(source data.Source) (data.Album, error) {
|
||||||
fmt.Println("meow")
|
|
||||||
|
|
||||||
album := data.Album{
|
album := data.Album{
|
||||||
Sources: []data.Source{source},
|
Sources: []data.Source{source},
|
||||||
Artists: []data.Artist{},
|
Artists: []data.Artist{},
|
||||||
|
|||||||
Reference in New Issue
Block a user