|
|
|
@ -108,13 +108,13 @@ def uploadLibrary(mudbase_api, songs): |
|
|
|
|
tagIds.append(genreTagId) |
|
|
|
|
_song = { |
|
|
|
|
'title': song['title'], |
|
|
|
|
'artistIds': [ artistId ] if artistId else [], |
|
|
|
|
'albumIds': [ albumId ] if albumId else [], |
|
|
|
|
'artistIds': [ artistId ] if artistId != None else [], |
|
|
|
|
'albumIds': [ albumId ] if albumId != None else [], |
|
|
|
|
'tagIds': tagIds, |
|
|
|
|
'storeLinks': [ 'https://play.google.com/music/m/' + id for id in getSongStoreIds(song) ], |
|
|
|
|
} |
|
|
|
|
response = requests.post(mudbase_api + '/song', json = song).json() |
|
|
|
|
print(f"Created song \"{song['title']}\" with artist ID {artistId}, response: {response}") |
|
|
|
|
response = requests.post(mudbase_api + '/song', json = _song).json() |
|
|
|
|
print(f"Created song \"{song['title']}\" with artist ID {artistId}, album ID {albumId}, response: {response}") |
|
|
|
|
|
|
|
|
|
def getData(api): |
|
|
|
|
return { |
|
|
|
|