tried multithreading, not worth it at the current point

This commit is contained in:
Hellow2
2023-05-26 09:00:02 +02:00
parent 6caa6a28a6
commit e996bd4e4f
5 changed files with 61 additions and 21 deletions

View File

@@ -103,3 +103,5 @@ SORT_BY_DATE = AUDIO_SECTION.SORT_BY_DATE.object_from_value
SORT_BY_ALBUM_TYPE = AUDIO_SECTION.SORT_BY_ALBUM_TYPE.object_from_value
ALBUM_TYPE_BLACKLIST: Set[AlbumType] = set(AUDIO_SECTION.ALBUM_TYPE_BLACKLIST.object_from_value)
THREADED = False

View File

@@ -1,3 +1,4 @@
from .default_target import DefaultTarget
from .download_result import DownloadResult
from .query import Query
from .thread_classes import EndThread, FinishedSearch

View File

@@ -0,0 +1,12 @@
class EndThread:
_has_ended: bool = False
def __bool__(self):
return self._has_ended
def exit(self):
self._has_ended
class FinishedSearch:
pass