Edit videos to songs
All checks were successful
Deploy Service / deploy (push) Successful in 26s

This commit is contained in:
Mootfrost 2025-04-14 22:13:47 +03:00
parent cb6c1d29f6
commit e2faeb9337

View file

@ -15,7 +15,7 @@ ytmusic = YTMusic('oauth.json',
def name_to_youtube(name: str):
results = ytmusic.search(name, 'videos', limit=5)
results = ytmusic.search(name, 'songs', limit=2)
print(results[0])
return results[0]['videoId']