Skip to content

Uploads response models #987

Description

@sigma67

Part of #307. Base branch: ytmusicapi-2. Read the contributor guide from #982 before starting.

Good first issue — three methods, one parser file, no dependency on the trickier core models.

Scope

  • get_library_upload_songs
  • get_library_upload_artist
  • get_library_upload_album

Models go in a new module alongside the others; parsing lives in ytmusicapi/parsers/uploads.py.

Watch out for

Uploaded items are similar to but not the same as regular songs — they carry an entityId and lack several fields that YTM-hosted songs have. Reuse the song model from #983 only where the shape genuinely matches, otherwise define upload-specific models.

upload_song and delete_upload_entity return raw responses and are out of scope here (see #995).

Definition of done

  • All three methods return models; docstrings point at them instead of repeating JSON.
  • Tests pass against the existing upload fixtures.
  • mypy --strict clean.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestgood first issueGood for newcomershelp wantedExtra attention is neededv2-modelspydantic response models effort (#307)

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions