spotDL / spotify-downloader

Download your Spotify playlists and songs along with album art and metadata (from YouTube if a match is found).
https://spotdl.readthedocs.io/en/latest/
MIT License
17.15k stars 1.58k forks source link

Lyrics not fetched with "spotdl save" command #2151

Open ZenKyma opened 2 months ago

ZenKyma commented 2 months ago

System OS

Windows

Python Version

3.10 (CPython)

Install Source

pip / PyPi

Install version / commit hash

v4.2.5

Expected Behavior vs Actual Behavior

I use spotdl save to get the metadata of my audio files and tag them with MediaFile. Unfortunately, the lyrics are not getting fetched at all as they do with spotdl download:

image

[
    {
        "name": "Shape Of My Heart - My Songs Version",
        "artists": [
            "Sting"
        ],
        "artist": "Sting",
        "genres": [
            "permanent wave",
            "soft rock",
            "sophisti-pop"
        ],
        "disc_number": 1,
        "disc_count": 1,
        "album_name": "My Songs (Deluxe)",
        "album_artist": "Sting",
        "album_type": "album",
        "duration": 283,
        "year": 2019,
        "date": "2019-05-24",
        "track_number": 9,
        "tracks_count": 19,
        "song_id": "6b7oNUj0gjn5GICYZG85TZ",
        "explicit": false,
        "publisher": "A&M/Interscope Records",
        "url": "https://open.spotify.com/track/6b7oNUj0gjn5GICYZG85TZ",
        "isrc": "USUM71903422",
        "cover_url": "https://i.scdn.co/image/ab67616d0000b2734c3feee4136c1b2a69086aba",
        "copyright_text": "© 2019 A&M Records",
        "download_url": null,
===>    "lyrics": null,
        "popularity": 39,
        "album_id": "2ApWqsjfhuwyjooHr9YRyl",
        "list_name": null,
        "list_url": null,
        "list_position": null,
        "list_length": null,
        "artist_id": "0Ty63ceoRnnJKVEYP0VQpk"
    }
]

Missing

Steps to reproduce - Ensure to include actual links!

  1. spotdl download https://open.spotify.com/track/6b7oNUj0gjn5GICYZG85TZ?si=b9be60f17fef40f4 --lyrics genius
  2. Sing along with saved lyrics
  3. spotdl save https://open.spotify.com/track/6b7oNUj0gjn5GICYZG85TZ?si=b9be60f17fef40f4 --save-file imustendwith.spotdl --lyrics genius
  4. Sorrowly listen to the song without knowing any word because lyrics is null

Traceback

(tag) C:\Users\Timofej\Nextcloud\Music\__assets\_downloads.spot>spotdl download https://open.spotify.com/track/6b7oNUj0gjn5GICYZG85TZ?si=b9be60f17fef40f4 --format opus

Processing query: https://open.spotify.com/track/6b7oNUj0gjn5GICYZG85TZ?si=b9be60f17fef40f4
Downloaded "Sting - Shape Of My Heart - My Songs Version": https://music.youtube.com/watch?v=WOwj-SDcy0w

(tag) C:\Users\Timofej\Nextcloud\Music\__assets\_downloads.spot>spotdl save https://open.spotify.com/track/6b7oNUj0gjn5GICYZG85TZ?si=b9be60f17fef40f4 --save-file shape.spotdl

Processing query: https://open.spotify.com/track/6b7oNUj0gjn5GICYZG85TZ?si=b9be60f17fef40f4
Saved 1 song to shape.spotdl

Other details

Neither did any of these 2 options help:

spotdl save https://open.spotify.com/track/6b7oNUj0gjn5GICYZG85TZ?si=b9be60f17fef40f4 --save-file shape-lrc.spotdl --lyrics synced genius --generate-lrc

spotdl save https://open.spotify.com/track/6b7oNUj0gjn5GICYZG85TZ?si=b9be60f17fef40f4 --save-file shape-msx.spotdl --lyrics musixmatch genius azlyrics
R0GUE-A5H commented 1 day ago

Try this, it works download https://open.spotify.com/track/6b7oNUj0gjn5GICYZG85TZ?si=b9be60f17fef40f4 --lyrics genius --save-file mytest.spotdl The --save-file option is working as intended when used with the download operation. It saves the song data along with the lyrics, as expected. You can continue using this method to save the metadata with lyrics included.

I recommend closing this thread since the issue seems resolved