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

下载了却没song——dir? #60

Open
HenacanPodwell opened this issue Nov 19, 2018 · 21 comments
Open

下载了却没song——dir? #60

HenacanPodwell opened this issue Nov 19, 2018 · 21 comments

Comments

@HenacanPodwell
Copy link

image

@atlas-comstock
Copy link
Owner

@HenacanPodwell 歌单麻烦发一下给我看看。

@HenacanPodwell
Copy link
Author

@atlas-comstock
Copy link
Owner

@HenacanPodwell 不是用歌曲,是用歌单。就是一首首歌曲收藏起来的歌单。

@atlas-comstock
Copy link
Owner

@HenacanPodwell
Copy link
Author

image
还是没有额,我用了你的歌单

@liuce-
Copy link

liuce- commented Nov 21, 2018

我也遇到同样的问题。
https://music.163.com/#/my/m/music/playlist?id=365413384
提示下载成功,但是没有那个文件夹。
image

@atlas-comstock
Copy link
Owner

@liuce- 你的歌单应该是: https://music.163.com/#/playlist?id=365413384
而不是带上 my 的那个路径——那个是你自己的歌单,而我上面的是对外而言的歌单。

@atlas-comstock
Copy link
Owner

@HenacanPodwell 都报错了,链接失败。你是在外国吗?

@HenacanPodwell
Copy link
Author

对额,外国的。我在chrome上有用个extension,然后就能够用网易云了

@atlas-comstock
Copy link
Owner

@HenacanPodwell 但是你用我的这个 python 脚本,是不走你 chrome 上的代理的。你可以找找我这个项目过往的 issue,有人通过改系统 dns 可以成功。或者你fan 回来中国

@HenacanPodwell
Copy link
Author

怎么改系统dns?还是fan回来中国?我试了试改了host,可是那个host好像不能用了。

@liuce-
Copy link

liuce- commented Nov 21, 2018

@liuce- 你的歌单应该是: https://music.163.com/#/playlist?id=365413384
而不是带上 my 的那个路径——那个是你自己的歌单,而我上面的是对外而言的歌单。

感谢回复,我试了下你给的这个链接,可以解析歌曲列表。但是依然没有那个文件夹
image
而且我在国外没有使用VPN也能提示下载成功,就是没有文件夹

@atlas-comstock
Copy link
Owner

@liuce- @HenacanPodwell 都在国外的话,估计都要 fan 回国内才可以了-_-

@liuce-
Copy link

liuce- commented Nov 21, 2018

原来是这样,感谢回复!

@HenacanPodwell
Copy link
Author

@yonghaowu 哦哦,fan是什么意思啊? 谢谢w

@atlas-comstock
Copy link
Owner

@HenacanPodwell 翻。用代理回国内的意思

@KyreFu
Copy link

KyreFu commented Nov 26, 2018

如果不用代理是和以上相同的情况。我用了代理,但是出现了错误。
‘Remote end closed connection without response’


2018-11-25 21:29:46 main.py:43 [INFO] fetching Netease song list from https://music.163.com/playlist?id=12433802

2018-11-25 21:29:48 main.py:72 [INFO] Incomplete
2018-11-25 21:29:48 main.py:81 [INFO] find songid: 12309123
Traceback (most recent call last):
  File "/anaconda3/lib/python3.7/site-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/anaconda3/lib/python3.7/site-packages/urllib3/connectionpool.py", line 384, in _make_request
    six.raise_from(e, None)
  File "<string>", line 2, in raise_from
  File "/anaconda3/lib/python3.7/site-packages/urllib3/connectionpool.py", line 380, in _make_request
    httplib_response = conn.getresponse()
  File "/anaconda3/lib/python3.7/http/client.py", line 1321, in getresponse
    response.begin()
  File "/anaconda3/lib/python3.7/http/client.py", line 296, in begin
    version, status, reason = self._read_status()
  File "/anaconda3/lib/python3.7/http/client.py", line 265, in _read_status
    raise RemoteDisconnected("Remote end closed connection without"
http.client.RemoteDisconnected: Remote end closed connection without response

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/anaconda3/lib/python3.7/site-packages/requests/adapters.py", line 445, in send
    timeout=timeout
  File "/anaconda3/lib/python3.7/site-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/anaconda3/lib/python3.7/site-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='127.0.0.1', port=9090): Max retries exceeded with url: http://music.taihe.com/data/music/fmlink?songIds=12309123&type=flac (Caused by ProxyError('Cannot connect to proxy.', RemoteDisconnected('Remote end closed connection without response')))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "main.py", line 163, in <module>
    main()
  File "main.py", line 138, in main
    d = get_song_info(songid)
  File "main.py", line 87, in get_song_info
    r = requests.get(BAIDU_MUSIC_API, params=payload)
  File "/anaconda3/lib/python3.7/site-packages/requests/api.py", line 72, in get
    return request('get', url, params=params, **kwargs)
  File "/anaconda3/lib/python3.7/site-packages/requests/api.py", line 58, in request
    return session.request(method=method, url=url, **kwargs)
  File "/anaconda3/lib/python3.7/site-packages/requests/sessions.py", line 512, in request
    resp = self.send(prep, **send_kwargs)
  File "/anaconda3/lib/python3.7/site-packages/requests/sessions.py", line 644, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/anaconda3/lib/python3.7/site-packages/requests/sessions.py", line 644, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/anaconda3/lib/python3.7/site-packages/requests/sessions.py", line 222, in resolve_redirects
    **adapter_kwargs
  File "/anaconda3/lib/python3.7/site-packages/requests/sessions.py", line 622, in send
    r = adapter.send(request, **kwargs)
  File "/anaconda3/lib/python3.7/site-packages/requests/adapters.py", line 507, in send
    raise ProxyError(e, request=request)
requests.exceptions.ProxyError: HTTPConnectionPool(host='127.0.0.1', port=9090): Max retries exceeded with url: http://music.taihe.com/data/music/fmlink?songIds=12309123&type=flac (Caused by ProxyError('Cannot connect to proxy.', RemoteDisconnected('Remote end closed connection without response')))

@atlas-comstock
Copy link
Owner

@KyreFu 你用的是国内的代理吗?

@KyreFu
Copy link

KyreFu commented Nov 27, 2018

我用的是transocks(穿梭),是为了看国内电视剧的用的。

@Iridescentangle
Copy link

好奇怪啊,提示下载成功却没有song_dir目录....

@atlas-comstock
Copy link
Owner

atlas-comstock commented Dec 20, 2018

@Iridescentangle 麻烦 参考
#61

用现在新的脚本试试看

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

5 participants