mirror of
https://github.com/KevinMidboe/spotify-downloader.git
synced 2025-10-29 18:00:15 +00:00
CLI optimizations
This commit is contained in:
@@ -29,14 +29,16 @@ class ThreadWithReturnValue(threading.Thread):
|
||||
def __init__(self, target=lambda: None, args=()):
|
||||
super().__init__(target=target, args=args)
|
||||
self._return = None
|
||||
|
||||
def run(self):
|
||||
if self._target is not None:
|
||||
self._return = self._target(
|
||||
*self._args,
|
||||
**self._kwargs
|
||||
)
|
||||
def join(self, *args):
|
||||
super().join(*args)
|
||||
|
||||
def join(self, *args, **kwargs):
|
||||
super().join(*args, **kwargs)
|
||||
return self._return
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user