glomatico / spotify-web-downloader

A Python CLI app for downloading songs/music videos/albums/playlists directly from Spotify.
378 stars 43 forks source link

Feature Request: Add Options for Default Language Selection and Playlist Title-Based Directory Creation #38

Closed youngoris closed 4 weeks ago

youngoris commented 3 months ago

Hello,

I am currently using the spotify-web-downloader tool and have found it to be incredibly useful for my music downloading needs. However, I believe the addition of a couple of features could greatly enhance its functionality and user experience. Below are the details of the features I am proposing:

  1. Default Language Selection for Songs:

    • Problem: Currently, when downloading songs from Spotify, the tool does not allow the user to specify the default language for the tracks. This can be inconvenient for users who prefer songs in specific languages, especially in regions with multiple languages.
    • Proposed Feature: I suggest adding a command-line argument (e.g., --default-language or in the config file as default_language) that allows users to set their preferred language for song downloads. This setting should influence the metadata and lyrics language (if available).
  2. Playlist Title-Based Directory Creation:

    • Problem: When downloading playlists, all files are saved directly to the specified output path, without creating a subdirectory named after the playlist title. This can lead to disorganization, especially when downloading multiple playlists.
    • Proposed Feature: It would be highly beneficial if the tool could automatically create a new directory based on the playlist title for storing the downloaded files. This could be an optional feature enabled via a command-line switch (e.g., --use-playlist-title-for-folder) or a configurable setting in the config file.

I believe these features will make spotify-web-downloader even more robust and convenient for users. Thank you for considering these enhancements. I look forward to the potential implementation of these features and am excited to see how they will improve the overall functionality of the tool.

Best regards, Andre Ho

youngoris commented 4 weeks ago

https://github.com/glomatico/spotify-web-downloader/blob/1100b435da8d2883d2b36923588fe0114cbe3f3b/spotify_web_downloader/spotify_api.py#L50C1-L50C44

change the accept-language in local path /usr/local/lib/python3.11/site-packages/spotify-web-downloader/spotify_api.pywith the following language code:

ar-SA Arabic Saudi Arabia cs-CZ Czech Czech Republic da-DK Danish Denmark de-DE German Germany el-GR Modern Greek Greece en-AU English Australia en-GB English United Kingdom en-IE English Ireland en-US English United States en-ZA English South Africa es-ES Spanish Spain es-MX Spanish Mexico fi-FI Finnish Finland fr-CA French Canada fr-FR French France he-IL Hebrew Israel hi-IN Hindi India hu-HU Hungarian Hungary id-ID Indonesian Indonesia it-IT Italian Italy ja-JP Japanese Japan ko-KR Korean Republic of Korea nl-BE Dutch Belgium nl-NL Dutch Netherlands no-NO Norwegian Norway pl-PL Polish Poland pt-BR Portuguese Brazil pt-PT Portuguese Portugal ro-RO Romanian Romania ru-RU Russian Russian Federation sk-SK Slovak Slovakia sv-SE Swedish Sweden th-TH Thai Thailand tr-TR Turkish Turkey zh-CN Chinese China zh-HK Chinese Hong Kong zh-TW Chinese Taiwan