A tool for synchronizing plex song library and NetEase Cloud Playlist
Poll once in 30 minutes (can be changed through environment variables) and compare the top N songs of NetEase Cloud playlist you want to compare (the default is 10 songs, which can be modified through environment variables) with the top N songs of Plex's song list of the same name.
If NetEase Cloud has songs that are not on the Plex playlist, then download the highest sound quality version of the song (if the NetEase Cloud account you log in is not VIP, then it is 320kps, if it is VIP, then it is lossless) to Plex's music folder (need to add to the environment variable)
Then refresh Plex's music library and add the newly imported songs to the top of the song list of the same name in order.
Need to have an already-started Plex Media Server that can be accessed
There is a song list with the same name as NetEase Cloud in the music library of Plex Media Server
Need at least one song on this Plex playlist! ! ! ! ! (Otherwise, an error will be reported)
Need permission to access the Plex Music Resources folder
Requires Node.js v16 or higher (Docker version does not require)
$ git clone https://github.com/awillheartwu/yunplex.git
$ cd yunplex
$ npm install # 或者使用 yarn cnpm pnpm 随你的大小便$ node sync.mjs # 可以添加第二个参数,代表要同步的网易云歌单的id,不添加的话会询问Inquiry will be asked on the first call
After entering, the playlist list of plex and NetEase Cloud will be printed. Select the serial number of the playlist to be synchronized, and press Enter to start synchronizing.
After that, the service will keep polling and will be automatically synchronized every 30 minutes (if it is the second time, you can directly use node sync.mjs xxx & to make it run in the background all the time)
$ # docker build -t yunplex . 最新版本已经上传到docker hub,可以直接拉取
$ docker pull neverlosewu/yunplex:latest
$ docker run -d --name yunplex yunplex
-e SCAN_INTERVAL=30 # 轮询间隔,单位分钟
-e SONG_LIMIT=10 # 对比歌单的歌曲数量
-e DOWNLOAD_DIR=/mnt/nas # 下载歌曲到docker内部的目录
-e PHONE=your_phone # 网易云账号
-e PASSWORD=your_password # 网易云密码
-e PLAYLIST=your_playlist # 要同步的网易云歌单id
-e PLEX_SERVER=your_plex_server # Plex服务器地址
-e PLEX_PORT=your_plex_port # Plex服务器端口
-e PLEX_TOKEN=your_plex_token # Plex服务器token
-e PLEX_SECTION=your_plex_section # 你的Plex音乐库的名称
-v /mnt/nas:/mnt/nas # 冒号前面是宿主机的目录(也就是你plex音乐库的目录),冒号后面是docker内部的目录If you want to synchronize the default song list of "My Like Music" by NetEase Cloud, then you need to create a new song list called " XX Like Music" in PLEX. XX here is your NetEase Cloud username. eg For example, your NetEase Cloud username is: ABC, then you need to create a new song list called "ABC Like Music" in PLEX
Thanks to the authors of the following projects, the implementation of this project cannot be separated from their contributions and inspiration.
If you have any questions or suggestions, please contact us or PR
Release under the GPL license. See LICENSE for more information.
My email gmail - [email protected]
More My projects: https://github.com/awillheartwu