fix guessit
This commit is contained in:
@@ -7,8 +7,6 @@ import os
|
|||||||
import re
|
import re
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
from lib.guessit import guessit
|
|
||||||
|
|
||||||
PY3 = False
|
PY3 = False
|
||||||
if sys.version_info[0] >= 3: PY3 = True; unicode = str; unichr = chr; long = int
|
if sys.version_info[0] >= 3: PY3 = True; unicode = str; unichr = chr; long = int
|
||||||
if PY3:
|
if PY3:
|
||||||
@@ -273,6 +271,7 @@ def scrapeBlock(item, args, block, patron, headers, action, pagination, debug, t
|
|||||||
longtitle = title + (s if title and title2 else '') + title2 + '\n'
|
longtitle = title + (s if title and title2 else '') + title2 + '\n'
|
||||||
|
|
||||||
if sceneTitle:
|
if sceneTitle:
|
||||||
|
from lib.guessit import guessit
|
||||||
parsedTitle = guessit(title)
|
parsedTitle = guessit(title)
|
||||||
title = longtitle = parsedTitle.get('title', '')
|
title = longtitle = parsedTitle.get('title', '')
|
||||||
log('TITOLO',title)
|
log('TITOLO',title)
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
"""
|
"""
|
||||||
Extracts as much information as possible from a video file.
|
Extracts as much information as possible from a video file.
|
||||||
"""
|
"""
|
||||||
from . import monkeypatch as _monkeypatch
|
import monkeypatch as _monkeypatch
|
||||||
|
|
||||||
from .api import guessit, GuessItApi
|
from .api import guessit, GuessItApi
|
||||||
from .options import ConfigurationException
|
from .options import ConfigurationException
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
"""
|
"""
|
||||||
Match processors
|
Match processors
|
||||||
"""
|
"""
|
||||||
from guessit.rules.common import seps
|
from common import seps
|
||||||
|
|
||||||
|
|
||||||
def strip(match, chars=seps):
|
def strip(match, chars=seps):
|
||||||
|
|||||||
Reference in New Issue
Block a user