Beispiel #1
0
#
# GuessIt is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# Lesser GNU General Public License for more details.
#
# You should have received a copy of the Lesser GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
#

from __future__ import unicode_literals
from guessit.transfo import SingleNodeGuesser
from guessit.patterns.properties import container
import logging

log = logging.getLogger(__name__)


def guess_properties(string):
    found = container.find_properties(string)
    return container.as_guess(found, string)

supported_properties = container.get_supported_properties()


priority = 35


def process(mtree):
    SingleNodeGuesser(guess_properties, 1.0, log).process(mtree)
Beispiel #2
0
 def supported_properties(self):
     return container.get_supported_properties()