Commit Graph
4 Commits
Author SHA1 Message Date
Mrixs d7692875db Add debug logging to GetTrackDownloadURL
CI/CD / test (push) Successful in 43s
CI/CD / build (push) Successful in 42s
CI/CD / docker (push) Successful in 2m23s
The library returns download_info but GetTrackDownloadURL cannot extract
a working URL (bestInfo.URL is empty). Added debug logging of all
download info candidates and a more descriptive error message to
diagnose why Yandex API returns entries without URL.

This is a ym-dl issue, not a library issue — the library correctly
returns download_info; ym-dl fails to build a download URL from it.
2026-10-18 11:56:11 +03:00
Mrixs 4e6bef40e3 Fix JSONID type conversions for yandex-music-api-go v0.0.0-20261018072517-d0173f795d2a
CI/CD / test (push) Successful in 48s
CI/CD / build (push) Successful in 54s
CI/CD / docker (push) Successful in 2m31s
The new library version uses models.JSONID (custom string type) for ID
fields instead of plain string. Convert to string where IDs are passed
to functions expecting string or compared with string values.

Affected: client.go (GetTrackInfoWithPosition), downloader.go
(track.ID usage), monitor.go (track.ID, album.ID usage), storage.go
(album/track ID assignment).
2026-10-18 10:39:43 +03:00
Mrixs c228e7e2b7 Update yandex-music-api-go library
CI/CD / test (push) Successful in 1m35s
CI/CD / build (push) Successful in 52s
CI/CD / docker (push) Canceled after 13s
Upgrade to v0.0.0-20261018055743-0456ca0665a6 which fixes the
page=0 validation bug in GetArtistTracks/GetArtistAlbums.

The library now returns *ArtistTracks/*ArtistAlbums wrappers
instead of raw slices, so the YandexClient wrapper extracts
the inner slices for backward compatibility.

Reverted page numbering back to 0 in monitor since the API
bug is fixed server-side/library-side.
2026-10-18 09:15:19 +03:00
Mrixs fe62910311 Initial commit: ym-dl with yandex-music-api-go library migration
Migrate ym-dl from custom oapi-codegen Yandex Music API client to external
gitea.mrixs.me/Mrixs/yandex-music-api-go library with token-only authentication.

Key changes:
- Replace custom Yandex API client with yandexmusic library wrapper
- Token-based OAuth authentication only (no username/password fallback)
- SQLite storage index with JSON index migration path
- Extended ID3 tag support: genre, comment, lyrics, publisher, ISRC, copyright
- High-resolution album covers (1000x1000)
- Fixed album download check (requires all tracks, not just one)
2026-10-17 17:09:42 +03:00