Giter Club home page Giter Club logo

Comments (20)

mauricebasement avatar mauricebasement commented on May 18, 2024 1

You can help get rid of the issues by proper bug reporting, trying to
fix bugs in the code by yourself. I cannot provide any support for
windows as I see using it as the main issue. I suggest you start using
linux in general, it's next level in anyways.

Am 30.03.2016 22:34 schrieb David:

Is there any way of getting around this issue apart from using Linux?
I don't want to setup a Virtual Machine just for downloading
playlists.

You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub [1]

Links:

[1] #37 (comment)

from scdl.

e2del avatar e2del commented on May 18, 2024 1

sorry I do a error
title = title.encode('utf-8', 'ignore').decode(sys.stdout.encoding)
must be replaced by
title = title.encode('utf8').decode('utf8')

the playlist name works great.
the problem is 'sys.stdout.encoding' in cmd.exe return not utf8 (something bad)

from scdl.

e2del avatar e2del commented on May 18, 2024 1

the main problem is in write file function :

playlist_file.write(
            '#EXTINF:{0},{1}{3}{2}{3}'.format(
                duration, title, filename, os.linesep
            )

In windows the file writes in 'ascii' if not open as utf8

from scdl.

flyingrub avatar flyingrub commented on May 18, 2024

could you share the link please ?

from scdl.

zvpxz avatar zvpxz commented on May 18, 2024

Soundcloud link?
https://soundcloud.com/robert-dingus/janguru-mizu
or this one
https://soundcloud.com/robert-dingus/jungle-jig

Thanks for checking up!

from scdl.

flyingrub avatar flyingrub commented on May 18, 2024

are you on windows ?

fly@Minotoor ~/Musique/test $ scdl -l https://soundcloud.com/robert-dingus/janguru-mizu
Soundcloud Downloader
Downloading to /home/fly/Musique/test...

Found a track
Downloading Janguru- mizu
100% [......................................................] 2906069 / 2906069
Settings tags...

Janguru- mizu.mp3 Downloaded.

from scdl.

flyingrub avatar flyingrub commented on May 18, 2024

@mauricebasement, @zvpxz could you test with the latest commit : a0af030
if every char are working well on windows ?

from scdl.

zvpxz avatar zvpxz commented on May 18, 2024

I get this with the latest. Excuse me for being so promptly...

C:\scdl\scdl>python scdl.py -l https://soundcloud.com/robert-dingus/janguru-mizu

Traceback (most recent call last):
File "scdl.py", line 35, in
from scdl import version
File "C:\scdl\scdl\scdl.py", line 35, in
from scdl import version
ImportError: cannot import name 'version'

C:\scdl\scdl>

from scdl.

rhodessteve avatar rhodessteve commented on May 18, 2024

Similar sort of error here. Windows 8.1 US / Python 3.42
Track: https://soundcloud.com/user48736353001/7-f
Name: 7 ∂ƒ∆ [rough mix]

Traceback (most recent call last):
File "C:\Python34\Scripts\scdl-script.py", line 9, in
load_entry_point('scdl==v1.1.0', 'console_scripts', 'scdl')()
File "C:\Python34\lib\site-packages\scdl\scdl.py", line 113, in main
parse_url(arguments["-l"])
File "C:\Python34\lib\site-packages\scdl\scdl.py", line 188, in parse_url
download_all_user_tracks(item)
File "C:\Python34\lib\site-packages\scdl\scdl.py", line 233, in download_all_user_tracks
parse_url(this_url)
File "C:\Python34\lib\site-packages\scdl\scdl.py", line 177, in parse_url
download_track(item)
File "C:\Python34\lib\site-packages\scdl\scdl.py", line 358, in download_track
log("Downloading " + title, strverbosity=1)
File "C:\Python34\lib\site-packages\scdl\scdl.py", line 65, in log
print(colored(str, 'white'))
File "C:\Python34\lib\encodings\cp437.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_map)[0]
UnicodeEncodeError: 'charmap' codec can't encode character '\u2202' in position 19: character maps to

from scdl.

flyingrub avatar flyingrub commented on May 18, 2024

@zvpxz you need to install the package with pip, not launch the file itself.

@WindowsUser : 435da05
can you test the latest release on pypi ?

from scdl.

rhodessteve avatar rhodessteve commented on May 18, 2024

Ok, i tried the new build. the good news is, it works with the unicode. The bad news is that:
a) 7 ∂ƒ∆ [rough mix] became 7 Γêé╞ÆΓêå [rough mix] and 2 ∂ƒx 126b became 2 Γêé╞Æx 126b.
b) I get ←[31mError trying to set the tags...←[0m for all mp3s (there are no tags in the mp3s)
c) it sometimes crashes:
Traceback (most recent call last):
File "C:\Python34\Scripts\scdl-script.py", line 9, in
load_entry_point('scdl==v1.1.1', 'console_scripts', 'scdl')()
File "C:\Python34\lib\site-packages\scdl\scdl.py", line 113, in main
parse_url(arguments["-l"])
File "C:\Python34\lib\site-packages\scdl\scdl.py", line 188, in parse_url
download_all_user_tracks(item)
File "C:\Python34\lib\site-packages\scdl\scdl.py", line 236, in download_all_user_tracks
response = urllib.request.urlopen(url)
File "C:\Python34\lib\urllib\request.py", line 153, in urlopen
return opener.open(url, data, timeout)
File "C:\Python34\lib\urllib\request.py", line 461, in open
response = meth(req, response)
File "C:\Python34\lib\urllib\request.py", line 571, in http_response
'http', request, response, code, msg, hdrs)
File "C:\Python34\lib\urllib\request.py", line 499, in error
return self._call_chain(_args)
File "C:\Python34\lib\urllib\request.py", line 433, in _call_chain
result = func(_args)
File "C:\Python34\lib\urllib\request.py", line 579, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 500: Internal Server Error

