mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-21 22:03:13 -07:00
More lib fixes
This commit is contained in:
parent
33754b8d1e
commit
67e35cd4e4
1 changed files with 6 additions and 6 deletions
|
@ -71,10 +71,10 @@ else:
|
||||||
return x.encode('hex')
|
return x.encode('hex')
|
||||||
|
|
||||||
|
|
||||||
from lib.guessit.guess import Guess, merge_all
|
from guessit.guess import Guess, merge_all
|
||||||
from lib.guessit.language import Language
|
from guessit.language import Language
|
||||||
from lib.guessit.matcher import IterativeMatcher
|
from guessit.matcher import IterativeMatcher
|
||||||
from lib.guessit.textutils import clean_string
|
from guessit.textutils import clean_string
|
||||||
import logging
|
import logging
|
||||||
import json
|
import json
|
||||||
|
|
||||||
|
@ -219,7 +219,7 @@ def guess_file_info(filename, filetype, info=None):
|
||||||
result.append(_guess_filename(filename, filetype))
|
result.append(_guess_filename(filename, filetype))
|
||||||
|
|
||||||
elif infotype == 'hash_mpc':
|
elif infotype == 'hash_mpc':
|
||||||
from lib.guessit.hash_mpc import hash_file
|
from guessit.hash_mpc import hash_file
|
||||||
try:
|
try:
|
||||||
result.append(Guess({'hash_mpc': hash_file(filename)},
|
result.append(Guess({'hash_mpc': hash_file(filename)},
|
||||||
confidence=1.0))
|
confidence=1.0))
|
||||||
|
@ -227,7 +227,7 @@ def guess_file_info(filename, filetype, info=None):
|
||||||
log.warning('Could not compute MPC-style hash because: %s' % e)
|
log.warning('Could not compute MPC-style hash because: %s' % e)
|
||||||
|
|
||||||
elif infotype == 'hash_ed2k':
|
elif infotype == 'hash_ed2k':
|
||||||
from lib.guessit.hash_ed2k import hash_file
|
from guessit.hash_ed2k import hash_file
|
||||||
try:
|
try:
|
||||||
result.append(Guess({'hash_ed2k': hash_file(filename)},
|
result.append(Guess({'hash_ed2k': hash_file(filename)},
|
||||||
confidence=1.0))
|
confidence=1.0))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue