Patch to the qt-faststart patch -- attempt to pass through if parse
[pyTivo/wmcbrine.git] / eyeD3 / __init__.py
blob8ec5820c59ccd8996d6ea749de74067e14d89af7
1 ################################################################################
2 # Copyright (C) 2002-2005,2007 Travis Shirk <travis@pobox.com>
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 2 of the License, or
7 # (at your option) any later version.
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software
16 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 ################################################################################
20 eyeD3Version = "@PACKAGE_VERSION@";
21 eyeD3Maintainer = "@PACKAGE_BUGREPORT@";
23 # Version constants
24 ID3_CURRENT_VERSION = 0x00; # The version of the linked tag, if any.
25 ID3_V1 = 0x10;
26 ID3_V1_0 = 0x11;
27 ID3_V1_1 = 0x12;
28 ID3_V2 = 0x20;
29 ID3_V2_2 = 0x21;
30 ID3_V2_3 = 0x22;
31 ID3_V2_4 = 0x24;
32 #ID3_V2_5 = 0x28; # This does not seem imminent.
33 ID3_DEFAULT_VERSION = ID3_V2_4;
34 ID3_ANY_VERSION = ID3_V1 | ID3_V2;
36 import locale;
37 LOCAL_ENCODING = locale.getpreferredencoding(do_setlocale=True);
38 if not LOCAL_ENCODING or LOCAL_ENCODING == "ANSI_X3.4-1968":
39 LOCAL_ENCODING = 'latin1';
41 import eyeD3.frames;
42 import eyeD3.mp3;
43 import eyeD3.tag;
44 from eyeD3.tag import *;
45 import eyeD3.utils;