def submit_isrcs(recordings_isrcs): """Submit ISRCs. Submits a set of {recording-id: [isrc1, isrc2, ...]} Must call auth(user, pass) first""" query = mbxml.make_isrc_request(recordings_isrcs=recordings_isrcs) return _do_mb_post("recording", query)
def submit_isrcs(recordings_isrcs): """ Submit ISRCs. Submits a set of {recording-id: [isrc1, irc1]} Must call auth(user, pass) first """ query = mbxml.make_isrc_request(recordings_isrcs=recordings_isrcs) return _do_mb_post("recording", query)
def submit_isrcs(recording_isrcs): """Submit ISRCs. Submits a set of {recording-id1: [isrc1, ...], ...} or {recording_id1: isrc, ...}. """ rec2isrcs = dict() for (rec, isrcs) in recording_isrcs.items(): rec2isrcs[rec] = isrcs if isinstance(isrcs, list) else [isrcs] query = mbxml.make_isrc_request(rec2isrcs) return _do_mb_post("recording", query)