[BUG]无法获取歌单
- Lenguaje dominante
- Python
- Estrellas
- 4.4k
- Forks
- 593
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
- 出错的音乐源(Music source):网易
- 使用的命令(Command used):music-dl -p https://music.163.com/#/playlist?id=103563532 -v
**使用的环境(Environment)**
- 安装方式(Installation method):pip
- music-dl版本(music-dl version):3.0.1
- 操作系统版本(OS version):Arch Linux
- Python版本(Python version):3.8
**截图**
Parsing music playlist from NETEASE ...
[21:21:20] ERROR | music_dl.source: Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/music_dl/source.py", line 151, in playlist
ret_songs_list = addon.playlist(url)
File "/usr/lib/python3.8/site-packages/music_dl/addons/netease.py", line 193, in netease_playlist
size = item.get("h", {}).get("size", 0)
AttributeError: 'NoneType' object has no attribute 'get'
+------+------+------+------+------+------+------+
| 序号 | 歌名 | 歌手 | 大小 | 时长 | 专辑 | 来源 |
+------+------+------+------+------+------+------+
+------+------+------+------+------+------+------+
请输入下载序号,支持形如 0 3-5 8 的格式,输入 N 跳过下载
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Línea de trabajo
The error occurs in music_dl/addons/netease.py at line 193 in netease_playlist function where 'item' is None. Start by examining the data structure returned from the NetEase API for playlist id 103563532. Add logging or debug to see what 'item' contains. The fix likely involves handling the None case or correcting the data parsing. Run the command with the provided URL to reproduce the issue.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- python
- Área
- cli
- Tipo de issue
- Error
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Estancado
- Claridad
- Bien especificado
- Aptitud para principiantes
- 55/100