예제 #1
0
파일: pages.py 프로젝트: rudykocur/VideoDB
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)
예제 #2
0
파일: pages.py 프로젝트: rudykocur/VideoDB
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)
예제 #3
0
파일: pages.py 프로젝트: rudykocur/VideoDB
def refresh_unidentified():
    Scheduler.rescanLibraries()
    return ''
예제 #4
0
파일: pages.py 프로젝트: rudykocur/VideoDB
def poolIdentifyQueue(queueId):
    movie = Scheduler.poolIdentifyQueue(queueId)
    
    return jsonify(movie=movie)
예제 #5
0
파일: pages.py 프로젝트: rudykocur/VideoDB
def cancelIdentifyQueue(queueId):
    Scheduler.cancelIdentifyQueue(queueId)
    return ''
예제 #6
0
파일: pages.py 프로젝트: rudykocur/VideoDB
def refresh_unidentified():
    Scheduler.rescanLibraries()
    return ''
예제 #7
0
파일: pages.py 프로젝트: rudykocur/VideoDB
def poolIdentifyQueue(queueId):
    movie = Scheduler.poolIdentifyQueue(queueId)

    return jsonify(movie=movie)
예제 #8
0
파일: pages.py 프로젝트: rudykocur/VideoDB
def cancelIdentifyQueue(queueId):
    Scheduler.cancelIdentifyQueue(queueId)
    return ''