예제 #1
0
 def __init__(self):
     self.nn = newznab.NewzNab()
     self.score = searchresults.Score()
     self.sql = sqldb.SQL()
     self.predb = predb.PreDB()
     self.snatcher = snatcher.Snatcher()
     self.torrent = torrent.Torrent()
     self.update = library.Status()
예제 #2
0
import datetime
import logging
import PTN
import re

import core
from core import searchresults, snatcher, proxy
from core.library import Manage
from core.providers import torrent, newznab
from core.rss import predb
from stringscore import liquidmetal as lm

logging = logging.getLogger(__name__)

nn = newznab.NewzNab()
torrent = torrent.Torrent()


def _t_search_grab(movie):
    ''' Run verify/search/snatch chain
    movie (dict): movie to run search for

    Meant to be executed *IN ITS OWN THREAD* after adding a movie from user-input (ie api, search)
        so the main thread is not tied up.

    Does not return
    '''
    logging.info('Executing automatic search/grab for {}.'.format(
        movie['title']))

    if core.CONFIG['Search']['verifyreleases'] == 'predb':
예제 #3
0
 def __init__(self):
     self.nn = newznab.NewzNab()
     self.score = searchresults.Score()
     self.predb = predb.PreDB()
     self.snatcher = snatcher.Snatcher()
     self.torrent = torrent.Torrent()