Author: dmeyer Date: Thu Dec 7 20:24:48 2006 New Revision: 2177 Modified: trunk/metadata/src/video/asfinfo.py
Log: fix mime type Modified: trunk/metadata/src/video/asfinfo.py ============================================================================== --- trunk/metadata/src/video/asfinfo.py (original) +++ trunk/metadata/src/video/asfinfo.py Thu Dec 7 20:24:48 2006 @@ -4,8 +4,7 @@ # ----------------------------------------------------------------------------- # $Id$ # -# See http://www.thozie.de/dnn/AVIMaster.aspx?PageContentID=4 -# and http://download.microsoft.com/download/e/0/6/e06db390-1e2a-4978-\ +# See http://download.microsoft.com/download/e/0/6/e06db390-1e2a-4978-\ # 82bb-311810d8a28d/ASF_Specification.doc # # ----------------------------------------------------------------------------- @@ -141,11 +140,10 @@ class AsfInfo(mediainfo.AVInfo): - def __init__(self,file): + def __init__(self, file): mediainfo.AVInfo.__init__(self) - self.context = 'video' - self.mime = 'video/asf' - self.type = 'asf video' + self.mime = 'video/x-ms-asf' + self.type = 'asf format' h = file.read(30) if len(h) < 30: @@ -167,11 +165,6 @@ header = header[h[1]:] - def _printguid(self,guid): - r = "%.8X-%.4X-%.4X-%.2X%.2X-%s" % guid - return r - - def _parseguid(self,string): return struct.unpack('<IHHBB6s', string[:16]) @@ -377,8 +370,8 @@ log.debug("Unparsed %s [%d]" % (h,objsize)) break else: - log.debug("unknown: %s [%d]" % \ - (self._printguid(guid), objsize)) + r = "%.8X-%.4X-%.4X-%.2X%.2X-%s" % guid + log.debug("unknown: %s [%d]" % (r, objsize)) return r ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Freevo-cvslog mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/freevo-cvslog
