# Path: coverart_utils.py
# def idle_iterator(func):
#     def iter_function(obj, iterator, **data):
#         idle_call = IdleCallIterator(*func(obj))
# 
#         idle_call(iterator, **data)
# 
#         return idle_call
# 
#     return iter_function


import urllib.parse
import json
import os
import random
import rb
from gi.repository import RB
from gi.repository import Gtk
from coverart_utils import idle_iterator
            self.add_tracks_to_source()
            return

        search_artist = urllib.parse.quote(artist.encode("utf8"))
        if search_artist in self.played_artist:
            print("we have already searched for that artist")
            return

        self.search_entry = seed_entry
        self.played_artist[search_artist] = True

        self.playlist_started = True
        self._running = False
        self._start_process()

    def _start_process(self):
        if not self._running:
            self._running = True
            self.search_website()

    def search_website(self):
        pass

    def _clear_next(self):
        self.search_artists = ""
        self._running = False

    @idle_iterator
    def _load_albums(self):
        def process(row, data):

# Path: coverart_utils.py
# def idle_iterator(func):
#     def iter_function(obj, iterator, **data):
#         idle_call = IdleCallIterator(*func(obj))
# 
#         idle_call(iterator, **data)
# 
#         return idle_call
# 
#     return iter_function


# Path: coverart_playlists.py
import urllib.parse
import json
import os
import random
import rb
from gi.repository import RB
from gi.repository import Gtk
from coverart_utils import idle_iterator

            self.add_tracks_to_source()
            return

        search_artist = urllib.parse.quote(artist.encode("utf8"))
        if search_artist in self.played_artist:
            print("we have already searched for that artist")
            return

        self.search_entry = seed_entry
        self.played_artist[search_artist] = True

        self.playlist_started = True
        self._running = False
        self._start_process()

    def _start_process(self):
        if not self._running:
            self._running = True
            self.search_website()

    def search_website(self):
        pass

    def _clear_next(self):
        self.search_artists = ""
        self._running = False

    @idle_iterator
    def _load_albums(self):
        def process(row, data):

            entry = data['model'][row.path][0]