mirror of
https://github.com/KevinMidboe/spotify-downloader.git
synced 2025-12-29 13:21:22 +00:00
Update search query!
This commit is contained in:
@@ -40,14 +40,14 @@ class TestArgsManualResultCount:
|
|||||||
# Regresson test for issue #264
|
# Regresson test for issue #264
|
||||||
def test_scrape(self):
|
def test_scrape(self):
|
||||||
const.args.manual = True
|
const.args.manual = True
|
||||||
url = youtube_tools.GenerateYouTubeURL("she is still sleeping",
|
url = youtube_tools.GenerateYouTubeURL("she is still sleeping SAO",
|
||||||
meta_tags=None)
|
meta_tags=None)
|
||||||
video_ids = url.scrape(bestmatch=False)
|
video_ids = url.scrape(bestmatch=False)
|
||||||
# Web scraping gives us all videos on the 1st page
|
# Web scraping gives us all videos on the 1st page
|
||||||
assert len(video_ids) == 20
|
assert len(video_ids) == 20
|
||||||
|
|
||||||
def test_api(self):
|
def test_api(self):
|
||||||
url = youtube_tools.GenerateYouTubeURL("she is still sleeping",
|
url = youtube_tools.GenerateYouTubeURL("she is still sleeping SAO",
|
||||||
meta_tags=None)
|
meta_tags=None)
|
||||||
video_ids = url.api(bestmatch=False)
|
video_ids = url.api(bestmatch=False)
|
||||||
const.args.manual = False
|
const.args.manual = False
|
||||||
|
|||||||
Reference in New Issue
Block a user