mirror of
https://github.com/moparisthebest/SickRage
synced 2024-12-13 11:32:20 -05:00
Fix to have thread name include type of search
This commit is contained in:
parent
e3bf97285c
commit
dc56e774b6
@ -104,7 +104,7 @@ class ManualSearchQueueItem(generic_queue.QueueItem):
|
|||||||
providers = [x for x in sickbeard.providers.sortedProviderList() if x.isActive()]
|
providers = [x for x in sickbeard.providers.sortedProviderList() if x.isActive()]
|
||||||
try:
|
try:
|
||||||
for provider in providers:
|
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
|
threading.currentThread().name = thread_name
|
||||||
|
|
||||||
logger.log("Beginning manual search for [" + self.ep_obj.prettyName() + "]")
|
logger.log("Beginning manual search for [" + self.ep_obj.prettyName() + "]")
|
||||||
@ -192,7 +192,7 @@ class BacklogQueueItem(generic_queue.QueueItem):
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
for provider in providers:
|
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
|
threading.currentThread().name = thread_name
|
||||||
|
|
||||||
logger.log("Beginning backlog search for episodes from [" + self.show.name + "] - Season[" + str(self.segment) + "]")
|
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:
|
try:
|
||||||
for provider in providers:
|
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
|
threading.currentThread().name = thread_name
|
||||||
|
|
||||||
logger.log(
|
logger.log(
|
||||||
|
Loading…
Reference in New Issue
Block a user