# Path: dunyadesktop_app/cultures/dunya/makam.py
# def get_recordings():
# def get_recording(rmbid):
# def get_artists():
# def get_artist(ambid):
# def get_composers():
# def get_composer(cmbid):
# def get_releases():
# def get_release(cmbid):
# def get_works():
# def get_work(wmbid):
# def get_instruments():
# def get_instrument(iid):
# def get_forms():
# def get_form(fid):
# def get_makams():
# def get_makam(mid):
# def get_usuls():
# def get_symbtrs():
# def get_symbtr(uuid):
# def get_usul(uid):
# def get_works_by_query(mid='', uid='', fid='', cmbid='', ambid=''):
# def download_mp3(recordingid, location, slugify=False):
# def download_release(releaseid, location, slugify=False):
# def slugify_tr(value):


from ..dunya import makam
from PyQt5.QtCore import QThread, QObject, pyqtSignal
            self.combobox_status[combobox_index] = 1
        else:
            self.combobox_status[combobox_index] = 2

    def run(self):
        self.recordings = []
        self.works = []
        check_list = [self.mid, self.fid, self.uid, self.cmbid, self.ambid]
        self.combobox_status = [0, 0, 0, 0, 0, 0]

        if self.check_selection():
            iteration = iter([self.mid, self.fid, self.uid,
                              self.cmbid, self.ambid])
            selection = next(i for i, s in enumerate(iteration) if s)

            if selection is 0:
                self.data = makam.get_makam(self.mid)
                self.recordings = [rec for rec in self.data['taksims']]
                self.recordings += [rec for rec in self.data['gazels']]
                self.check_attribute_existence(0)

            elif selection is 1:
                self.data = makam.get_form(self.fid)
                self.check_attribute_existence(1)

            elif selection is 2:
                self.data = makam.get_usul(self.uid)
                self.check_attribute_existence(2)

            elif selection is 3:

# Path: dunyadesktop_app/cultures/dunya/makam.py
# def get_recordings():
# def get_recording(rmbid):
# def get_artists():
# def get_artist(ambid):
# def get_composers():
# def get_composer(cmbid):
# def get_releases():
# def get_release(cmbid):
# def get_works():
# def get_work(wmbid):
# def get_instruments():
# def get_instrument(iid):
# def get_forms():
# def get_form(fid):
# def get_makams():
# def get_makam(mid):
# def get_usuls():
# def get_symbtrs():
# def get_symbtr(uuid):
# def get_usul(uid):
# def get_works_by_query(mid='', uid='', fid='', cmbid='', ambid=''):
# def download_mp3(recordingid, location, slugify=False):
# def download_release(releaseid, location, slugify=False):
# def slugify_tr(value):


# Path: dunyadesktop_app/cultures/makam/query.py
from ..dunya import makam
from PyQt5.QtCore import QThread, QObject, pyqtSignal

            self.combobox_status[combobox_index] = 1
        else:
            self.combobox_status[combobox_index] = 2

    def run(self):
        self.recordings = []
        self.works = []
        check_list = [self.mid, self.fid, self.uid, self.cmbid, self.ambid]
        self.combobox_status = [0, 0, 0, 0, 0, 0]

        if self.check_selection():
            iteration = iter([self.mid, self.fid, self.uid,
                              self.cmbid, self.ambid])
            selection = next(i for i, s in enumerate(iteration) if s)

            if selection is 0:
                self.data = makam.get_makam(self.mid)
                self.recordings = [rec for rec in self.data['taksims']]
                self.recordings += [rec for rec in self.data['gazels']]
                self.check_attribute_existence(0)

            elif selection is 1:
                self.data = makam.get_form(self.fid)
                self.check_attribute_existence(1)

            elif selection is 2:
                self.data = makam.get_usul(self.uid)
                self.check_attribute_existence(2)

            elif selection is 3:

                self.data = makam.get_composer(self.cmbid)