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] Download stuck in infinite loop #83

Open
DanielSouzaBertoldi opened this issue Jun 6, 2023 · 1 comment
Open

[BUG] Download stuck in infinite loop #83

DanielSouzaBertoldi opened this issue Jun 6, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@DanielSouzaBertoldi
Copy link

Describe the bug
I've just setup a project to use this library and everytime I try to download a spotify song, the code gets stuck trying to extract the uploader id using yt-dl and then it tries to download it once again.

To Reproduce
Honestly I just setup the project following the steps mentioned in the docs. My code looks like this:

s = Savify(
    api_credentials=(os.environ.get("SPOTIFY_CLI_ID"), os.environ.get("SPOTIFY_CLI_SC")),
    quality=Quality.BEST,
    download_format=Format.MP3,
    path_holder=PathHolder(
        downloads_path='./savify-downloads'
    ),
    group='%artist%/%album%',
    skip_cover_art=False,
    logger=Logger(log_location='./savify-logs', log_level=None) # Silent output
)
print(s.download("https://open.spotify.com/track/01a0H5HPeCMOktdRMygi3t?si=4069f95811ea416a"))

I'm running Python 3.11 using the latest version of Savify.

Expected behavior
I expected the song to actually download or at least not be stuck in an infinite loop trying to get the uploader id from yt-dl.

Screenshots
image

Desktop (please complete the following information):

  • OS: MacOS Monterey 12.6.5
  • Version: 2.3.4

Additional context
This is the full log that keeps repeating over and over again:

[INFO]	Downloading 1 songs...
[DEBUG]	[download] Downloading playlist: BANKS - Stroke audio
[DEBUG]	[youtube:search] query "BANKS - Stroke audio": Downloading page 1
[DEBUG]	[youtube:search] playlist BANKS - Stroke audio: Downloading 1 videos
[DEBUG]	[download] Downloading video 1 of 1
[DEBUG]	[youtube] cA5oN62kk50: Downloading webpage
[DEBUG]	[youtube] Downloading just video cA5oN62kk50 because of --no-playlist
[ERROR]	�[0;31mERROR:�[0m Unable to extract �[0;34muploader id�[0m; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
[DEBUG]	[download] Finished downloading playlist: BANKS - Stroke audio
[DEBUG]	[download] Downloading playlist: BANKS - Stroke audio
[DEBUG]	[youtube:search] query "BANKS - Stroke audio": Downloading page 1
[DEBUG]	[youtube:search] playlist BANKS - Stroke audio: Downloading 1 videos
[DEBUG]	[download] Downloading video 1 of 1
[DEBUG]	[youtube] cA5oN62kk50: Downloading webpage
[DEBUG]	[youtube] Downloading just video cA5oN62kk50 because of --no-playlist
[ERROR]	�[0;31mERROR:�[0m Unable to extract �[0;34muploader id�[0m; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
@DanielSouzaBertoldi DanielSouzaBertoldi added the bug Something isn't working label Jun 6, 2023
@DanielSouzaBertoldi
Copy link
Author

Using this workaround fixed this issue.

#58 (comment)

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