removed function fetch list

This commit is contained in:
Hazel Noack
2025-10-09 12:35:00 +02:00
parent 6bd957b09e
commit e79e364ff9
4 changed files with 46 additions and 42 deletions

View File

@@ -87,7 +87,7 @@ func TestRegister(t *testing.T) {
func TestFetchSong(t *testing.T) {
RegisterPlugin(&MusifyTest{})
s, err := Fetch(data.Source{
s, err := FetchSource(data.Source{
Url: "https://musify.club/track/linkin-park-in-the-end-3058",
})
@@ -108,7 +108,7 @@ func TestFetchSong(t *testing.T) {
func TestFetchAlbum(t *testing.T) {
RegisterPlugin(&MusifyTest{})
a, err := Fetch(data.Source{
a, err := FetchSource(data.Source{
Url: "https://musify.club/release/linkin-park-hybrid-theory-2000-188",
})
@@ -129,7 +129,7 @@ func TestFetchAlbum(t *testing.T) {
func TestFetchArtist(t *testing.T) {
RegisterPlugin(&MusifyTest{})
a, err := Fetch(data.Source{
a, err := FetchSource(data.Source{
Url: "https://musify.club/artist/linkin-park-5",
})
@@ -150,7 +150,7 @@ func TestFetchArtist(t *testing.T) {
func TestFetchWrongUrl(t *testing.T) {
RegisterPlugin(&MusifyTest{})
_, err := Fetch(data.Source{
_, err := FetchSource(data.Source{
Url: "https://musify.club/",
})
@@ -162,7 +162,7 @@ func TestFetchWrongUrl(t *testing.T) {
func TestNonExistentSourceType(t *testing.T) {
RegisterPlugin(&MusifyTest{})
_, err := Fetch(data.Source{
_, err := FetchSource(data.Source{
Url: "https://musify.club/",
SourceType: &data.SourceType{
Name: "doesn't exist",