I ran it a total of 3 times before it downloaded all 96 tracks for the user. First time it gave me 14, then 38. Many thanks for your work on this. At least it works eventually.

from scdl.

flyingrub avatar flyingrub commented on May 18, 2024

it works perfectly on unix ...
i m not using windows so it's hard to me to fix those errors.
If you could pastebin every different kind of error you had, it would help for this script to support windows

from scdl.

zvpxz avatar zvpxz commented on May 18, 2024

Pip works on Windows? Sorry for the late response. Like stated, the package works flawless off of Unix. I'll just stick to using it on my Mint partition..
All the hard work put in to this masterpiece is very much appreciated.

from scdl.

flyingrub avatar flyingrub commented on May 18, 2024

Don't know if pip work on windows, but you could have done a python3 setup.py install (at least this is the command for linux)

from scdl.

rhodessteve avatar rhodessteve commented on May 18, 2024

Can confirm that pip works on Windows. Thats how i installed it, and updated the script each time. Not sure if the token gets wiped in the config file but I saved it anyway. Remaining problems stated above (tagging, weird test on unicode, sometimes HTTP 500 crash).

from scdl.

flyingrub avatar flyingrub commented on May 18, 2024

#129

from scdl.

dweee avatar dweee commented on May 18, 2024

Is there any way of getting around this issue apart from using Linux? I don't want to setup a Virtual Machine just for downloading playlists.

from scdl.

e2del avatar e2del commented on May 18, 2024

Same error :
https://soundcloud.com/infine-music/sets/bachar-mar-khalif-ya-balad-out

a possible fix (tested on windows):

in function :
title = title.encode('utf8').decode('utf8')
to replace :
title = title.encode('utf-8', 'ignore').decode(sys.stdout.encoding)
Windows cmd is not utf-8.

and open the playlist file as utf-8 with codecs
with codecs.open(playlist_name + '.m3u', 'w+', 'utf-8') as playlist_file:

from scdl.

flyingrub avatar flyingrub commented on May 18, 2024

https://github.com/flyingrub/scdl/blob/master/scdl/scdl.py#L337
the title line is already like that.
i fixed the playlist name 1c7fc64.
Any error now ?

from scdl.

e2del avatar e2del commented on May 18, 2024

fix #145

from scdl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.