def identify_movie(movieId): customName = request.args.get('customName', None) print 'MOVIE', movieId, '::', repr(customName) movie = Movie.query.get(int(movieId)) print 'identify_movie:', movie identifyName = customName or imdb_utils.sanitizeFilename(movie.path) queueId, resultCount = Scheduler.findByFilename(identifyName) return jsonify(name=identifyName, path=movie.path, queueId=queueId, resultCount=resultCount, movieId=movieId)
def refresh_unidentified(): Scheduler.rescanLibraries() return ''
def poolIdentifyQueue(queueId): movie = Scheduler.poolIdentifyQueue(queueId) return jsonify(movie=movie)
def cancelIdentifyQueue(queueId): Scheduler.cancelIdentifyQueue(queueId) return ''