Commit graph

222 commits

Author SHA1 Message Date
sigma67
3eee8795da
Feature: add edit_song_library_status (closes #68) 2020-12-15 15:54:22 +01:00
sigma67
6022337a33
Add library add/remove feedbackTokens to get_album (#68) 2020-12-15 15:35:56 +01:00
sigma67
ecb3b205b2
Add library add/remove feedbackTokens for songs returned by search, get_playlist, get_library_songs (#68) 2020-12-15 14:44:19 +01:00
sigma67
cfdb040652
Update get_artist to work with MPLA IDs now returned by get_library_artists (closes #117) 2020-12-14 14:18:13 +01:00
sigma67
ee6e06690e
Provide browseId for search resultType artist (fixes #115) 2020-12-14 14:10:40 +01:00
sigma67
fee86377a8
Move lyrics retrieval to get_watch_playlist (closes #114)
Add get_lyrics to docs
Remove video and browseId from get_lyrics return Dict
2020-12-14 14:04:17 +01:00
sigma67
79eb76e876
Merge branch 'master' of git://github.com/harmonoid/ytmusicapi-fork into harmonoid-master 2020-12-14 12:25:21 +01:00
alexmercerind
eec1ff1d29 Added lyricsFound key to get_lyrics result & updated tests 2020-12-04 21:20:22 +05:30
alexmercerind
946ad8d07b Fixed wrong return annotation in get_lyrics 2020-12-04 18:41:57 +05:30
alexmercerind
0d81ec9dcd Added tests for get_lyrics 2020-12-04 18:33:23 +05:30
alexmercerind
aac93a3010 Updated docstring 2020-12-04 16:33:18 +05:30
alexmercerind
a1fee33e37 Added lyrics source & fixed method for songs which do not have lyrics 2020-12-04 16:23:20 +05:30
alexmercerind
d62e3f8079 Added get_lyrics method to get lyrics of a video or song 2020-12-04 12:05:32 +05:30
Daniel Marai
1fb0968760 Added category to get_song() results. 2020-11-30 17:35:00 +01:00
sigma67
a1b6b06835
Update version to 0.11.0 2020-11-30 16:02:09 +01:00
sigma67
35b88a4c62
Fix default search (related to 0d419fb) 2020-11-30 15:58:15 +01:00
sigma67
ffe2deffed
search(): Add option to ignore spelling correction (closes #91) 2020-11-30 15:37:17 +01:00
Patompong Manprasatkul
6a8fe5fd58
Update url to get brand's user_id 2020-11-30 15:17:07 +01:00
sigma67
57f0cc7a16
Docs: Fix get_library_albums inlining 2020-11-30 15:12:54 +01:00
Cory Marshall
06cc2d05de Fix documentation for get_streaming_data()
The example in the documentation for `get_streaming_data()` was not properly indented.
2020-11-26 11:09:52 -04:00
sigma67
063af84a5f
get_streaming_data: handle unplayable videos 2020-11-26 15:04:58 +01:00
Cory Marshall
028b678112
Edit to get_streaming_data() test
Rename variable `song` to `streaming_data`.
2020-11-26 15:04:58 +01:00
Cory Marshall
46c7c3d9d4
Adjust variable name for proper naming convention 2020-11-26 15:04:58 +01:00
Cory Marshall
e95e2d4ee4
Documentation and tests update
Reflect splitting of `get_streaming_data()` off of `get_song()` in
the documentation and tests.
2020-11-26 15:04:57 +01:00
Cory Marshall
4359de0b9f
Rename get_streamingData() to get_streaming_data() 2020-11-26 15:04:57 +01:00
Cory Marshall
c3ef580e26
Split get_streamingData() off of get_song()
Separate the requests for song/video streaming data and song metadata
in to two separate functions: `get_streamingData()` and `get_song()`.
2020-11-26 15:04:57 +01:00
Cory Marshall
839703c034
Retreive streaming data for 256 kbps AAC
Adding the parameters c=WEB_REMIX and cver=0.1 to the get_video_info
request in get_song() returns a streamingData adaptiveFormat of itag
141, audioQuality of AUDIO_QUALITY_HIGH, a 256 kbps AAC m4a for
authenticated requests from YouTube Music Premium subscribers.

Unfortunately, these parameters result in
player_response['videoDetails']['shortDescription'] not being returned,
the information in which contains useful song metadata.

player_response['microformat']['microformatDataRenderer']['description']
is returned, but it seems to be a truncated version of shortDescription,
so the metadata parsing in get_song() does not work on that response.

Therefore, a second get_video_info request is made with the updated
parameters and the metadata in song_meta is copied in to the new
player_response['videoDetails'], which is returned from get_song()
instead of song_meta.
2020-11-26 15:04:57 +01:00
Cory Marshall
9af106b464 Logic fix in BrowsingMixin().search()
Simple addition of indentation so the if statement is evaluated only
if the previous one is true. Found with video_id `gzo0xPx26hs`.
2020-11-25 23:35:20 -04:00
sigma67
0d419fb68f
Add limit parameter to search and search_uploads (closes #95) 2020-11-12 10:51:45 +01:00
Nik Tumbri
5654928ed2
respond to review of PR 2020-11-12 10:02:20 +01:00
ide-an
a0506ebf75
Remove ordering check in testcases
String comparation logic of YTM is different from python one.
Maybe, some kind of normalization is done before comparation.

So I gave up checking if order is correct in testcase.
2020-11-11 17:12:25 +01:00
ide-an
ca2dc4fb28
Add order to library function
Add order parameter to functions bellow
 * get_library_songs
 * get_library_albums
 * get_library_artists
 * get_library_subscriptions
 * get_library_upload_albums
 * get_library_upload_artists
2020-11-11 17:12:25 +01:00
ide-an
fa5e6fe761
Add ordering test 2020-11-11 17:12:25 +01:00
ide-an
725e774ef6
Extract ordering logic to helper functions 2020-11-11 17:12:24 +01:00
ide-an
19e9053706
Support song order for get_library_upload_songs 2020-11-11 17:12:22 +01:00
sigma67
c378b58296
Update version to 0.10.2 2020-11-09 11:50:46 +01:00
sigma67
8fe915fcbb
Use 3PAPISID for sapisidhash (closes #100) 2020-11-09 11:01:04 +01:00
sigma67
79148aab5a
Add duration for uploaded items (closes #96) 2020-11-09 10:58:34 +01:00
Gaganpreet Arora
7974715afd
Add X-Goog-AuthUser to required headers 2020-11-08 16:30:20 +01:00
Ľubomír Kučera
74ccb7bed3
Fix KeyError in get_continuations() 2020-11-08 01:53:00 +01:00
sigma67
6405bec93f
Make (x-)origin header backwards-compatible to avoid breaking existing headers files (#87) 2020-10-31 14:20:06 +01:00
sigma67
c93f66471c
remove_playlist_items: remove invalid items from list (closes #88) 2020-10-28 20:24:08 +01:00
sigma67
bf32ba7221
Fix uploads search (server-side changes) 2020-10-28 14:12:29 +01:00
czifumasa
12c465e18e
Added isAvailable flag for songs in playlists 2020-10-28 13:48:45 +01:00
sigma67
c951c409f3
Update default headers to fix failing get_artist_albums and get_user_playlists tests 2020-10-28 13:48:17 +01:00
Forrest Jones
5c13accd96 Add support for ignoring YTM's spelling suggestions (#91) 2020-10-20 17:50:48 -06:00
sigma67
bdbaada36a
Update version to 0.10.1 2020-10-04 20:30:57 +02:00
sigma67
5a1032983d
Update get_library_albums parsing to new YT Web display format (closes #84)
Change 'artists' key to dict with name/id
2020-09-28 14:45:25 +02:00
sigma67
14daa31ab1
Parse setVideoId for unplayable items (closes #83) 2020-09-28 10:36:03 +02:00
sigma67
b40ca2d6bf
Update version to 0.10.0 2020-09-17 11:57:28 +02:00