1 Star 0 Fork 121

赵浩翔 / NetEaseMusic

forked from cosven / FeelUOwn 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

NeteaseMusic for linux - third party

项目主页: http://cosven.com/blog/5518934e126ac921c1f77a72

欢迎有兴趣的小伙伴合作开发

目前依賴

Python 3, PyQt5

程序架构

新的版本代码会在src文件夹中,不影响之前的代码

我在这里尝试制定一个大致的程序架构,这样可能有利于项目的发展,方便之后有兴趣的小伙伴一起合作开发。也算是一个标准吧。对于不合理的地方,当然可以及时使用适当的方法修正。

大的目标:实现一个可扩展、可维护的、可以接入多个音乐网站的音乐播放器(比如豆瓣fm,虾米)。短期目标:改进 网上已有的音乐api,接入一个平台,保证可扩展,可维护。

想加入的一些特性

  1. 可以支持大部分音乐平台的资源。
  2. 支持歌曲缓存

界面显示模块

  1. 界面交互控制模块。前端的交互控制,给用户良好的交互体验。
  2. 主题切换模块。主要依靠切换qss文件来切换主题

控制模块

  1. 播放器模块
  2. 网络访问模块(主要负责和第三方的音乐网站链接)(可能将来会合并到qt的网络模块中去)
  3. 插件模块。提供一些接口用来编写插件,比如说连接第三方音乐网站的api。还有一些歌词显示功能,或者相似歌曲推荐这样的高级功能,都可以作为plugin合并入项目。
  4. Qt网络访问模块,提供一些具体的图片及其音乐下载。(异步,将为用户提供更好的体验)

数据模型

  1. 数据标准模型。从第三方来的数据都需要转换为一个标准的数据模型。
  2. 数据提取模型。第三方的数据格式或者数据内容各不一样,所以需要对它们进行转换。
  3. 数据缓存模型

其他模块

  1. 调试输出模块
  2. 基本路径等配置

开发注意事项

  1. 配置PYTHONPATH为src目录
  2. 确认安装了python3,pyqt5,pyqt5的multimedia库
  3. 尽量遵守google的python代码风格指南
  4. TRY TO BE MORE PYTHONIC
The Zen of Python, by Tim Peters

Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren't special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
Unless explicitly silenced.
In the face of ambiguity, refuse the temptation to guess.
There should be one-- and preferably only one --obvious way to do it.
Although that way may not be obvious at first unless you're Dutch.
Now is better than never.
Although never is often better than *right* now.
If the implementation is hard to explain, it's a bad idea.
If the implementation is easy to explain, it may be a good idea.
Namespaces are one honking great idea -- let's do more of those!

此作品仅供学习参考,如有任何侵权,请通知作者。 email: yinshaowen241[at]gmail[dot]com

The MIT License (MIT) Copyright (c) 2015 zjuysw Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

基于网上已有的网易云音乐API,尝试 做一个简单的Linux网易云音乐客户端 展开 收起
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/Heartunchange/NetEaseMusic.git
git@gitee.com:Heartunchange/NetEaseMusic.git
Heartunchange
NetEaseMusic
NetEaseMusic
master

搜索帮助