Transfers your liked tracks from Tidal to YouTube Music accurately — matching the right version of every song, not just the first result with the same title.
Those services pick the first result they find. They don't account for:
- Multiple album versions (original vs. remaster vs. deluxe vs. box set)
- Wildly different versions with the same title (e.g. Chariots of Fire at 3:29 vs. 20:41)
- Classical tracks where title alone is useless (every recording is labelled the same thing)
| Priority | Method | How it works |
|---|---|---|
| 1 | ISRC | Exact recording identifier. Unambiguous. Confidence: 1.0 |
| 2 | Duration | Title + artist + duration within ±4 s. Confidence: ~0.85 |
| 3 | Fuzzy album | Among duration matches, prefers closest album name. Confidence: ~0.70 |
| — | Review queue | Anything below threshold marked needs_review in transfer_plan.toml for manual confirmation. |
If the tool isn't confident about a match, it won't guess — it sets the status to needs_review in the plan file.
If you haven't already, install uv:
irm https://astral.sh/uv/install.ps1 | iex
git clone https://github.com/cobrabr/tidal2ytm.git cd tidal2ytm uv sync --frozen
The Tidal flow opens your browser to a Tidal login page and waits there until you grant access. The YTM flow walks you through a Google sign-in. Do this once after install:
This can be done in one of two ways:
- Install the Google Cloud SDK
- Run:
# Create a project (skip if you have one already) gcloud projects create YOUR_PROJECT_ID --name="tidal2ytm" gcloud config set project YOUR_PROJECT_ID # Enable the YouTube Data API gcloud services enable youtube.googleapis.com
Option 2: via Google Cloud Console
- Create a project.
- Enable the YouTube Data API v3 under APIs & Services → Library.
Note
This step cannot currently be done via the gcloud CLI tool. It requires using the Google Cloud Console web interface.
- Under APIs & Services → Credentials, click Create Credentials → OAuth client ID.
- Choose TVs and Limited Input devices as the application type.
- Download the client secrets JSON file by clicking the download icon next to the client ID.
- Save the downloaded JSON file to the
data/directory. The file name will look likeclient_secret_<fullClientSecret>.json.
tidal2ytm auth
# or: uv run tidal2ytm auth --ytm-only --re-auth --client-id X --client-secret YWhat to expect:
- Default authenticates both YTM and Tidal. Use
--ytm-onlyor--tidal-onlyto restrict to one provider. - A provider whose cached token still validates is skipped. Use
--re-authto force a fresh flow (e.g. after revoking access in your account settings). - If no
data/client_secret_*.jsonis present and you do not pass--client-id/--client-secret, the command prints the relevant gcloud or Console instructions and prompts for the ID and secret, saving a synthetic credentials file alongside your plan if you paste them in. - The YTM flow opens your browser to Google's sign-in page. The Tidal flow prints a URL and opens it in your browser; the CLI waits there until you grant access.
- Subsequent runs of
tidal2ytm authreuse the cached tokens; you only need to re-auth when a token expires or is revoked.
uv tool install --from . tidal2ytm tidal2ytm --help tidal2ytm status # update later: uv tool update tidal2ytm
The workflow consists of three steps: planning what to match, reviewing/resolving low-confidence matches, and executing the transfer.
# 1. Interactively plan: search liked tracks, select, and match to YTM uv run tidal2ytm # 2. Interactively review low-confidence matches uv run tidal2ytm review --needs-review # 3. Transfer matches in scope uv run tidal2ytm transfer --all
Running tidal2ytm with no arguments opens the planning TUI. It fetches Tidal liked tracks once, then lets you choose what to match: everything, or a general search. You can also paste a Tidal track or album link; an album link selects that album's songs found in your liked tracks, never the album entity. Selections accumulate across searches and stay reviewable (with deselect) until the explicit match action writes results to data/transfer_plan.toml. The m key matches (asks [Y/n] first); differing re-matches of existing non-transferred entries prompt [y/N] each unless the ctrl+o override banner is on; transferred entries are always kept.
e: select everything (all liked tracks)/ors: search (query or Tidal link; containing matches list with exact hits first, otherwise labelled closest matches; compilations group under Various Artists; arrows/j/k move, space toggles,*toggles all,A/Ltoggle artist/album (exact group on headers),ggrouping,//snew search,qquits, Enter confirms, Esc cancels)v: review the accumulated selection (same list keys,cclears all)m: match the selection to YTMr: review all matches (opens the review TUI in-process)t: transfer pending tracks (asks[Y/n]first, pending only)d: dry-run transfer of pending tracks (logs actions without writing to the library)a: auth both/tidal/ytm (prompts for scope, skips cached valid tokens)ctrl+o(TTY) /O(fallback): toggle override?orh: help,q: quit
The main menu always shows plan counts plus YTM, client secret, and Tidal auth file presence.
Interactive Rich TUI to accept, skip, or override matches. Decisions are saved instantly. On first write, a backup of the plan is saved to data/transfer_plan.YYYYMMDD_HHMMSS_ffffff.toml.
uv run tidal2ytm review [--needs-review | --pending | --failed | --skip | --transferred | --all-statuses] [--artist <match_id>] [--album <match_id>]
- Navigation (list view):
j/↓: Next trackk/↑: Previous trackn/→/Tab: Next albump/←: Previous albumN/P: Next/Prev artist- Mouse wheel: Scroll
PgUp/PgDn: Pagev/Enter: Open detail view for the cursor track
- Detail view: stacked Tidal/YTM comparison for the cursor track;
v/Enter/Escreturn to the list - Decisions (
a/s/r/o/twork in both views):a: Accept match (sets status topending)s: Skip track (sets status toskip)r: Reject match (sets status toneeds_review)o: Override (prompts for YouTube video ID or URL, sets status topending)t: Mark as transferred manually
- Other:
?/h: Show help overlayEsc/b: Back to the main menu (Escbacks out of the detail view first)q: Quit tidal2ytm entirely (asks for confirmation)
Executes the transfer of matched tracks to your library. Requires a specific scope.
uv run tidal2ytm transfer (--track <video-id> | --album <match-id> | --artist <match-id> | --all) [--dry-run] [--include-needs-review]
--track: Bare 11-character YouTube video ID.--album: Albummatch_id(e.g.jethro-tull/war-child).--artist: Artistmatch_id(e.g.jethro-tull).--all: Transfer all pending tracks.--dry-run: Match and log actions without adding to YouTube Music library.--include-needs-review: Forces transfer of low-confidence matches without prior review. Shows a warning panel before starting (Enter continues,ndeclines).
Displays total counts and lists tracks needing review.
uv run tidal2ytm status [--artist <match-id>] [--album <match-id>]
All runtime files are written to the data/ directory (git-ignored).
| File | Purpose |
|---|---|
data/transfer_plan.toml |
The main transfer plan |
data/transfer_plan.YYYYMMDD_HHMMSS_ffffff.toml |
Automated backup created on first mutating write (review, match, or transfer) |
data/tidal_token.json |
Cached Tidal OAuth token (created by tidal2ytm auth) |
data/ytm_auth.json |
Cached YTM OAuth token (created by tidal2ytm auth) |
data/client_secret_*.json |
Google Cloud OAuth client credentials you download from the Console |
logs/YYYYMMDD-HHMMSS-ffffff.log |
Timestamped diagnostic log for the run (git-ignored) |
Every run writes a timestamped log file to the logs/ directory (git-ignored). The default level INFO records external API calls, auth steps, album resolve verdicts and transfer results. --log-level DEBUG adds scoring detail, cache hits, request payload shapes and plan saves; --log-level ERROR or --log-level CRITICAL narrow the file to failures; --log-level OFF disables logging entirely. TIDAL2YTM_LOG_LEVEL sets the same value via the environment; the flag wins. Example: uv run tidal2ytm --log-level DEBUG review.
Requires Python ≥3.11 and uv. Install dependencies (including the dev group) with:
uv sync --frozenRun the quality gates before pushing:
uv run ruff check . uv run ruff format --check . uv run pyright uv run pytest -q uv run pytest --cov --cov-report=term-missing -q
pyright runs in strict mode and must report zero errors. Coverage is report-only. Tests live in tests/ and use fictional artist/track names and synthetic IDs only — never real catalogue data. Pre-commit and pre-push hooks run the same gates locally (ruff check-only, uv run pyright, pytest).
- ISRC on YTM: When the ISRC matches a YTM candidate, the match is unambiguous. When it doesn't, duration + fuzzy album takes over.
- Classical music: ISRC is your best friend here. Tracks where it doesn't resolve on YTM's side land in the review queue, which is the right outcome — you want to verify the correct recording manually.
- Tracks not on YTM: Show up as "No candidates found" in the review queue. Handle them by clearing the video ID and setting status to
needs_review, or using the override (o) key in the review TUI. - Rate limiting: Small delays are built in. For large libraries, just let it run overnight.