Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Numeric stability is probably not all that important when you're guessing.


devel / comp.lang.python / Re: Help with Python/Eyed3 MusicCDIdFrame method

SubjectAuthor
o Re: Help with Python/Eyed3 MusicCDIdFrame methodMRAB

1
Re: Help with Python/Eyed3 MusicCDIdFrame method

<mailman.541.1654533977.20749.python-list@python.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=18469&group=comp.lang.python#18469

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: pyt...@mrabarnett.plus.com (MRAB)
Newsgroups: comp.lang.python
Subject: Re: Help with Python/Eyed3 MusicCDIdFrame method
Date: Mon, 6 Jun 2022 17:46:09 +0100
Lines: 40
Message-ID: <mailman.541.1654533977.20749.python-list@python.org>
References: <4DF8E610-E149-47C3-9ECD-47456EBD1232@looktowindward.com>
<bb143d9d-eaaa-20dc-bab9-05b47982f646@mrabarnett.plus.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: news.uni-berlin.de q7Dhf7i44oMZgPnT6Tzc6QGYhv2rPdd4fTNlFl9DukFQ==
Return-Path: <python@mrabarnett.plus.com>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=pass
reason="2048-bit key; unprotected key"
header.d=plus.com header.i=@plus.com header.b=syYyoIbX;
dkim-adsp=none (unprotected policy); dkim-atps=neutral
X-Spam-Status: OK 0.002
X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'error:': 0.05; 'e.g.':
0.07; 'suggestion': 0.07; 'from:addr:python': 0.09;
'received:192.168.1.64': 0.09; 'tags': 0.09; 'subject:Python':
0.12; 'import': 0.15; 'attributes': 0.16;
'from:addr:mrabarnett.plus.com': 0.16; 'from:name:mrab': 0.16;
'id3': 0.16; 'importing': 0.16; 'message-id:@mrabarnett.plus.com':
0.16; 'received:84.93': 0.16; 'received:84.93.230': 0.16;
'received:plus.net': 0.16; 'right.': 0.16; 'wrote:': 0.16;
'subject:Help': 0.17; 'probably': 0.17; 'to:addr:python-list':
0.20; 'code': 0.23; 'run': 0.23; 'anything': 0.25; 'object': 0.26;
'greatly': 0.28; 'header:User-Agent:1': 0.30; 'seem': 0.31;
'received:192.168.1': 0.32; 'but': 0.32; 'appreciated.': 0.34;
'header:In-Reply-To:1': 0.34; 'trying': 0.35; 'following': 0.35;
"skip:' 10": 0.37; "it's": 0.37; 'received:192.168': 0.37; 'file':
0.38; 'this,': 0.39; 'use': 0.39; 'should': 0.40; 'method': 0.61;
'remember': 0.61; 'here': 0.62; 'skip:m 20': 0.63; 'skip:e 20':
0.67; 'subject:method': 0.69; 'attribute': 0.84; 'subject:skip:M
10': 0.91
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=plus.com; s=042019;
t=1654533969; bh=pjYgrWy3/exAOpQZKnoJeYwVw2exUrLaWd138JYgW3E=;
h=Date:Subject:To:References:From:In-Reply-To;
b=syYyoIbXKXiUZTWEsRf/AEg4a0/Z5sbtevCIzaL2WY2NCH65VE+4ZHkPSMT3tahms
z4et76btO+fv/EUqLrg5IPEjoUv+5ALpdQwRxdemaF3plOyo9L8dzIYQVmvGM7NWYE
IPGwaHiaONbLOdtGjB8vI/ZTvUP3eFcyHmq/cNCXA6FXTj6xz/yS9pW8EMx+PdSuUQ
sObaBCgPY5mIeWORwdXjp/OEk6s4sihlY532k5+Lkc52Awysev8o0cV6PAms1pM5ZG
OgcgX78flYXmMmxe2Bj925mZHVkkTf9+qPydcvbIxZprx8TI/fnht6IRsjGURXxdTu
wav3wx4ytX8BA==
X-Clacks-Overhead: "GNU Terry Pratchett"
X-CM-Score: 0.00
X-CNFS-Analysis: v=2.4 cv=HttlpmfS c=1 sm=1 tr=0 ts=629e2f51
a=0nF1XD0wxitMEM03M9B4ZQ==:117 a=0nF1XD0wxitMEM03M9B4ZQ==:17
a=IkcTkHD0fZMA:10 a=q5pOmQYeD2-pT3jhsYsA:9 a=QEXdDO2ut3YA:10
X-AUTH: mrabarnett@:2500
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.9.1
Content-Language: en-GB
In-Reply-To: <4DF8E610-E149-47C3-9ECD-47456EBD1232@looktowindward.com>
X-CMAE-Envelope: MS4xfE91sk+dGbe7iNGav6ItuG7e6cY/cqseOYC6gAZ+vO7QpbkU5eZKG9IZxo3VQiGnLBJ84f7l1WjmZ5iz9WWXPWQwrYmRdsoDGyizDwzTnguXcOm7wnYt
ZngU9U39kUre+kM11Ngwc1EH/o3N2vpjvOuu9EClwO8WRsuSWKa6WfzHA3OmzlGjjOfmn0l1EfBJo8ApDLhX9vcGJrvAeuObuQY=
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: General discussion list for the Python programming language
<python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
<mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-list@python.org>
List-Help: <mailto:python-list-request@python.org?subject=help>
List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>,
<mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <bb143d9d-eaaa-20dc-bab9-05b47982f646@mrabarnett.plus.com>
X-Mailman-Original-References: <4DF8E610-E149-47C3-9ECD-47456EBD1232@looktowindward.com>
 by: MRAB - Mon, 6 Jun 2022 16:46 UTC

On 2022-06-06 11:37, Dave wrote:
> Hi,
>
> I’m trying to get the ID3 tags of an mp3 file. I trying to use the MusicCDIdFrame
> method but I can’t seem to get it right. Here is a code snippet:
>
>
> import eyed3
> import eyed3.id3
> import eyed3.id3.frames
> import eyed3.id3.apple
> import eyed3.mp3
> myID3 = eyed3.load("/Users/Test/Life in the fast lane.mp3")
> myTitle = myID3.tag.title
> myArtist = myID3.tag.artist
> myAlbum = myID3.tag.album
> myAlbumArtist = myID3.tag.album_artist
> myComposer = myID3.tag.composer
> myPublisher = myID3.tag.publisher
> myGenre = myID3.tag.genre.name
> myCDID = myID3.id3.frames.MusicCDIdFrame(id=b'MCDI', toc=b'')
>
> When I run this, I get the following error:
>
> File "/Documents/Python/Test1/main.py", line 94, in <module>
> myCDID = myID3.id3.frames.MusicCDIdFrame(id=b'MCDI', toc=b'')
> AttributeError: 'Mp3AudioFile' object has no attribute 'id3'
>
>
> Any help or suggestion greatly appreciated.
>
That line should be:

myCDID = eyed3.id3.frames.MusicCDIdFrame(id=b'MCDI', toc=b'')

Also remember that some attributes might be None, e.g. 'myID3.tag.genre'
might be None.

Another point: it's probably not worth importing the submodules of
'eyed3'; you're not gaining anything from it.

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor