MythTV  master
Functions | Variables
musicbrainzngs.mbxml Namespace Reference


def fixtag (tag, namespaces)
def get_error_message (error)
def make_artist_credit (artists)
def parse_elements (valid_els, inner_els, element)
def parse_attributes (attributes, element)
def parse_message (message)
def parse_response_message (message)
def parse_collection_list (cl)
def parse_collection (collection)
def parse_annotation_list (al)
def parse_annotation (annotation)
def parse_lifespan (lifespan)
def parse_area_list (al)
def parse_area (area)
def parse_artist_list (al)
def parse_artist (artist)
def parse_coordinates (c)
def parse_place_list (pl)
def parse_place (place)
def parse_event_list (el)
def parse_event (event)
def parse_instrument (instrument)
def parse_label_list (ll)
def parse_label (label)
def parse_relation_target (tgt)
def parse_relation_list (rl)
def parse_relation (relation)
def parse_release (release)
def parse_medium_list (ml)
def parse_release_event_list (rel)
def parse_release_event (event)
def parse_medium (medium)
def parse_disc_list (dl)
def parse_text_representation (textr)
def parse_release_group (rg)
def parse_recording (recording)
def parse_series_list (sl)
def parse_series (series)
def parse_external_id_list (pl)
def parse_element_list (el)
def parse_work_list (wl)
def parse_work (work)
def parse_work_attribute_list (wal)
def parse_work_attribute (wa)
def parse_url_list (ul)
def parse_url (url)
def parse_disc (disc)
def parse_cdstub (cdstub)
def parse_offset_list (ol)
def parse_instrument_list (rl)
def parse_release_list (rl)
def parse_release_group_list (rgl)
def parse_isrc (isrc)
def parse_recording_list (recs)
def parse_artist_credit (ac)
def parse_name_credit (nc)
def parse_label_info_list (lil)
def parse_label_info (li)
def parse_track_list (tl)
def parse_track (track)
def parse_tag_list (tl)
def parse_tag (tag)
def parse_rating (rating)
def parse_alias_list (al)
def parse_alias (alias)
def parse_caa (caa_element)
def make_barcode_request (release2barcode)
def make_tag_request (**kwargs)
def make_rating_request (**kwargs)
def make_isrc_request (recording2isrcs)


dictionary NS_MAP
 _log = logging.getLogger("musicbrainzngs")

Function Documentation

◆ fixtag()

