[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdeextragear-1/amarok/src/scripts/shouter
From:       Jakub Stachowski <qbast () go2 ! pl>
Date:       2005-04-29 15:33:52
Message-ID: 20050429153352.836CE629 () office ! kde ! org
[Download RAW message or body]

CVS commit by qbast: 

If there is no id3v2 header at beginning of the file, assume 0 offset for
data instead of some random value.


  M +2 -0      binfuncs.py   1.6


--- kdeextragear-1/amarok/src/scripts/shouter/binfuncs.py  #1.5:1.6
@@ -5,4 +5,6 @@
 
     f = open(fname, 'r')
+    id3 = f.read(3)
+    if not id3=="ID3": return 0
     f.seek(6)
     l = f.read(4)


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic