progress -- change get to search for lrclib

This commit is contained in:
2025-01-14 10:04:05 -05:00
parent 9d8d38081a
commit f86d5a4fec
6 changed files with 113 additions and 8 deletions

View File

@@ -4,7 +4,7 @@
import asyncio
import sys
sys.path.insert(1, '.')
import sources.cache, sources.genius, sources.aggregate
import sources.cache, sources.genius, sources.aggregate, sources.lrclib
test_artist = "hopsin"
test_song = "ill mind of hopsin 5"
@@ -28,6 +28,14 @@ async def test_genius(artist=None, song=None):
result = await genius.search(artist, song)
print(result)
async def test_lrclib(artist=None, song=None):
if not artist or not song:
artist = test_artist
song = test_song
lrclib = sources.lrclib.LRCLib()
result = await lrclib.search(artist, song)
print(result)
async def test_aggregate(artist=None, song=None):
if not artist or not song:
artist = test_artist
@@ -40,5 +48,6 @@ async def test_aggregate(artist=None, song=None):
loop = asyncio.new_event_loop()
# loop.run_until_complete(test_genius())
loop.run_until_complete(test_cache(artist=test_artist, song=test_song))
loop.run_until_complete(test_lrclib())
# loop.run_until_complete(test_cache(artist=test_artist, song=test_song))
# loop.run_until_complete(test_aggregate())