Giter VIP home page Giter VIP logo

netease-music-downloader's Issues

添加歌单时出错

win10 系统,从github下载了代码后,安装了所要的模块。运行时出现错误

λ python main.py -a 9646415
Traceback (most recent call last):
  File "main.py", line 392, in <module>
    addPlaylist(args.addPlaylist[0])
  File "main.py", line 24, in addPlaylist
    playlistResq = getPlaylist(playlistNid)
  File "D:\workspace\netease-music-downloader\api.py", line 16, in getPlaylist
    response = requests.request("GET", url, headers=headers).json()
  File "D:\anaconda3\lib\site-packages\requests\models.py", line 898, in json
    return complexjson.loads(self.text, **kwargs)
  File "D:\anaconda3\lib\json\__init__.py", line 348, in loads
    return _default_decoder.decode(s)
  File "D:\anaconda3\lib\json\decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "D:\anaconda3\lib\json\decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

看api.py 里那个接口地址好像返回不了东西。

-s指令部分似乎少了一句代码

showAllSongs() 函数没有给songs赋值就直接用了 导致-s指令似乎不能正常使用
我下载的是源码 不知道是不是上传时误删了

更新列表的时候报错

$ main.py -a playlist1 playlist2
...
$ main.py -rn playlist2
...
$ main.py -u # 删除某个歌单后执行更新
---------- Updating all playlists ----------
[*] Playlist name: 下载
 |  Removing deleted songs...
Traceback (most recent call last):
  File "main.py", line 394, in <module>
    updateAllPlaylist()
  File "main.py", line 325, in updateAllPlaylist
    removePlaylistInSongDB(delDataList)
TypeError: removePlaylistInSongDB() missing 1 required positional argument: 'dataList'

貌似少了个参数 playlist.name?

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.