https://github.com/root4loot/spotify-to-tidal
Convert Spotify track URL to Tidal track URL
https://github.com/root4loot/spotify-to-tidal
Last synced: about 1 year ago
JSON representation
Convert Spotify track URL to Tidal track URL
- Host: GitHub
- URL: https://github.com/root4loot/spotify-to-tidal
- Owner: root4loot
- Created: 2025-03-09T15:55:44.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-09T15:57:45.000Z (about 1 year ago)
- Last Synced: 2025-03-09T16:32:48.862Z (about 1 year ago)
- Language: Python
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Convert Spotify track URL to Tidal track URL
## Requirements
- Python 3.6+
- `requests` library
## Installation
### Using Python Virtual Environment
```bash
python3 -m venv venv
source venv/bin/activate
pip install requests
```
## Usage
### Python
```bash
python spotify-to-tidal.py "https://open.spotify.com/track/6s803Mds01E3KGc3sIx0kO"
```
#### Example Output (Track Found)
```json
{"spotify_url": "https://open.spotify.com/track/6s803Mds01E3KGc3sIx0kO", "tidal_url": "https://listen.tidal.com/track/397707547", "status": "success", "message": "Track found"}
```
#### Example Output (Track Not Found)
```json
{"spotify_url": "https://open.spotify.com/track/6s803Mds01E3KGc3sIx0k1", "tidal_url": null, "status": "fail", "message": "Track not found"}
```
### Docker
```bash
docker run --rm -it $(docker build -q .) "https://open.spotify.com/track/6s803Mds01E3KGc3sIx0kO"
```
## Exit Codes
- `0`: Success (track found)
- `1`: Fail (track not found or invalid URL)
- `2`: Error (service unavailable or other errors)
## Notes
- Only handles Spotify track URLs (not albums or playlists)