<filename>plaso/formatters/kodi.py<gh_stars>10-100
# -*- coding: utf-8 -*-
"""The Kodi MyVideos database event formatter."""

from __future__ import unicode_literals

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


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)

<filename>plaso/formatters/kodi.py<gh_stars>10-100
# -*- coding: utf-8 -*-
"""The Kodi MyVideos database event formatter."""

from __future__ import unicode_literals

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


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)

# -*- coding: utf-8 -*- The Kodi MyVideos database event formatter. Formatter for an Kodi Video event.