Ytmusicapi

Latest version: v1.7.3

Safety actively analyzes 638466 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 12 of 13

0.6.1

Changed

- Return song count for each playlist in get_playlists
- Fix get_playlists and get_uploaded_songs for some users
- Fix get_history duration parsing

0.6.0

New Features

- get_artist(channelId)
returns a dictionary with lists of songs, albums, singles, videos on the artist page and info to get more songs/albums if available (i.e. the playlistId)

- get_artist_albums(channelId, params)
gets singles or albums by an artist. the required params are provided by get_artist

- get_album(browseId)
gets all songs for an album

Changes

- Only a cookie is now needed for authentication. Other headers are left out or dynamically generated
- Encode filename with UTF-8 before upload
- Fix playlist items error when artist/album missing
- Add filetype check for uploads
- Breaking: setup() now requires a filepath parameter, returns a credential string unless storage filepath is provided
- YTMusic() now accepts either a filepath or a JSON string: youtube_auth = YTMusic("<json_string>")

0.5.2

Changes
=====

- Fix upload metadata and file types (fixes 1) - now metadata of uploaded files will be recognized by Google (picture, artist, etc). Additionally, flac, ogg and all other file types for Google should work
- Fix setup header length check (setup should not return an error anymore)
- Search edge case: sometimes contents is missing from API response (this is an issue on the YT Music side - now handled correctly by the API)

0.5.1

Changes

- Add authentication check to validate provided credentials
- Remove need for X-Youtube-Identity-Token in credentials
- Fix upload
- Update docs

0.5.0

Changes

- New features: Add upload_song, get_uploaded_songs, delete_uploaded_song
- Simplified setup with CLI tool to create headers_auth file
- Moved tests to unittest
- Removed print output for continuations in get_playlist_items
- Fixed unplayable playlist item parsing

0.4.3

- Unplayable songs in playlists now correctly return videoId and setVideoId
- Search is now compatible with accounts that have uploads

Page 12 of 13

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.