# Path: compmusic/log.py



import musicbrainzngs as mb
import requests
import time
import xml.etree.ElementTree as etree
from requests.adapters import HTTPAdapter
from compmusic.log import log


mb.set_useragent("Dunya", "0.1")
mb.set_rate_limit(False)
mb.set_hostname("musicbrainz.sb.upf.edu")

MUSICBRAINZ_COLLECTION_CARNATIC = ""
MUSICBRAINZ_COLLECTION_HINDUSTANI = ""
MUSICBRAINZ_COLLECTION_MAKAM = ""

headers = {"User-Agent": "Dunya/0.1 python-musicbrainzngs"}

requests_session = requests.Session()
requests_session.mount('https://musicbrainz.org', HTTPAdapter(max_retries=5))

def ws_ids(xml):
    ids = []
    tree = etree.fromstring(xml)
    count = int(list(list(tree)[0])[2].attrib["count"])
    for rel in list(list(list(tree)[0])[2]):
        ids.append(rel.attrib["id"])
    return (count, ids)


def _get_items_in_collection(collectionid, collectiontype):
    items = []
    count = 25
    offset = 0
    while offset < count:
        try:

# Path: compmusic/log.py



# Path: compmusic/musicbrainz.py
import musicbrainzngs as mb
import requests
import time
import xml.etree.ElementTree as etree
from requests.adapters import HTTPAdapter
from compmusic.log import log



mb.set_useragent("Dunya", "0.1")
mb.set_rate_limit(False)
mb.set_hostname("musicbrainz.sb.upf.edu")

MUSICBRAINZ_COLLECTION_CARNATIC = ""
MUSICBRAINZ_COLLECTION_HINDUSTANI = ""
MUSICBRAINZ_COLLECTION_MAKAM = ""

headers = {"User-Agent": "Dunya/0.1 python-musicbrainzngs"}

requests_session = requests.Session()
requests_session.mount('https://musicbrainz.org', HTTPAdapter(max_retries=5))

def ws_ids(xml):
    ids = []
    tree = etree.fromstring(xml)
    count = int(list(list(tree)[0])[2].attrib["count"])
    for rel in list(list(list(tree)[0])[2]):
        ids.append(rel.attrib["id"])
    return (count, ids)


def _get_items_in_collection(collectionid, collectiontype):
    items = []
    count = 25
    offset = 0
    while offset < count:
        try:

            log.debug("offset", offset)