{"id":19916272,"url":"https://github.com/clansty/netease-music-sync","last_synced_at":"2025-05-03T05:32:53.449Z","repository":{"id":104123503,"uuid":"487729414","full_name":"clansty/netease-music-sync","owner":"clansty","description":"自动将网易云的歌单同步到本地","archived":false,"fork":false,"pushed_at":"2023-10-25T10:00:15.000Z","size":37984,"stargazers_count":14,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-05-02T05:15:09.640Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Nix","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/clansty.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2022-05-02T05:41:03.000Z","updated_at":"2023-12-28T17:49:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"8fabcfd0-cdbc-4f92-8740-46cde55e63e2","html_url":"https://github.com/clansty/netease-music-sync","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":"clansty/typescript-nodeapp-starter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clansty%2Fnetease-music-sync","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clansty%2Fnetease-music-sync/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clansty%2Fnetease-music-sync/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clansty%2Fnetease-music-sync/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/clansty","download_url":"https://codeload.github.com/clansty/netease-music-sync/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224354776,"owners_count":17297410,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-12T21:45:01.292Z","updated_at":"2024-11-12T21:45:01.890Z","avatar_url":"https://github.com/clansty.png","language":"Nix","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Netease Sync\n\n自动将网易云的歌单同步到本地\n\n## 存储方式\n\n所有本地有的音乐以 ID 为名称保存在 `pool` 文件夹中，并在歌单文件夹中维护以 `歌手 - 歌名.{mp3,flac}` 为名，到 `pool` 中文件的软链接\n\n## 咕咕\n\n- [x] 下载新增音乐\n- [x] 删除已删除的音乐\n- [x] 支持多个歌单\n- [ ] 歌灰了自动将本地有的文件（如果有）上传到音乐云盘\n- [x] Arch Linux 包部署\n- [x] NixOS Flake 部署\n- [X] Docker 部署\n- [ ] 自带一个 [NeteaseCloudMusicApi](https://github.com/Binaryify/NeteaseCloudMusicApi) 或者 [YesPlayMusic](https://github.com/qier222/YesPlayMusic)，用本地文件作为缓存\n- [ ] 内置 [UnblockNeteaseMusic](https://github.com/UnblockNeteaseMusic/server) 下载灰掉的音乐\n- [x] 支持使用另一个 Cookie 来下载音乐\n- [x] 自动将音乐上传到 Telegram Channel\n\n## 使用方法\n\n### Arch Linux\n\n1. 首先安装 `netease-music-sync` [AUR](https://aur.archlinux.org/packages/netease-music-sync) [凌莞源](https://pacman.ltd/x86_64/netease-music-sync)\n\n   ```bash\n   yay -S netease-music-sync\n   ```\n\n2. 运行 `netease-login` 获取 cookies\n\n3. 编辑 `/etc/netease-music-sync.conf`，填入相关信息\n\n   ```bash\n   sudo vi /etc/netease-music-sync.conf\n   ```\n\n   歌单 ID 获取方法：在手机上分享歌单，URL 里就有 ID。或者在网页上打开，地址栏也有\n\n4. 启用服务\n\n   ```bash\n   sudo systemctl enable --now netease-music-sync.service\n   ```\n\n#### 以指定用户身份运行\n\n如果你想要以指定用户身份运行同步程序，比如说写入文件要以特定的用户/组身份，可以在启用服务之前这样操作\n\n```bash\nsudo systemctl edit netease-music-sync.service\n```\n\n在编辑区域增加以下内容\n\n```ini\n[Service]\nUser=你需要的用户名\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclansty%2Fnetease-music-sync","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fclansty%2Fnetease-music-sync","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclansty%2Fnetease-music-sync/lists"}