2014-05-15 04:16:46 +00:00
|
|
|
# Author: Nic Wolfe <nic@wolfeden.ca>
|
|
|
|
# URL: http://code.google.com/p/sickbeard/
|
|
|
|
#
|
2014-11-12 16:43:14 +00:00
|
|
|
# This file is part of SickGear.
|
2014-05-15 04:16:46 +00:00
|
|
|
#
|
2014-11-12 16:43:14 +00:00
|
|
|
# SickGear is free software: you can redistribute it and/or modify
|
2014-05-15 04:16:46 +00:00
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation, either version 3 of the License, or
|
|
|
|
# (at your option) any later version.
|
|
|
|
#
|
2014-11-12 16:43:14 +00:00
|
|
|
# SickGear is distributed in the hope that it will be useful,
|
2014-05-15 04:16:46 +00:00
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
2014-11-12 16:43:14 +00:00
|
|
|
# along with SickGear. If not, see <http://www.gnu.org/licenses/>.
|
2014-05-15 04:16:46 +00:00
|
|
|
|
|
|
|
from __future__ import with_statement
|
2014-05-26 20:16:07 +00:00
|
|
|
|
2014-05-15 04:16:46 +00:00
|
|
|
import threading
|
|
|
|
import sickbeard
|
2014-06-27 00:13:41 +00:00
|
|
|
|
2014-05-15 04:16:46 +00:00
|
|
|
|
2014-12-22 18:30:53 +00:00
|
|
|
class RecentSearcher():
|
2014-05-15 04:16:46 +00:00
|
|
|
def __init__(self):
|
|
|
|
self.lock = threading.Lock()
|
|
|
|
self.amActive = False
|
|
|
|
|
2015-02-28 16:17:04 +00:00
|
|
|
def run(self):
|
2014-05-19 17:40:25 +00:00
|
|
|
|
|
|
|
self.amActive = True
|
2014-05-18 15:33:31 +00:00
|
|
|
|
2014-12-22 18:30:53 +00:00
|
|
|
recentsearch_queue_item = sickbeard.search_queue.RecentSearchQueueItem()
|
|
|
|
sickbeard.searchQueueScheduler.action.add_item(recentsearch_queue_item)
|
2014-06-30 15:57:32 +00:00
|
|
|
|
2015-09-18 00:06:34 +00:00
|
|
|
self.amActive = False
|