def musicbrainzngs.mbxml.fixtag (   tag,

◆ get_error_message()

def musicbrainzngs.mbxml.get_error_message (   error)
Given an error XML message from the webservice containing
<error><text>x</text><text>y</text></error>, return a list
of [x, y]

Definition at line 39 of file

◆ make_artist_credit()

def musicbrainzngs.mbxml.make_artist_credit (   artists)

◆ parse_elements()

def musicbrainzngs.mbxml.parse_elements (   valid_els,
Extract single level subelements from an element.
    For example, given the element:
    and a list valid_els that contains "subelement",
    return a dict {'subelement': 'Text'}

    Delegate the parsing of multi-level subelements to another function.
    For example, given the element:
    and a dictionary {'subelement': parse_subelement},
    call parse_subelement(<subelement>) and
    return a dict {'subelement': <result>}
    if parse_subelement returns a tuple of the form
    ('subelement-key', <result>) then return a dict
    {'subelement-key': <result>} instead

Definition at line 67 of file

Referenced by musicbrainzngs.mbxml.parse_annotation(), musicbrainzngs.mbxml.parse_area(), musicbrainzngs.mbxml.parse_artist(), musicbrainzngs.mbxml.parse_caa(), musicbrainzngs.mbxml.parse_cdstub(), musicbrainzngs.mbxml.parse_collection(), musicbrainzngs.mbxml.parse_coordinates(), musicbrainzngs.mbxml.parse_disc(), musicbrainzngs.mbxml.parse_event(), musicbrainzngs.mbxml.parse_instrument(), musicbrainzngs.mbxml.parse_isrc(), musicbrainzngs.mbxml.parse_label(), musicbrainzngs.mbxml.parse_label_info(), musicbrainzngs.mbxml.parse_lifespan(), musicbrainzngs.mbxml.parse_medium(), musicbrainzngs.mbxml.parse_message(), musicbrainzngs.mbxml.parse_name_credit(), musicbrainzngs.mbxml.parse_place(), musicbrainzngs.mbxml.parse_recording(), musicbrainzngs.mbxml.parse_relation(), musicbrainzngs.mbxml.parse_release(), musicbrainzngs.mbxml.parse_release_event(), musicbrainzngs.mbxml.parse_release_group(), musicbrainzngs.mbxml.parse_response_message(), musicbrainzngs.mbxml.parse_series(), musicbrainzngs.mbxml.parse_tag(), musicbrainzngs.mbxml.parse_text_representation(), musicbrainzngs.mbxml.parse_track(), musicbrainzngs.mbxml.parse_url(), and musicbrainzngs.mbxml.parse_work().

◆ parse_attributes()

def musicbrainzngs.mbxml.parse_attributes (   attributes,

◆ parse_message()

def musicbrainzngs.mbxml.parse_message (   message)

Definition at line 132 of file

◆ parse_response_message()

def musicbrainzngs.mbxml.parse_response_message (   message)

Definition at line 175 of file

◆ parse_collection_list()

def musicbrainzngs.mbxml.parse_collection_list (   cl)

Definition at line 178 of file

◆ parse_collection()

def musicbrainzngs.mbxml.parse_collection (   collection)

Definition at line 181 of file

Referenced by musicbrainzngs.mbxml.parse_collection_list().

◆ parse_annotation_list()

def musicbrainzngs.mbxml.parse_annotation_list (   al)

Definition at line 192 of file

◆ parse_annotation()

def musicbrainzngs.mbxml.parse_annotation (   annotation)

Definition at line 195 of file

Referenced by musicbrainzngs.mbxml.parse_annotation_list().

◆ parse_lifespan()

def musicbrainzngs.mbxml.parse_lifespan (   lifespan)

Definition at line 203 of file

◆ parse_area_list()

def musicbrainzngs.mbxml.parse_area_list (   al)

Definition at line 208 of file

◆ parse_area()

def musicbrainzngs.mbxml.parse_area (   area)

Definition at line 211 of file

Referenced by musicbrainzngs.mbxml.parse_area_list().

◆ parse_artist_list()

def musicbrainzngs.mbxml.parse_artist_list (   al)

Definition at line 228 of file

◆ parse_artist()

def musicbrainzngs.mbxml.parse_artist (   artist)

Definition at line 231 of file

Referenced by musicbrainzngs.mbxml.parse_artist_list().

◆ parse_coordinates()

def musicbrainzngs.mbxml.parse_coordinates (   c)

Definition at line 258 of file

◆ parse_place_list()

def musicbrainzngs.mbxml.parse_place_list (   pl)

Definition at line 261 of file

◆ parse_place()

def musicbrainzngs.mbxml.parse_place (   place)

Definition at line 264 of file

Referenced by musicbrainzngs.mbxml.parse_place_list().

◆ parse_event_list()

def musicbrainzngs.mbxml.parse_event_list (   el)

Definition at line 283 of file

◆ parse_event()

def musicbrainzngs.mbxml.parse_event (   event)

Definition at line 286 of file

Referenced by musicbrainzngs.mbxml.parse_event_list().

◆ parse_instrument()

def musicbrainzngs.mbxml.parse_instrument (   instrument)

Definition at line 298 of file

Referenced by musicbrainzngs.mbxml.parse_instrument_list().

◆ parse_label_list()

def musicbrainzngs.mbxml.parse_label_list (   ll)

Definition at line 311 of file

◆ parse_label()

def musicbrainzngs.mbxml.parse_label (   label)

Definition at line 314 of file

Referenced by musicbrainzngs.mbxml.parse_label_list().

◆ parse_relation_target()

def musicbrainzngs.mbxml.parse_relation_target (   tgt)

Definition at line 335 of file

◆ parse_relation_list()

def musicbrainzngs.mbxml.parse_relation_list (   rl)

Definition at line 342 of file

◆ parse_relation()

def musicbrainzngs.mbxml.parse_relation (   relation)

Definition at line 348 of file

Referenced by musicbrainzngs.mbxml.parse_relation_list().

◆ parse_release()

def musicbrainzngs.mbxml.parse_release (   release)

Definition at line 371 of file

Referenced by musicbrainzngs.mbxml.parse_release_list().

◆ parse_medium_list()

def musicbrainzngs.mbxml.parse_medium_list (   ml)

Definition at line 396 of file

◆ parse_release_event_list()

def musicbrainzngs.mbxml.parse_release_event_list (   rel)

Definition at line 399 of file

◆ parse_release_event()

def musicbrainzngs.mbxml.parse_release_event (   event)

Definition at line 402 of file

Referenced by musicbrainzngs.mbxml.parse_release_event_list().

◆ parse_medium()

def musicbrainzngs.mbxml.parse_medium (   medium)

Definition at line 410 of file

Referenced by musicbrainzngs.mbxml.parse_medium_list().

◆ parse_disc_list()

def musicbrainzngs.mbxml.parse_disc_list (   dl)

Definition at line 421 of file

◆ parse_text_representation()

def musicbrainzngs.mbxml.parse_text_representation (   textr)

Definition at line 424 of file

◆ parse_release_group()

def musicbrainzngs.mbxml.parse_release_group (   rg)

Definition at line 427 of file

Referenced by musicbrainzngs.mbxml.parse_release_group_list().

◆ parse_recording()

def musicbrainzngs.mbxml.parse_recording (   recording)

Definition at line 448 of file

Referenced by musicbrainzngs.mbxml.parse_recording_list().

◆ parse_series_list()

def musicbrainzngs.mbxml.parse_series_list (   sl)

Definition at line 469 of file

◆ parse_series()

def musicbrainzngs.mbxml.parse_series (   series)

Definition at line 472 of file

Referenced by musicbrainzngs.mbxml.parse_series_list().

◆ parse_external_id_list()

def musicbrainzngs.mbxml.parse_external_id_list (   pl)

Definition at line 485 of file

◆ parse_element_list()

def musicbrainzngs.mbxml.parse_element_list (   el)

Definition at line 488 of file

◆ parse_work_list()

def musicbrainzngs.mbxml.parse_work_list (   wl)

Definition at line 491 of file

◆ parse_work()

def musicbrainzngs.mbxml.parse_work (   work)

Definition at line 494 of file

Referenced by musicbrainzngs.mbxml.parse_work_list().

◆ parse_work_attribute_list()

def musicbrainzngs.mbxml.parse_work_attribute_list (   wal)

Definition at line 513 of file

◆ parse_work_attribute()

def musicbrainzngs.mbxml.parse_work_attribute (   wa)

Definition at line 516 of file

Referenced by musicbrainzngs.mbxml.parse_work_attribute_list().

◆ parse_url_list()

def musicbrainzngs.mbxml.parse_url_list (   ul)

Definition at line 526 of file

◆ parse_url()

def musicbrainzngs.mbxml.parse_url (   url)

Definition at line 529 of file

Referenced by musicbrainzngs.mbxml.parse_url_list().

◆ parse_disc()

def musicbrainzngs.mbxml.parse_disc (   disc)

Definition at line 540 of file

Referenced by musicbrainzngs.mbxml.parse_disc_list().

◆ parse_cdstub()

def musicbrainzngs.mbxml.parse_cdstub (   cdstub)

Definition at line 553 of file

◆ parse_offset_list()

def musicbrainzngs.mbxml.parse_offset_list (   ol)

Definition at line 564 of file

◆ parse_instrument_list()

def musicbrainzngs.mbxml.parse_instrument_list (   rl)

Definition at line 567 of file

◆ parse_release_list()

def musicbrainzngs.mbxml.parse_release_list (   rl)

Definition at line 573 of file

◆ parse_release_group_list()

def musicbrainzngs.mbxml.parse_release_group_list (   rgl)

Definition at line 579 of file

◆ parse_isrc()

def musicbrainzngs.mbxml.parse_isrc (   isrc)

Definition at line 585 of file

◆ parse_recording_list()

def musicbrainzngs.mbxml.parse_recording_list (   recs)

Definition at line 595 of file

◆ parse_artist_credit()

def musicbrainzngs.mbxml.parse_artist_credit (   ac)

Definition at line 601 of file

◆ parse_name_credit()

def musicbrainzngs.mbxml.parse_name_credit (   nc)

Definition at line 610 of file

Referenced by musicbrainzngs.mbxml.parse_artist_credit().

◆ parse_label_info_list()

def musicbrainzngs.mbxml.parse_label_info_list (   lil)

Definition at line 619 of file

◆ parse_label_info()

def musicbrainzngs.mbxml.parse_label_info (   li)

Definition at line 626 of file

Referenced by musicbrainzngs.mbxml.parse_label_info_list().

◆ parse_track_list()

def musicbrainzngs.mbxml.parse_track_list (   tl)

Definition at line 634 of file

◆ parse_track()

def musicbrainzngs.mbxml.parse_track (   track)

Definition at line 640 of file

Referenced by musicbrainzngs.mbxml.parse_track_list().

◆ parse_tag_list()

def musicbrainzngs.mbxml.parse_tag_list (   tl)

Definition at line 663 of file

◆ parse_tag()

def musicbrainzngs.mbxml.parse_tag (   tag)

Definition at line 666 of file

Referenced by musicbrainzngs.mbxml.parse_tag_list().

◆ parse_rating()

def musicbrainzngs.mbxml.parse_rating (   rating)

Definition at line 676 of file

◆ parse_alias_list()

def musicbrainzngs.mbxml.parse_alias_list (   al)

Definition at line 685 of file

◆ parse_alias()

def musicbrainzngs.mbxml.parse_alias (   alias)

Definition at line 688 of file

Referenced by musicbrainzngs.mbxml.parse_alias_list().

◆ parse_caa()

def musicbrainzngs.mbxml.parse_caa (   caa_element)

Definition at line 698 of file

◆ make_barcode_request()

def musicbrainzngs.mbxml.make_barcode_request (   release2barcode)

Definition at line 708 of file

◆ make_tag_request()

def musicbrainzngs.mbxml.make_tag_request ( **  kwargs)

Definition at line 720 of file

◆ make_rating_request()

def musicbrainzngs.mbxml.make_rating_request ( **  kwargs)

Definition at line 740 of file

◆ make_isrc_request()

def musicbrainzngs.mbxml.make_isrc_request (   recording2isrcs)

Definition at line 757 of file

Variable Documentation


dictionary musicbrainzngs.mbxml.NS_MAP
Initial value:
1 = {"": "ws2",
2  "": "ext"}

Definition at line 35 of file

◆ _log

musicbrainzngs.mbxml._log = logging.getLogger("musicbrainzngs")

Definition at line 37 of file