Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] TypeError: download() missing 1 required positional argument: 'query' #72

Open
HawkSP opened this issue Nov 6, 2022 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@HawkSP
Copy link

HawkSP commented Nov 6, 2022

Describe the bug
I keep getting this error despite there already been a query_type in the code
please can you evaluate my python and see the issue. Thanks

Traceback (most recent call last):
File "E:\PythonAI\main.py", line 106, in
Savify.download(song_download, query_type=Type.TRACK)
TypeError: download() missing 1 required positional argument: 'query'

Screenshots
data=[]
with open('top50_songs.csv', newline='') as csvfile:
reader = csv.reader(csvfile)
for row in reader:
data.append(row)
col = [x[4] for x in data]
count = 1

Savify(api_credentials=(cid, secret), quality=Quality.BEST, download_format=Format.MP3, path_holder=PathHolder(downloads_path='Saved'))
while count <50:
song_download = col[count]
song_download = song_download.replace('spotify:track:', 'https://open.spotify.com/track/')
Savify.download(song_download, query_type=Type.TRACK)
print(song_download)
count = count + 1

Desktop (please complete the following information):

  • Windows
  • pycharm
@HawkSP HawkSP added the bug Something isn't working label Nov 6, 2022
@HawkSP
Copy link
Author

HawkSP commented Nov 6, 2022

image

@HawkSP HawkSP changed the title [BUG] [BUG] TypeError: download() missing 1 required positional argument: 'query' Nov 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants