From: Todd Z. <tm...@po...> - 2007-07-04 18:35:48
|
I wrote: > If you use them from python in libgpod < 0.5 you get an error: >=20 >>>> import time >>>> track =3D gpod.itdb_track_new() >>>> track.time_added =3D int(gpod.itdb_time_host_to_mac(time.time())) Bah, you get an error from>=3D 0.5 if you use it this way as well. Better use probably is: >>> track.time_added =3D gpod.itdb_time_host_to_mac(int(time.time())) So, you could try this and catch the exception in your code, then fall back to the method you've been using perhaps. --=20 Todd OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Democracy is also a form of worship. It is the worship of Jackals by Jackasses. -- H.L. Mencken |