Commit graph ytmusicapi/ytmusicapi/helpers.py
Author SHA1 Message Date
sigma67
d0ec2bbf72
feature: add_history_item (closes #295) (OzymandiasTheGreat/mopidy-ytmusic/issues/58) 2022-12-07 18:07:47 +01:00
bretsky
2344a1715b Fix KeyError when playlist is empty 2022-11-24 14:10:00 +01:00
JohnHKoh
a406dbcf95 Remove quotes from cookies 2022-11-03 16:11:15 +01:00
sigma67
07cb6d041f
Change version string to new format (#296) 2022-09-20 17:45:13 +02:00
sigma67
f4ff4ba287
refactor helpers and utils, extract SearchMixin from BrowsingMixin 2022-05-05 14:26:45 +02:00
HHongSeungWoo
e1c77f1da0 fix/number parse error 2022-03-04 18:27:16 +09:00
sigma67
3436f2dcc4
add duration_seconds key to items with duration (closes #215) 2022-01-01 19:54:42 +01:00
sigma67
2aad7232f2
also split on non-breaking spaces 2021-12-20 10:11:51 +01:00
sigma67
72661fe1ff
remove browse endpoint request keys that are no longer used 2021-10-28 21:58:52 +02:00
sigma67
b18c7d342b
setup: don't overwrite x-goog-authuser 2021-05-26 11:07:47 +02:00
sigma67
5d59a09751
get_song: fix signatureTimestamp (#196) 2021-05-21 21:44:09 +02:00
sigma67
90a12774a5
remove context.json 2021-04-28 16:35:16 +02:00
sigma67
f9d317bd0d
add gzip encoding, ignore some headers that might break requests 2021-04-28 16:27:57 +02:00
sigma67
048f17989a
get x-goog-visitor-id dynamically to avoid errors caused by its expiry
removed headers.json
all headers provided by user are now used in the headers file created by setup.py instead of only required headers
2021-04-27 22:55:00 +02:00
mikefreemanwd
8ec9b6ac41 removed named exception in favor of ValueError when non-music YouTube channel id given to get_artist. Minor changes to structure of related artists property in get_artist, added thumbnails. 2021-03-23 12:01:07 -04:00
mikefreemanwd
15bf0bbe1b Feature: add related artist section to BrowsingMixin get_artist method 2021-03-23 12:01:06 -04:00
sigma67
0ab4d41e9d
Catch ValueError in to_int (closes #125) 2020-12-18 12:43:44 +01:00
ide-an
725e774ef6
Extract ordering logic to helper functions 2020-11-11 17:12:24 +01:00
sigma67
8fe915fcbb
Use 3PAPISID for sapisidhash (closes #100) 2020-11-09 11:01:04 +01:00
sigma67
81df1505fd
Fix unsupported locale errors on Linux 2020-07-09 19:11:47 +02:00
sigma67
76453bb155
Feature: support additional languages (closes #29)
de,es,fr,it,jp are supported for now, pull requests for additional languages are welcome!
2020-07-09 18:19:09 +02:00
sigma67
5bfa86a4d8
Fix get_artist for artists without description or with few songs (closes #26)
song and view counts are now returned as int
2020-05-28 00:40:23 +02:00
hematogender
b142cf3340 Format the code with YAPF 2020-05-12 14:04:12 +03:00
sigma67
42b6c0a19a
Add rate_playlist, subscribe_artists, unsubscribe_artists 2020-04-22 18:59:51 +02:00
sigma67
89c74995ad
Extract parsers into separate file 2020-04-21 11:30:13 +02:00
sigma67
b98cfe3aeb
Fix get_history duration parsing 2020-04-18 00:07:23 +02:00
sigma67
4a653c5285
Add get_artist_albums (closes #4)
This commit also circumvents an issue with get_artist, where the API sometimes fails to return songs.
2020-04-17 00:42:39 +02:00
sigma67
e96c4f1ca8
Simplify setup -> only cookie required
SAPISID Authorization now implemented correctly
2020-04-15 00:44:08 +02:00
sigma67
872547e368
Add get_album, get_artist (#4) 2020-04-14 23:09:51 +02:00
sigma67
10b2232165
Fix playlist items error when artist/album missing 2020-04-13 21:33:51 +02:00
sigma67
5d237ddd3c
Feature: Add upload_song, get_uploaded_songs, delete_uploaded_song 2020-03-23 16:08:03 +01:00
sigma67
c6ba91c430
Fix unplayable playlist item parsing 2020-03-20 17:00:06 +01:00
sigma67
c9dd0192c7
Update playlist item parser to work with unavailable songs 2020-03-09 14:55:04 +01:00
sigma67
fefd96c53a
Strip HTML from playlist descriptions 2020-02-26 21:22:48 +01:00
sigma67
22837983fd
Fix typo in search result parsing 2020-02-26 20:59:51 +01:00
sigma67
1ac614e27b
Make song result dependent on the song having an album (some songs have no album) 2020-02-23 19:30:39 +01:00
sigma67
fcea964d26
Add more info on song/video search results 2020-02-23 18:06:10 +01:00
sigma67
9ef92f866c
Allow batch playlist item processing: add_playlist_items, remove_playlist_items
Include default search without filter
Remove body from class instance to avoid pollution from previous calls
2020-02-23 17:48:57 +01:00
sigma67
790c6187a1
Add search filters 2020-02-22 19:11:11 +01:00
sigma67
7ed4d4358a
Add additional endpoints: get_playlists, get_liked_songs, edit_playlist. Renamed add_playlist to create_playlist 2020-02-21 00:07:58 +01:00
sigma67
9032ea8d35
Initial commit 2020-02-18 22:36:45 +01:00