hubertroy / musicbox Goto Github PK
View Code? Open in Web Editor NEW:blush: :musical_note: MusicPlayer 一站式收听多平台音乐(网易云, 虾米, QQ)的跨平台音乐播放器,尽情享受吧~:sparkles:
License: MIT License
:blush: :musical_note: MusicPlayer 一站式收听多平台音乐(网易云, 虾米, QQ)的跨平台音乐播放器,尽情享受吧~:sparkles:
License: MIT License
请简要描述下该功能
请描述下要注意的细节
请描述下最终实现效果
请提供一份想法说明~
想法成因,如 在听歌时发现比较迷茫,于是想要个推荐系统/看手气听随机歌曲的功能。
其他补充
截图,或其他相关资料。
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
defaultServiceProvider::requestService(): no service found for - "org.qt-project.qt.mediaplayer"
读取或保存cookies出错 ['cookies/playlist/musicList.cks']
读取或保存cookies出错 ['cookies/mediaPlaylist/musics.cks', 'cookies/mediaPlaylist/mediaList.cks']
读取或保存cookies出错 ['cookies/headers/loginInfor.cks']
读取或保存cookies出错 ['cookies/downloadInfo/downloadFolder.cks']
尝试重新获取音乐地址出错,请清空或删除无效的音乐信息后重试。
尝试重新获取音乐地址出错,请清空或删除无效的音乐信息后重试。
ubuntu18.04
win10 64位,已安装python3.6
除了英文和数字全是乱码
直接下载安装后没用
控制台报错如下:
DirectShowPlayerService::doSetUrlSource: Unresolved error code 0x800c0008 (??????????????)
另外,我目前在做的音乐推荐是用QQ音乐的最新的两百万歌单(爬虫爬下来的)与其中所包含的四百万左右的歌曲进行分析推荐,然后能获取到QQ音乐的原始主键(songid和songmid),能告诉我下怎么播放音乐吗?
安装完 执行musicplayer的时候报错
貌似网易云修改了歌单API,旧的歌单API只返回其中得一首曲子了,目前正在获取新的API。
想请教一下这个程序有后台数据库吗,如果有的话设计是怎样的呀~
这三个库安装时提示找不到。
eyed3
pycryptodome
quamash
导致程序无法运行。
是否能够适配 mac os.
谢谢作者~
sudo musicplayer
Traceback (most recent call last):
File "/usr/local/bin/musicplayer", line 11, in
load_entry_point('Music-Player==1.0.5.1', 'console_scripts', 'musicplayer')()
File "/home/huanhexiao/.local/lib/python3.5/site-packages/pkg_resources/init.py", line 484, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/home/huanhexiao/.local/lib/python3.5/site-packages/pkg_resources/init.py", line 2725, in load_entry_point
return ep.load()
File "/home/huanhexiao/.local/lib/python3.5/site-packages/pkg_resources/init.py", line 2343, in load
return self.resolve()
File "/home/huanhexiao/.local/lib/python3.5/site-packages/pkg_resources/init.py", line 2349, in resolve
module = import(self.module_name, fromlist=['name'], level=0)
File "/usr/local/lib/python3.5/dist-packages/Music_Player-1.0.5.1-py3.5.egg/MusicPlayer/music.py", line 33, in
from quamash import QEventLoop
File "/usr/local/lib/python3.5/dist-packages/Quamash-0.6.1-py3.5.egg/quamash/init.py", line 44, in
QtCore = importlib.import_module(QtModuleName + '.QtCore', package=QtModuleName)
File "/usr/lib/python3.5/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ImportError: No module named 'PyQt5.sip'
如题
如何在不需要 sudo 权限的情况下运行 musicplayer ?
感谢作者。
在使用中下载的品质比较低,能不能开发绕开限制高品质下载的版本呢?
ubuntu搜索不能输入中文/如何卸载
不要把 pycache 文件夹加进来了,文件夹规范一点 Apis --> apis
Traceback (most recent call last):
File "/usr/local/bin/musicplayer", line 11, in
load_entry_point('Music-Player==1.0.5.1', 'console_scripts', 'musicplayer')()
File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 480, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 2693, in load_entry_point
return ep.load()
File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 2324, in load
return self.resolve()
File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 2330, in resolve
module = import(self.module_name, fromlist=['name'], level=0)
File "/usr/local/lib/python3.6/dist-packages/Music_Player-1.0.5.1-py3.6.egg/MusicPlayer/music.py", line 33, in
from quamash import QEventLoop
File "/usr/local/lib/python3.6/dist-packages/Quamash-0.6.1-py3.6.egg/quamash/init.py", line 44, in
QtCore = importlib.import_module(QtModuleName + '.QtCore', package=QtModuleName)
File "/usr/lib/python3.6/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ModuleNotFoundError: No module named 'PyQt5.sip'
求解
能否实现客户端版本的在线更新功能,即服务端有更新,客户端能自动更新,同时需要考虑客户端安装要简便,即通过pyinstaller打包或者一键安装所需要的pyqt等环境,同时还要考虑更新文件不能太大,发现简单的功能pyinstaller打包一个exe就几十兆了,如果一次很多用户同时自动在线更新几十兆的文件,就有点大了。
请简要描述下这个Bug
安装提示没有eyed3==0.8.0
请描述下重现步骤
如:
如果不发生Bug本该如何
相关截图,日志
如果有相关截图,请提供~。
请务必把目录下的日志提供一份~。
系统信息
其他
ref: #8 (comment)
以上问题的复现。配置好 venv 后运行程序就会在终端输出错误信息,log 里没有,看上去应该是 QT的报错。
# pip install virtualenv
virtualenv venv # 默认用了系统级 py3.6-32 的解释器
# pip install -r requirements.txt
pip install -r .\requirements.txt
# source venv/bin/activate # *nix 系
.\venv\Scripts\activate
python .\MusicPlayer\music.py
通过 Pychram 运行也一样
DirectWrite: CreateFontFaceFromHDC() failed (???????????? (????????????) ??????????) for QFontDef(Family="System", pointsize=16, pixelsize=20, styleHint=5, weight=9, stretch=100, hintingPreference=0) LOGFONT("System", lfWidth=0, lfHeight=-20) dpi=168
不该有报错
关闭程序后
(venv) PS C:\Users\woclass\Desktop\GitHub\MusicBox> python .\MusicPlayer\music.py
DirectWrite: CreateFontFaceFromHDC() failed (???????????? (????????????) ??????????) for QFontDef(Family="System", pointsize=16, pixelsize=20, styleHint=5, weight=9, stretch=100, hintingPreference=0) LOGFONT("System", lfWidth=0, lfHeight=-20) dpi=168
Exception ignored in: <bound method DbManager.__del__ of <userInfoManager.UserDbManager object at 0x04A7E490>>
Traceback (most recent call last):
File "C:\Users\woclass\Desktop\GitHub\MusicBox\MusicPlayer\dbManager\dbManager.py", line 20, in __del__
self.db.commit()
sqlite3.ProgrammingError: Cannot operate on a closed database.
(venv) PS C:\Users\woclass\Desktop\GitHub\MusicBox>
INFO music 70 当前图片缓存目录: C:\Users\woclass\Desktop\GitHub\MusicBox\MusicPlayer\cache
INFO configDownloadFrameFeatures 82 下载目标变更C:\Users\woclass\Desktop\GitHub\MusicBox\MusicPlayer\downloads
INFO configDownloadFrameFeatures 82 下载目标变更C:\Users\woclass\Desktop\GitHub\MusicBox\MusicPlayer\downloads
INFO netEaseApi 56 进行网易云Url请求, args: ('http://music.163.com/api/playlist/list?cat=%E5%85%A8%E9%83%A8%E6%AD%8C%E5%8D%95&type=all&order=all&offset=0&total=true&limit=30&index=1',), kwargs: {'method': 'GET', 'cookies': {'appver': '2.1.2.184499', 'os': 'pc', 'channel': 'netease'}}
ERROR __init__ 589 Task exception was never retrieved
future: <Task finished coro=<setUserData() done, defined at C:\Users\woclass\Desktop\GitHub\MusicBox\MusicPlayer\features\configMainFeatures.py:239> exception=KeyError('profile',)>
Traceback (most recent call last):
File "C:\Users\woclass\Desktop\GitHub\MusicBox\MusicPlayer\features\configMainFeatures.py", line 241, in setUserData
profile = self.loginInfor['profile']
KeyError: 'profile'
INFO xiamiApi 55 进行xiami Url请求, args: ('http://api.xiami.com/web?v=2.0&app_key=1&_ksTS=1459927525542_91&page=1&limit=30&callback=jsonp92&r=collect/recommend',), kwargs: {'method': 'GET'}
INFO qqApi 43 进行QQ Url请求, args: ('https://c.y.qq.com/splcloud/fcgi-bin/fcg_get_diss_by_tag.fcg?rnd=0.5136307078685405&g_tk=5381&jsonpCallback=getPlaylist&loginUin=0&hostUin=0&format=jsonp&inCharset=utf8&outCharset=utf-8¬ice=0&platform=yqq&needNewCode=0&categoryId=10000000&sortId=5&sin=30&ein=29',), kwargs: {'method': 'GET', 'headers': {'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8', 'Connection': 'keep-alive', 'Pragma': 'no-cache', 'Cache-Control': 'no-cache', 'Accept-Encoding': 'gzip,deflate,sdch', 'Accept-Language': 'zh-CN,zh;q=0.8', 'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36', 'Host': 'c.y.qq.com', 'Referer': 'https://y.qq.com/portal/playlist.html'}}
ERROR music 539 got some error
Traceback (most recent call last):
File ".\MusicPlayer\music.py", line 537, in start
SystemExit: 0
pip list
(venv) C:\Users\woclass\Desktop\GitHub\MusicBox>pip list
Package Version
------------ ----------
certifi 2018.11.29
chardet 3.0.4
eyeD3 0.8
idna 2.8
pip 10.0.1
pycryptodome 3.7.2
PyQt5 5.11.3
PyQt5-sip 4.19.13
Quamash 0.6.1
requests 2.21.0
setuptools 39.1.0
six 1.12.0
urllib3 1.24.1
You are using pip version 10.0.1, however version 18.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
python
(venv) C:\Users\woclass\Desktop\GitHub\MusicBox>python
Python 3.6.7 (v3.6.7:6ec5cf24b7, Oct 20 2018, 12:45:02) [MSC v.1900 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
google 到的相关问题:
(py3v) b/MusicPlayer/MusicPlayer ╍ python3 music.py
(python3:26993): Gtk-WARNING **: Theme parsing error: gtk.css:3218:17: The 'icon-shadow' property has been renamed to '-gtk-icon-shadow'
(python3:26993): Gtk-WARNING **: Theme parsing error: gtk.css:6378:23: The '-gtk-image-effect' property has been renamed to '-gtk-icon-effect'
(python3:26993): Gtk-WARNING **: Theme parsing error: gtk.css:6388:15: The 'icon-shadow' property has been renamed to '-gtk-icon-shadow'
(python3:26993): Gtk-WARNING **: Theme parsing error: gtk.css:6438:13: The 'icon-shadow' property has been renamed to '-gtk-icon-shadow'
(python3:26993): Gtk-WARNING **: Theme parsing error: gtk.css:6551:16: The 'outline-radius' property has been renamed to '-gtk-outline-radius'
(python3:26993): Gtk-WARNING **: Theme parsing error: gtk.css:6574:52: The :prelight pseudo-class is deprecated. Use :hover instead.
defaultServiceProvider::requestService(): no service found for - "org.qt-project.qt.mediaplayer"
读取或保存cookies出错 ['cookies/playlist/musicList.cks']
读取或保存cookies出错 ['cookies/mediaPlaylist/musics.cks', 'cookies/mediaPlaylist/mediaList.cks']
读取或保存cookies出错 ['cookies/headers/loginInfor.cks']
Traceback (most recent call last):
File "/home/mxo/bin/MusicPlayer/MusicPlayer/widgets/player.py", line 925, in dealError
musicInfo = self.playList.mediaList.pop(self.currentMedia().canonicalUrl().toString())
KeyError: ''
fish: 'python3 music.py' terminated by signal SIGABRT (Abort)
这个不是依赖没装吧? 另外Linux下不能全屏?
请简要描述下该功能
不知道是我使用方法有误还是确实没有该能力, 每次重新打开工具想要听本地音乐时总是需要重新选择本地音乐路径.
建议选择本地音乐路径后, 以后打开本地音乐时无需重新选择
请描述下要注意的细节
每次选择本地音乐路径时可以写入或更新某配置文件, 再次打开工具时可以读取该配置文件中保存的路径, 若配置文件中的路径错误则需重新选择路径
请简要描述下该功能
界面有待进一步优化
请描述下要注意的细节
请描述下最终实现效果
请提供一份想法说明~
想法成因,如 在听歌时发现比较迷茫,于是想要个推荐系统/看手气听随机歌曲的功能。
其他补充
截图,或其他相关资料。
请简要描述下这个Bug
logger.error("尝试重新获取音乐地址出错,音乐信息: {0}".format(musicInfo), exc_info=True)
UnboundLocalError: local variable 'musicInfo' referenced before assignment
请描述下重现步骤
首次启动,搜索无反应,打开其中一个歌单播放全部,然后闪退。
系统信息
Windows 10
Python3.6.4 :: Anaconda custom (64-bit)
校园网
请简要描述下这个Bug
请描述下重现步骤
如:
如果不发生Bug本该如何
相关截图,日志
如果有相关截图,请提供~。
请务必把目录下的日志提供一份~。
系统信息
其他
(还有readme里的安装步骤没cd)
难以言表,
在python3.7运行时,
Traceback (most recent call last):
File "/usr/local/bin/musicplayer", line 7, in
from MusicPlayer.music import start
File "/usr/local/lib/python3.7/site-packages/MusicPlayer/music.py", line 33, in
from quamash import QEventLoop
File "/usr/local/lib/python3.7/site-packages/quamash/init.py", line 275
future = asyncio.async(future, loop=self)
^
SyntaxError: invalid syntax
看起来应该是python3.7的async接口改了所以不兼容的。
如题:
通过pip安装时提示
Collecting Music-Player
Downloading https://files.pythonhosted.org/packages/b1/76/7f60397a22625fccf6f80f2da365edac6585ec3d14c14c7edcedc45717a6/Music-Player-1.0.1.tar.gz (171kB)
100% |████████████████████████████████| 174kB 760kB/s
Collecting PyQt5 (from Music-Player)
Could not find a version that satisfies the requirement PyQt5 (from Music-Player) (from versions: )
No matching distribution found for PyQt5 (from Music-Player)
请简要描述下该功能
请描述下要注意的细节
请描述下最终实现效果
请提供一份想法说明~
想法成因,如 在听歌时发现比较迷茫,于是想要个推荐系统/看手气听随机歌曲的功能。
其他补充
截图,或其他相关资料。
ubuntu16.04为何每次运行必须要要sudo
按照你的要求,已经安装
Python
PyQt
requests
eyed3
crypto/cryptodome
quamash
运行代码,提示
failed to find libmagic. Check your installation
用的Python3.6,是因为不支持3.6吗?
请简要描述下该功能
请描述下要注意的细节
请描述下最终实现效果
请提供一份想法说明~
想法成因,如 在听歌时发现比较迷茫,于是想要个推荐系统/看手气听随机歌曲的功能。
其他补充
截图,或其他相关资料。
作者快快更新啊,期待着新功能诶 :D
windows安装后GUI无法在线播放,但是可以下载。请问这是什么原因
给个你star支持下,期待能代替客户端的那天.
请简要描述下该功能
将音乐分成跑步、睡觉、英语等类型
请描述下要注意的细节
请描述下最终实现效果
请提供一份想法说明~
想法成因,如 在听歌时发现比较迷茫,于是想要个推荐系统/看手气听随机歌曲的功能。
其他补充
截图,或其他相关资料。
折腾了半小时, 新添加的日志有问题, logger 模块找不到
请简要描述下该功能
请描述下要注意的细节
请描述下最终实现效果
请提供一份想法说明~
想法成因,如 在听歌时发现比较迷茫,于是想要个推荐系统/看手气听随机歌曲的功能。
其他补充
截图,或其他相关资料。
比如有一个别的音乐网站 那个网站提供了api 我想往里面添加搜索那个网站的功能
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.