A Python utility to replace source files of songs in Apple Music while preserving metadata
Project description
ReplaceAppleMusic
A Python utility to replace source files of songs in Apple Music while preserving metadata like play count, favorite status, and playlist memberships.
Features
- Preserves play count
- Maintains favorite status
- Keeps playlist memberships
- Automatically removes old track after replacement
Requirements
- macOS
- Python 3.x
- Apple Music app
Installation
You can install it directly from PyPI:
pip install replaceapplemusic
Or install from source:
- Clone this repository
- Install dependencies:
pip install -r requirements.txt
- Make sure Apple Music is running and you have the necessary permissions
Usage
# Replace a song
ramusic replace "Song Name" "Artist Name" "Album Name" "/path/to/new/file.mp3"
# Replace a song without specifying album
ramusic replace "Song Name" "Artist Name" "" "/path/to/new/file.mp3"
# Replace a song with only the title
ramusic replace "Song Name" "" "" "/path/to/new/file.mp3"
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file replaceapplemusic-0.0.1.tar.gz.
File metadata
- Download URL: replaceapplemusic-0.0.1.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
15dc53e4d59bbf020827e5f1fc5511c824dda693e38154056975e999efca257f
|
|
| MD5 |
d2f0dce18dc19bd325d2b1644ac2bb71
|
|
| BLAKE2b-256 |
12a0ddead0f19108edaae0d91c331eb5339cfd7b27a66bee22953d24eba3db68
|
File details
Details for the file replaceapplemusic-0.0.1-py3-none-any.whl.
File metadata
- Download URL: replaceapplemusic-0.0.1-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
86cf365f5984ab68a3a09941abd96333176e9ad4b85dd529891c58449efa5178
|
|
| MD5 |
7c48fe80f4e0f22ff00585f3398cd07d
|
|
| BLAKE2b-256 |
b83d09394099099a900261a01bc202fda32f8dc8a01bdee1831446f834c9d8b7
|