Metadata-Version: 2.1
Name: nonebot-plugin-ncm
Version: 1.3.4
Summary: 基于go-cqhttp与nonebot2的 网易云 无损音乐下载
Home-page: https://github.com/kitUIN/nonebot-plugin-ncm
License: Apache-2.0
Keywords: netease-cloud-music,netease,go-cqhttp,nonebot2
Author: kitUIN
Author-email: kulujun@gmail.com
Requires-Python: >=3.8,<4.0
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Requires-Dist: aiofile (>=3.7.4,<4.0.0)
Requires-Dist: nonebot-adapter-onebot (>=2.0.0b1,<3.0.0)
Requires-Dist: nonebot2 (>=2.0.0b1,<3.0.0)
Requires-Dist: pyncm (>=1.6.5.2,<2.0.0.0)
Requires-Dist: qrcode (>=7.3.1,<8.0.0)
Requires-Dist: tinydb (>=4.7.0,<5.0.0)
Project-URL: Repository, https://github.com/kitUIN/nonebot-plugin-ncm
Description-Content-Type: text/markdown



<p align="center">
  <img src="https://i.niupic.com/images/2022/01/17/9TxD.png" width="200" height="200" alt="nonebot"></a>
</p>

<div align="center">

# nonebot-plugin-ncm

✨ 基于go-cqhttp与nonebot2的 网易云 无损音乐 点歌/下载 ✨
</div>

<p align="center">
  <a href="https://github.com/kitUIN/nonebot-plugin-ncm/blob/master/LICENSE">
    <img src="https://img.shields.io/badge/license-Apache--2.0-green" alt="license">
  </a>
  <a href="https://github.com/nonebot/nonebot2/releases/tag/v2.0.0-beta.2">
    <img src="https://img.shields.io/static/v1?label=nonebot2&message=v2.0.0-beta.2&color=brightgreen" alt="nonebot">
  </a>
  <a href="https://github.com/kitUIN/PicImageSearch/releases">
    <img src="https://img.shields.io/github/v/release/kitUIN/nonebot-plugin-ncm" alt="release">
  </a>
</p>


## 开始
1.`pip install nonebot-plugin-ncm` 进行安装  
2.并在`bot.py`添加`nonebot.load_plugin('nonebot-plugin-ncm')`(如果是通过`nb-cli`安装可以跳过这步(beta1以上版本))  
如果希望使用`nonebot2 a16`及以下版本  
请使用`pip install nonebot-plugin-ncm==1.1.0`进行安装  
### 命令列表：(命令开始符号可自行调换)  
| 命令     | 备注     |
|--------|--------|
| /ncm   | 获取命令菜单 |
| /ncm t | 开启解析   |
| /ncm f | 关闭解析   |
| /点歌 歌名 | 点歌     |
## 使用说明
`.env`配置文件中需要添加拥有**VIP的网易云账号**  
  

本程序实质为调用web接口下载音乐上传  
默认下载最高音质的音乐 
 
**默认解析状态为关闭，请在每个群内使用`/ncm t`开启**
```
ncm_admin=["owner", "admin"] # 设置命令权限（非解析下载，仅解析功能开关设置）
ncm_phone=  # 手机登录
ncm_password=  # 密码
# (总开关代表是否可以在群内开启
# 总开关开启后在每个群内依旧是默认关闭的)
ncm_song=True  # 单曲解析总开关
ncm_list=True  # 歌单解析总开关
ncm_search=True  # 点歌总总开关
white_list=[]  # 白名单一键导入
```
网易云单曲分享到群内会自动解析下载  
**仅限群聊使用！！！(因为go-cqhttp还不支持好友发文件)**  

  
**默认不开启解析功能**  
**请使用`/ncm t` 启动解析**  
(或者使用配置中的`white_list`项批量导入需要开启的群号)

**回复bot消息即可自动下载上传音乐文件(回复消息不输入内容也行)**  

**低版本升级至1.0.0版本请删掉db文件夹**  
## 功能列表
- [x] 识别/下载 网易云单曲
    - 链接
    - 卡片
    - 卡片转发
- [x] 识别/下载 网易云歌单    
    - 链接
    - 卡片
    - 卡片转发
- [x] 点歌(网易云)
- [ ] QQ音乐无损下载
### 示例图
<details>
  <summary>点击查看详细内容</summary>

  **单曲**  
  [![WqbK7d.png](https://z3.ax1x.com/2021/07/30/WqbK7d.png)](https://imgtu.com/i/WqbK7d)
  **歌单**  
  [![WqbQAA.png](https://z3.ax1x.com/2021/07/30/WqbQAA.png)](https://imgtu.com/i/WqbQAA)  
  
</details>

# 鸣谢
- [pyncm](https://github.com/greats3an/pyncm)
- [nonebot2](https://github.com/nonebot/nonebot2)
