# Copyright 2024 (c) Anna Schumaker. """Our ListenBrainz custom GObject.""" from gi.repository import GObject from . import thread from . import task class ListenBrainz(GObject.GObject): """Our main ListenBrainz GObject.""" def __init__(self): """Initialize the ListenBrainz GObject.""" super().__init__() self._queue = task.Queue() self._thread = thread.Thread() def stop(self) -> None: """Stop the ListenBrainz thread.""" self._thread.stop()