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

connection closed prematurely / special characters in name? #261

Open
0x4a opened this issue Jul 26, 2018 · 4 comments
Open

connection closed prematurely / special characters in name? #261

0x4a opened this issue Jul 26, 2018 · 4 comments

Comments

@0x4a
Copy link

0x4a commented Jul 26, 2018

I try downloading a rather large list with the command
scdl.exe -l https://soundcloud.com/das-kraftfuttermischwerk/sets/fusion-festival-2018 --download-archive archive.txt -c
but keep failing at track 118 with message "connection closed prematurely, download incomplete".

Now, that track has the character "$" in its title, so I first thought that might be the problem. Or maybe it just got removed? So I opened the playlist to see, and found that this track is not in there, anymore. That is: soundcloud seems to skip it, it goes from 117 directly to 119? So might be a problem with soundcloud itself?

What are my ways to download the remaining 80 tracks of that list? Is there an option to skip that one track? Do I have to ask the maintainer of the list to remove it? Any other options?

Thanks in advance, Daniel

@flyingrub
Copy link
Collaborator

you can use the -o option to start at a certain track number.
-o 119 for example.

@0x4a
Copy link
Author

0x4a commented Aug 1, 2018

That works like a charm, thanks!

Any chance you can catch that error, so it automagically skips to the next track instead of aborting?

@mic2100
Copy link

mic2100 commented Sep 1, 2018

I've been experiencing the same issue. One of the track I was downloading had a special char which causes the error as described by the op. Also I have noticed this happening is a track is removed/hidden from Soundcloud.

For example
If I download https://soundcloud.com/hdbeendope/sets/the-greay-t-area it tries to download 21 tracks but there are only 20 visible on the website, it actually fails on track 16 but that track is not visible on the website. So I suspect that the information your getting about playlists also contains details of tracks that it cannot download.

A solution would be to allow a flag to be set --skip-missing-tracks that allows it to skip over failed downloads so that it doesn't mess up the playlist and you don't keep having to use the offset option.

@timwillhack
Copy link

I was going to create a new ticket, but for this, I agree there should be a new flag sent in to skip on error. I manually just commented out the 'sys.exit' where its erroring but obviously it would be more robust if it used a flag.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants