muyangye / Netease_To_Spotify

网易云音乐歌单迁移至Spotify & OAuth 2.0 requests base class
MIT License
13 stars 2 forks source link

博主求助! #2

Closed khazic closed 12 months ago

khazic commented 12 months ago

能详细说一下config里面的那几个参数是什么吗?除了最后一个网易云的id 其他几个我都拿不准

khazic commented 12 months ago

(khazic) khazics-MacBook-Pro:Netease_To_Spotify-main liuyibo$ python cli.py ---------- Starting to Migrate ---------- Response is not valid JSON : Extra data: line 1 column 26 (char 25) Response : <Response [200]> Traceback (most recent call last): File "/Users/liuyibo/Desktop/Netease_To_Spotify-main/cli.py", line 8, in main() File "/Users/liuyibo/Desktop/Netease_To_Spotify-main/cli.py", line 5, in main app.migrate() File "/Users/liuyibo/Desktop/Netease_To_Spotify-main/netease_to_spotify.py", line 39, in migrate for name, artist in self.get_netease_playlist_tracks_name_and_artist(): File "/Users/liuyibo/Desktop/Netease_To_Spotify-main/netease_to_spotify.py", line 118, in get_netease_playlist_tracks_name_and_artist songs = apis.track.GetTrackDetail(track_ids)["songs"] TypeError: 'Response' object is not subscriptable (khazic) khazics-MacBook-Pro:Netease_To_Spotify-main liuyibo$

khazic commented 12 months ago

redirect_uri : "http://localhost:3000" spotify_playlist_name : "easymoneysniper1" cover_image_path : "/Users/liuyibo/Desktop/Netease_To_Spotify-main/netease.png" netease_playlist_id : "7633481963"

client那个 我应该是填对了的 但是还是报的错误

muyangye commented 12 months ago

哈喽,我刚刚试了下,是pyncm API的问题,"7633481963"这个歌单>1000首歌太长了所以pyncm不支持,我刚刚换了几个更短的歌单是没问题的。这个因为是第三方库的问题暂时没法解决,我去把这个限制补在readme里,多谢提这个issue哈哈

khazic commented 12 months ago

哦哦哦那我删点歌曲再试试效果哈 感谢指导 祝你生活愉快

muyangye commented 12 months ago

其实我可以改改我的逻辑把>1000首歌拆成几份1000首之内的,不过我在美西两点了要写完测试完可能不太够时间,你如果马上就要用的话没什么办法😢但是明天我去把这个写了

khazic commented 12 months ago

好的 感谢博主 明天我再来测试您的代码

muyangye commented 12 months ago

改好了哦,记得重新装一下requirements,多了个进度条歌单太长的话方便看进度 :-)

khazic commented 12 months ago

哇 好的哥 你这效率真快

khazic commented 12 months ago

我已经成功导入歌单 感谢 可以关闭该issue了