removed function fetch list
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user