smallmuou / xmlyfetcher

喜马拉雅音频下载工具
443 stars 84 forks source link

某些系统环境下发生trackId not exist错误 #16

Closed void285 closed 1 year ago

void285 commented 4 years ago

在一个vagrant里的Ubuntu系统下载单音轨或者专辑都碰到了以下错误:

$ ./xmlyfetcher https://www.ximalaya.com/ertong/12891461/211393643
[INFO] Fetch track 1/1 ...
[ERROR] The trackId 211393643 does not exist.

换用vps后一切正常。

PS: 在msys2环境下有以下错误,可能跟调用的python版本有关系,我从shell直接输入python打开的是python2.7.12,但这个脚本调用的似乎却是另一位置的python3,以下错误我通过删除reload(sys) sys.setdefaultencoding("utf8")两行解决了:

$ ./xmlyfetcher https://www.ximalaya.com/ertong/12891461/211393643
[INFO] Fetch track 1/1 ...
Traceback (most recent call last):
  File "<string>", line 2, in <module>
NameError: name 'reload' is not defined
Traceback (most recent call last):
  File "<string>", line 2, in <module>
NameError: name 'reload' is not defined
Traceback (most recent call last):
  File "<string>", line 2, in <module>
NameError: name 'reload' is not defined
[ERROR] Failed to fetch the track, may be a paid resource.