root/eyeD3/__init__.py

Revision 6ab8361a61197bb0a951e5f77d4d1c5c25a9702f, 1.7 kB (checked in by Jason Michalski <armooo@armooo.net>, 2 years ago)

pyTivo
- ID3 suport for music

  • Property mode set to 100644
Line 
1 ################################################################################
2 #
3 #  Copyright (C) 2002-2005  Travis Shirk <travis@pobox.com>
4 #
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.
9 #
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.
14 #
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
18 #
19 ################################################################################
20
21 eyeD3Version = "@PACKAGE_VERSION@";
22 eyeD3Maintainer = "@PACKAGE_BUGREPORT@";
23
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;
36
37 import locale;
38 LOCAL_ENCODING = locale.getpreferredencoding();
39 if not LOCAL_ENCODING or LOCAL_ENCODING == "ANSI_X3.4-1968":
40     LOCAL_ENCODING = 'latin1';
41
42 import eyeD3.frames;
43 import eyeD3.mp3;
44 import eyeD3.tag;
45 from eyeD3.tag import *;
46 import eyeD3.utils;
Note: See TracBrowser for help on using the browser.