Source code for plaso.formatters.kodi

# -*- coding: utf-8 -*-
"""The Kodi MyVideos database event formatter."""

from __future__ import unicode_literals

from plaso.formatters import interface
from plaso.formatters import manager


[docs]class KodiFormatter(interface.ConditionalEventFormatter): """Formatter for an Kodi Video event.""" DATA_TYPE = 'kodi:videos:viewing' FORMAT_STRING_PIECES = [ 'Video: {filename}', 'Play Count: {play_count}'] FORMAT_STRING_SHORT_PIECES = ['{filename}'] SOURCE_LONG = 'Kodi Video Viewed'
SOURCE_SHORT = 'KODI' manager.FormattersManager.RegisterFormatter(KodiFormatter)