Uploads

Methods

# (async) deleteUploadEntity(entityId)

Deletes a previously uploaded song or album.
Parameters:
Name Type Description
entityId The entity id of the uploaded song or album, e.g. retrieved from `getLibraryUploadSongs`
Returns:
Status String or error.

# (async) getLibraryUploadAlbum(browseIdopt)

Get information and tracks of an album associated with uploaded tracks
Parameters:
Name Type Attributes Description
browseId string <optional>
Browse id of the upload album, i.e. from `getLibraryUploadSongs`
Returns:
Object with title, description, artist, and tracks.
Example
{
  "title": "18 Months",
  "type": "Album",
  "thumbnails": [...],
  "trackCount": 7,
  "duration": "24 minutes",
  "audioPlaylistId": "MLPRb_po_55chars",
  "tracks": [
    {
      "entityId": "t_po_22chars",
      "videoId": "FVo-UZoPygI",
      "title": "Feel So Close",
      "duration": "4:15",
      "duration_seconds": 255,
      "artists": None,
      "album": {
        "name": "18 Months",
        "id": "FEmusic_library_privately_owned_release_detailb_po_55chars"
      },
      "likeStatus": "INDIFFERENT",
      "thumbnails": None
    }
  ]
}

# (async) getLibraryUploadArtist(browseIdopt, limitopt)

Returns a list of uploaded tracks for the artist.
Parameters:
Name Type Attributes Default Description
browseId string <optional>
Browse id of the upload artist, i.e. from `get_library_upload_songs`.
limit number <optional>
25 Number of songs to return (increments of 25).
Example
[
  {
    "entityId": "t_po_CICr2crg7OWpchDKwoakAQ",
    "videoId": "Dtffhy8WJgw",
    "title": "Hold Me (Original Mix)",
    "artists": [
      {
        "name": "Jakko",
        "id": "FEmusic_library_privately_owned_artist_detaila_po_CICr2crg7OWpchIFamFra28"
      }
    ],
    "album": null,
    "likeStatus": "LIKE",
    "thumbnails": [...]
  }
]

# (async) uploadSong(filepath)

Uploads a song to YouTube Music.
Parameters:
Name Type Description
filepath Path to the music file (mp3, m4a, wma, flac or ogg).
Returns:
Status String or full response.