mirror of
https://github.com/sigma67/ytmusicapi.git
synced 2026-04-25 15:26:01 +03:00
[PR #74] [MERGED] Return empty list if no songs are uploaded #552
Labels
No labels
a/b
bug
documentation
enhancement
good first issue
help wanted
invalid
pull-request
question
wontfix
yt-error
yt-update
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ytmusicapi#552
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/sigma67/ytmusicapi/pull/74
Author: @apastel
Created: 9/5/2020
Status: ✅ Merged
Merged: 9/6/2020
Merged by: @sigma67
Base:
master← Head:bugfix/get-upload-songs-throws-err-if-empty📝 Commits (4)
6644232Return empty list if 'musicShelfRenderer' not in list of uploaded songs (#71)07215a6Add skipped unit tests that would verify no errors are returned when there's 0 uploads0ec5bc0Update .gitignore to ignore venv and egg-infod9c8800Return empty list if 'musicShelfRenderer' not in list of uploaded artists (#71)📊 Changes
3 files changed (+31 additions, -4 deletions)
View changed files
📝
.gitignore(+3 -1)📝
tests/test.py(+17 -1)📝
ytmusicapi/mixins/uploads.py(+11 -2)📄 Description
fixes #71
Used the same error checking logic as in get_library_upload_albums().
I wanted some unit tests so I created tests that verify an empty list is returned for these functions, But of course they assume that your upload library is empty, so I set them to be skipped. I can delete them if you think they're unnecessary, but I wanted to show that I used them to verify my code.
Updated the .gitignore with a couple standard python ignores that were showing as diffs for me.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.