# Path: operators/pylrc/tools/timecode.py
# def unpack_timecode(timecode):
#     """unpacks a timecode to minutes, seconds, and milliseconds"""
#     timecode = timecode.replace('<', '[').replace('>', ']')
#     x = datetime.strptime(timecode, '[%M:%S.%f]')
# 
#     minutes = x.minute
#     seconds = x.second
#     milliseconds = int(x.microsecond / 1000)
#     return minutes, seconds, milliseconds


from .tools.timecode import unpack_timecode
import re

class LyricLine():
    """An object that holds a lyric line and it's time"""

    def __init__(self, timecode, text=""):
        self.hours = 0

# Path: operators/pylrc/tools/timecode.py
# def unpack_timecode(timecode):
#     """unpacks a timecode to minutes, seconds, and milliseconds"""
#     timecode = timecode.replace('<', '[').replace('>', ']')
#     x = datetime.strptime(timecode, '[%M:%S.%f]')
# 
#     minutes = x.minute
#     seconds = x.second
#     milliseconds = int(x.microsecond / 1000)
#     return minutes, seconds, milliseconds


# Path: operators/pylrc/lyricline.py
from .tools.timecode import unpack_timecode
import re


class LyricLine():
    """An object that holds a lyric line and it's time"""

    def __init__(self, timecode, text=""):
        self.hours = 0

        self.minutes, self.seconds, self.milliseconds = unpack_timecode(timecode)