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