From dc56e774b682f8c91012582b3095bb77148e5ec2 Mon Sep 17 00:00:00 2001 From: echel0n Date: Sun, 11 May 2014 08:14:31 -0700 Subject: [PATCH] Fix to have thread name include type of search --- sickbeard/search_queue.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sickbeard/search_queue.py b/sickbeard/search_queue.py index 1c978c28..2db17f26 100644 --- a/sickbeard/search_queue.py +++ b/sickbeard/search_queue.py @@ -104,7 +104,7 @@ class ManualSearchQueueItem(generic_queue.QueueItem): providers = [x for x in sickbeard.providers.sortedProviderList() if x.isActive()] try: for provider in providers: - thread_name = str(provider.name).upper() + '-' + str(self.show.indexerid) + thread_name = self.thread_name + str(provider.name).upper() threading.currentThread().name = thread_name logger.log("Beginning manual search for [" + self.ep_obj.prettyName() + "]") @@ -192,7 +192,7 @@ class BacklogQueueItem(generic_queue.QueueItem): try: for provider in providers: - thread_name = str(provider.name).upper() + '-' + str(self.show.indexerid) + thread_name = self.thread_name + str(provider.name).upper() threading.currentThread().name = thread_name logger.log("Beginning backlog search for episodes from [" + self.show.name + "] - Season[" + str(self.segment) + "]") @@ -272,7 +272,7 @@ class FailedQueueItem(generic_queue.QueueItem): try: for provider in providers: - thread_name = str(provider.name).upper() + '-' + str(self.show.indexerid) + thread_name = self.thread_name + str(provider.name).upper() threading.currentThread().name = thread_name logger.log(