summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* * src/itdb_device.c: (itdb_device_requires_checksum): add missing Christophe Fergeau2007-10-092-0/+7
| | | | | | | (unreachable) return git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1725 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Explicitly enumerate the ipod models to get a warning if new models are ↵Christophe Fergeau2007-10-091-5/+23
| | | | | | added without updating that function git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1724 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_device.c: (itdb_device_requires_checksum):Christophe Fergeau2007-10-074-2/+34
| | | | | | | | | | | * src/itdb_itunesdb.c: (write_db_checksum): * src/itdb_private.h: add an itdb_device_requires_checksum function so that we only error out because of checksum writing issues on ipods which require a checksum. Ideally, we should restore the old file when there is a fatal checksum writing error, but libgpod isn't currently doing that git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1722 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_sha1.c: (generate_key): move cryptic calculations Christophe Fergeau2007-10-052-108/+73
| | | | | | | into the precomputed tables. Patch by Simon Schulz. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1720 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_device.c:Christophe Fergeau2007-10-052-2/+14
| | | | | | | | | | | | | | Remove duplicate reference to ithmb file The iPod classic artwork formats contained two references to an ithmb file using 1060 as its filename. This confuses the ithumb writing code which can't handle that properly. Fixes that for now by removing the entry. We could probably be more clever in itdb_write_ithumb_files and generate two lists of iThumbWriters, one for artwork and another one for photos. This would fix that bug as well git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1719 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/db-artwork-writer.c: (itdb_track_filter_thumbnails),Christophe Fergeau2007-10-053-74/+139
| | | | | | | | | | | | | | | | | (itdb_filter_thumbnails), (ipod_write_artwork_db): * src/itdb_track.c: (itdb_track_set_thumbnails_internal): Set thumbnails for all known cover types in itdb_track_set_thumbnails itdb_track_set_thumbnails can be called when the track isn't attached to any device (eg it's natural to create a track, fill its metadata including the cover art, and then add it to an iTunesDB and its associated device). This means we can't know which artwork types the iPod corresponding to the iTunesDB will be able to handle. i Consequently, we create Itdb_Thumb objects for all known cover types, and we filter that list when we don't have a choice (ie when we're about to write the ArtworkDB and the thumbnails) git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1718 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_itunesdb.c: (itdb_write_file): set Itdb_Track::idChristophe Fergeau2007-10-052-9/+18
| | | | | | | before writing the artwork since artwork writing uses them git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1717 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * README.SysInfo: add explanations about how the iPod needs to be Christophe Fergeau2007-10-012-0/+39
| | | | | | | set up so that libgpod can read the firewire id git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1714 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_itunesdb.c: get rid of unused headersChristophe Fergeau2007-10-012-2/+4
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1713 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_itunesdb.c: integrate checksum writing into theJorg Schuler2007-10-013-123/+58
| | | | | | | | | | | | creation of the iTunesDB instead of modifying the iTunesDB file in place (Christophe) * src/itdb_device.c: re-use artwork definition for iPod classic also for iPod Nanos 3G. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1712 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_itunesdb.c (mk_mhit): write extended mhit header forJorg Schuler2007-10-014-9/+34
| | | | | | | | | | | | | | new iPod Nanos and Classics so they display artwork (Christophe) * src/db-artwork-writer (ipod_artwork_set_ids): modify the assignment of IDs for artwork (Christophe) * src/itdb_device.c: added artwork definition file (cover only) for iPod Nano Videos (3G). Thanks to Simon Schulz. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1711 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_itunesdb.c: (itdb_write_checksum): remove debugging g_printChristophe Fergeau2007-09-302-9/+4
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1708 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_device.c: fix typo and don't mark iPod Classic as read-onlyChristophe Fergeau2007-09-302-3/+7
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1707 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * tools/read-sysinfoextended-sgutils.c: (main): use g_build_filenameChristophe Fergeau2007-09-282-2/+7
| | | | | | | | instead of itdb_resolve_filename since the latter will fail if SysInfoExtended does not already exist git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1706 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Remove trailing whitespaceChristophe Fergeau2007-09-271-1/+1
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1705 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Fix make distcheckChristophe Fergeau2007-09-273-32/+33
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1704 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* 2007-09-27 Christophe Fergeau <teuf@gnome.org>Christophe Fergeau2007-09-275-2/+184
| | | | | | | | | | | | | * configure.ac: build tool to generate the iPod SysInfoExtended file if sgutils is detected * Makefile.am: * tools/ * tools/Makefile.am: changes to optionally build the sgutils-based tool * tools/read-sysinfoextended-sgutils.c: (do_sg_inquiry), (read_sysinfo_extended), (main): new file, reads the SysInfoExtended file from the iPod using SCSI queries git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1703 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_itunesdb.c: (calculate_db_checksum),Christophe Fergeau2007-09-275-11/+28
| | | | | | | | | | | | | (itdb_write_checksum): * src/itdb_sha1.c: (itdb_compute_hash): * src/itdb_sha1.h: propagate the calculated checksum length as an out parameter to the checksumming functions, fixes a bug where a partial checksum would be written if it contained a \0 * tests/test-checksum.c: (calculate_db_checksum): update test program to that API change git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1702 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_device.c: remove "read only" notice on Nano VideoJorg Schuler2007-09-262-3/+13
| | | | | | | | | | description. * ChangeLog: explained better about SysInfo* files. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1701 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Forgot to add itdb_sysinfo.cJorg Schuler2007-09-242-0/+270
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1699 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* ** code courtesy of Christophe Fergeau **Jorg Schuler2007-09-2413-27/+1281
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/itdb_itunesdb.c (mk_mhbd): write extended header needed for new iPod Nanos (3G Video) and iPod Classics. src/itdb_device.c src/itdb_device.h: Code to parse SysInfoExtended and SysInfo for the FireWireGUID. You must either copy the iPod description XML file to Device/SysInfoExtended or add a line 'FirewireGuid: 000A27....' to Device/SysInfo. You can get your FirewireGuid by using the tests/test-fw-id test program. * src/sha1.c src/sha1.h src/itdb_sha1.c src/itdb_sha1.h New files for obscure hash generation code. * src/Makefile.am: added new files. * tests/test-checksum.c tests/test-fw-id.c tests/Makefile.am: test programs to retrieve the FirewireGuid and calculate/write the obscure hash. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1698 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_device.c:Jorg Schuler2007-09-156-116/+305
| | | | | | | | | | | | | | | | | | | | | Re-organized the representation of iPod models -- instead of 1st to 7th generation more well-known names like "iPod Nano 1G", "iPod Nano 2G"... are used. Added untested support for iPod Classic Artwork. Not clear which thumbnail type is used for what. src/itdb_track.c (itdb_track_set_thumbnails_internal): Please note: itdb_track_set_thumbnails() needs to be thought over to make sure all thumbnail types are added properly. Please see note in itdb_track.c for details. src/itdb.h: Added symbols for the new representation indicated above: ITDB_IPOD_GENERATION_*, ITDB_IPOD_MODEL_* git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1695 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/db-image-parser.cJorg Schuler2007-09-0811-38/+551
| | | | | | | | | | | | | | | | | | | | | | | | | | src/itdb_device.c src/ithumb-writer.c src/db-image-parser.h src/itdb_device.h src/itdb.h src/itdb_artwork.c tests/test-covers.c: added support to read and write coverart on iPhones. New cover formats are: MEDIUM, XLARGE, XSMALL, SMEDIUM -- should be renamed if function becomes clearer. Introduced New image formats for the thumbnails (THUMB_FORMAT_RGB555, THUMB_FORMAT_REC_RGB555). Coding/decoding functions are pack_/unpack_RGB_555() and pack_/unpack_REC_RGB_555(). Introduced possible padding for thumbnail files (Itdb_ArtworkFormat). * src/db-artwork-parser.c: make output filename unique. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1691 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * itdb_itunesdb.c (itdb_get_control_dir):Jorg Schuler2007-09-045-3/+21
| | | | | | | | | | | | | | | added support for iPhones * itdb.h: added ITDB_IPOD_MODEL_IPHONE_1 enum * itdb_device.c: added iPhone description TODO: define artwork definition in itdb_device.c -- currently artwork is not supported. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1690 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_artwork.c (itdb_thumb_get_filename): checkJorg Schuler2007-08-182-3/+9
| | | | | | | | returnvalue of strchr(). Thanks to Javier Kohen. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1685 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_itunesdb (itdb_parse): don't callJorg Schuler2007-08-182-24/+31
| | | | | | | | ipod_parse_artwork_db() if iTunesDB was not read successfully. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1682 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_itunesdb.c: make calls to utf16_strlen()Jorg Schuler2007-08-182-27/+22
| | | | | | | | unnecessary. Thanks to Javier Kohen for the patch. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1680 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/db-artwork-writer.c (write_mhod_type_3): don't assume thatJorg Schuler2007-08-182-14/+29
| | | | | | | | | | | | length of a utf16 string is twice the length of a utf8 string (even though this was safe here because the strings in question were ASCII). (write_mhod_type_1), (write_mhod_type_3): Don't pad by 4 bytes as this achieves nothing. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1679 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Remove mention of the short period where time_t access was not possible.Nicholas Piper2007-08-081-7/+0
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1675 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Move PyDateTime_IMPORT outside of ifdef HAVE_GDKPIXBUF + HAVE_PYGOBJECT, ↵Nicholas Piper2007-08-081-1/+1
| | | | | | including it there was a merge error git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1674 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Todd's improvements to the Python README (insert libgpod version numbers ↵Nicholas Piper2007-08-081-13/+13
| | | | | | into the timestamp access table git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1673 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Try to deal with typestamps in a sane way in the Python bindingsNicholas Piper2007-08-075-3/+146
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1672 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* remove duplicate copyright headerTodd Zullinger2007-08-042-25/+5
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1669 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* cleanup some trailing whitespaceTodd Zullinger2007-07-312-15/+20
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1664 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* ignore reserved (and chapterdata) attributes which are returned as gpointersTodd Zullinger2007-07-311-3/+8
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1663 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* merge changes from the bug-1723660 branchTodd Zullinger2007-07-3110-77/+326
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1662 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* ensure that bindings/python/examples/save_photos.py is included in tarballsTodd Zullinger2007-07-162-4/+14
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1653 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * po/ro.po: nobody told me I forgot to actually add this file toJorg Schuler2007-07-122-0/+679
| | | | | | | | the repository... git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1634 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Add version and version_info attributes to the Python bindingsNicholas Piper2007-07-124-1/+21
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1633 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* make the test for xsltproc more robust (read as: make it suck less)Todd Zullinger2007-07-121-1/+1
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1632 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* try to convert the xml docs into python docstrings even when ENABLE_GTK_DOC ↵Todd Zullinger2007-07-112-5/+12
| | | | | | isn't set so that tarball builds can get the full documentation in python. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1631 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * configure.acJorg Schuler2007-07-082-1/+6
| | | | | | | | po/ro.po: added Romanian catalog. Thanks to Alex Eftimie. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1628 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* fix a few typosTodd Zullinger2007-07-053-8/+12
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1624 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* remove references to Mac type timestampsTodd Zullinger2007-07-052-14/+15
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1623 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* s/PACKAGE_/LIBGPOD_/ in configuration outputTodd Zullinger2007-07-052-3/+8
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1622 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* updated French translation (thanks to Eric Lassauge)Todd Zullinger2007-07-042-18/+20
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1619 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* noted that python bindings now use the mutagen module instead of eyeD3Todd Zullinger2007-07-022-1/+6
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1616 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* With Rev. 1614:Jorg Schuler2007-06-291-0/+7
| | | | | | | | | | | * po/libgpod.po: added to SVN repository (new translators may be looking for it -- like yesterday). * po/*.po: run 'make update-po'. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1615 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Added po/libgpod.potJorg Schuler2007-06-298-385/+1020
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1614 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* include tests.py in EXTRA_DISTTodd Zullinger2007-06-292-2/+9
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1613 f01d2545-417e-4e96-918e-98f8d0dbbcb6