# Path: external/metadata/audio/core.py
# AUDIOCORE = ['channels', 'samplerate', 'length', 'encoder', 'codec', 'format',
#              'samplebits', 'bitrate', 'fourcc', 'trackno', 'id', 'userdate',
#              'enabled', 'default', 'codec_private' ]
# MUSICCORE = ['trackof', 'album', 'genre', 'discs', 'thumbnail' ]
# class Audio(Media):
# class Music(Audio):
#     def _finalize(self):


import struct
import uuid
import string
import logging
from . import core
from ..audio import core as audiocore
# WITHOUT ANY WARRANTY; without even the implied warranty of MER-
# CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
# Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
# -----------------------------------------------------------------------------

__all__ = ['Parser']

# python imports

# import kaa.metadata.video core
# import kaa.metadata.audio for asf files without video stream

# get logging object
log = logging.getLogger('metadata')

def _guid(input):
    u = uuid.UUID(input)
    return u.fields[:-1] + (struct.pack('>q', u.node)[2:],)

GUIDS = {
    'ASF_Header_Object' : _guid('75B22630-668E-11CF-A6D9-00AA0062CE6C'),
    'ASF_Data_Object' : _guid('75B22636-668E-11CF-A6D9-00AA0062CE6C'),
    'ASF_Simple_Index_Object' : _guid('33000890-E5B1-11CF-89F4-00A0C90349CB'),
    'ASF_Index_Object' : _guid('D6E229D3-35DA-11D1-9034-00A0C90349BE'),
    'ASF_Media_Object_Index_Object' : _guid('FEB103F8-12AD-4C64-840F-2A1D2F7AD48C'),

# Path: external/metadata/audio/core.py
# AUDIOCORE = ['channels', 'samplerate', 'length', 'encoder', 'codec', 'format',
#              'samplebits', 'bitrate', 'fourcc', 'trackno', 'id', 'userdate',
#              'enabled', 'default', 'codec_private' ]
# MUSICCORE = ['trackof', 'album', 'genre', 'discs', 'thumbnail' ]
# class Audio(Media):
# class Music(Audio):
#     def _finalize(self):


# Path: external/metadata/video/asf.py
import struct
import uuid
import string
import logging
from . import core
from ..audio import core as audiocore

# WITHOUT ANY WARRANTY; without even the implied warranty of MER-
# CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
# Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
# -----------------------------------------------------------------------------

__all__ = ['Parser']

# python imports

# import kaa.metadata.video core
# import kaa.metadata.audio for asf files without video stream

# get logging object
log = logging.getLogger('metadata')

def _guid(input):
    u = uuid.UUID(input)
    return u.fields[:-1] + (struct.pack('>q', u.node)[2:],)

GUIDS = {
    'ASF_Header_Object' : _guid('75B22630-668E-11CF-A6D9-00AA0062CE6C'),
    'ASF_Data_Object' : _guid('75B22636-668E-11CF-A6D9-00AA0062CE6C'),
    'ASF_Simple_Index_Object' : _guid('33000890-E5B1-11CF-89F4-00A0C90349CB'),
    'ASF_Index_Object' : _guid('D6E229D3-35DA-11D1-9034-00A0C90349BE'),
    'ASF_Media_Object_Index_Object' : _guid('FEB103F8-12AD-4C64-840F-2A1D2F7AD48C'),

    'ASF_Timecode_Index_Object' : _guid('3CB73FD0-0C4A-4803-953D-EDF7B6228F0C'),