]> diplodocus.org Git - flac-archive/log
flac-archive
13 years agountested error handling changes
<epg@pretzelnet.org> [Thu, 27 Dec 2012 03:33:56 +0000 (19:33 -0800)]
untested error handling changes

13 years agoOops, really unify, and also fix SubprocessError to consume the stderr stream.
<epg@pretzelnet.org> [Thu, 27 Dec 2012 03:06:24 +0000 (19:06 -0800)]
Oops, really unify, and also fix SubprocessError to consume the stderr stream.

13 years agounify subprocess handling
<epg@pretzelnet.org> [Thu, 27 Dec 2012 03:03:22 +0000 (19:03 -0800)]
unify subprocess handling

13 years agoImplement (and tested) do_write.
<epg@pretzelnet.org> [Thu, 27 Dec 2012 02:50:16 +0000 (18:50 -0800)]
Implement (and tested) do_write.

13 years agomake the do_write stub actually work (missing imports and typos)
<epg@pretzelnet.org> [Thu, 27 Dec 2012 00:43:13 +0000 (16:43 -0800)]
make the do_write stub actually work (missing imports and typos)

13 years agoDon't save TRACKNUMBER.
<epg@pretzelnet.org> [Thu, 27 Dec 2012 00:40:16 +0000 (16:40 -0800)]
Don't save TRACKNUMBER.

13 years agosome write work
<epg@pretzelnet.org> [Thu, 27 Dec 2012 00:36:02 +0000 (16:36 -0800)]
some write work

13 years agoAdd filename building.
<epg@pretzelnet.org> [Thu, 27 Dec 2012 00:14:44 +0000 (16:14 -0800)]
Add filename building.

13 years agoObviously haven't run this in a while; forgot to remove my dead taglib module...
<epg@pretzelnet.org> [Thu, 27 Dec 2012 00:11:03 +0000 (16:11 -0800)]
Obviously haven't run this in a while; forgot to remove my dead taglib module...

13 years agodon't throw Exception from do_read
<epg@pretzelnet.org> [Wed, 26 Dec 2012 18:11:14 +0000 (10:11 -0800)]
don't throw Exception from do_read

13 years agoExpand SubprocessError to report the failing command, and test it.
<epg@pretzelnet.org> [Wed, 26 Dec 2012 18:09:35 +0000 (10:09 -0800)]
Expand SubprocessError to report the failing command, and test it.

13 years agoOops, abs(status) in SubprocessError.
<epg@pretzelnet.org> [Wed, 26 Dec 2012 18:00:00 +0000 (10:00 -0800)]
Oops, abs(status) in SubprocessError.

13 years agoadd note about abuse of Tags
<epg@pretzelnet.org> [Wed, 26 Dec 2012 09:28:42 +0000 (01:28 -0800)]
add note about abuse of Tags

13 years agoStart on a script to help rewrite tags en masse.
<epg@pretzelnet.org> [Wed, 26 Dec 2012 09:26:44 +0000 (01:26 -0800)]
Start on a script to help rewrite tags en masse.

Seems I screw up every time I get a CD with non-ascii titles, and I'm tired of
hacking up a fix with interactive shell-scripting...

13 years agosome demo apic reading code; would be nice to save all APIC frames.
epg@pretzelnet.org [Fri, 2 Nov 2012 07:52:13 +0000 (00:52 -0700)]
some demo apic reading code; would be nice to save all APIC frames.

13 years agorename
epg@pretzelnet.org [Fri, 2 Nov 2012 07:47:52 +0000 (00:47 -0700)]
rename

13 years agoadd tool for stripping tags
epg@pretzelnet.org [Fri, 2 Nov 2012 07:10:58 +0000 (00:10 -0700)]
add tool for stripping tags

13 years agosimple reindent
epg@pretzelnet.org [Fri, 2 Nov 2012 00:41:16 +0000 (17:41 -0700)]
simple reindent

13 years agoreorder includes
epg@pretzelnet.org [Fri, 2 Nov 2012 00:40:36 +0000 (17:40 -0700)]
reorder includes

13 years agorejigger this to a stand-alone tool rather than a py module
epg@pretzelnet.org [Fri, 2 Nov 2012 00:40:09 +0000 (17:40 -0700)]
rejigger this to a stand-alone tool rather than a py module

13 years agoWhen I switched from my crappy taglib module to using lame to add album art
epg@pretzelnet.org [Thu, 1 Nov 2012 22:52:39 +0000 (15:52 -0700)]
When I switched from my crappy taglib module to using lame to add album art
(r162), I introduced a bug when album art is not present in the FLAC.  Try to
fix it.

UNTESTED

13 years agonote how stupid lame is
epg@pretzelnet.org [Tue, 24 Jul 2012 21:58:24 +0000 (14:58 -0700)]
note how stupid lame is

13 years agoAdd --id3v2-latin1. Default in newer lame is to transcode to UTF-16! Quite
epg@pretzelnet.org [Tue, 24 Jul 2012 21:57:03 +0000 (14:57 -0700)]
Add --id3v2-latin1. Default in newer lame is to transcode to UTF-16! Quite
wasteful on most of my files, and I don't have any that won't work fine in
latin1, so let's use that.

13 years agospecify --pad-id3v2-size 0; it seems to make no difference, even though it
epg@pretzelnet.org [Tue, 24 Jul 2012 21:53:30 +0000 (14:53 -0700)]
specify --pad-id3v2-size 0; it seems to make no difference, even though it
looks to me like the default in the code is 128

13 years agolame supports adding album art directly, it's just not very well documented
epg@pretzelnet.org [Tue, 24 Jul 2012 21:52:43 +0000 (14:52 -0700)]
lame supports adding album art directly, it's just not very well documented
(still not in the man page in latest release), so switch to that instead of my
crappy taglib module

13 years agoSwitch from --add-id3v2 to --id3v2-only (sadly, lame still adds old id3 tags
epg@pretzelnet.org [Tue, 24 Jul 2012 21:42:04 +0000 (14:42 -0700)]
Switch from --add-id3v2 to --id3v2-only (sadly, lame still adds old id3 tags
anyway)

14 years agoDon't fetch same ASIN image twice.
<epg@pretzelnet.org> [Mon, 2 Jan 2012 00:45:53 +0000 (16:45 -0800)]
Don't fetch same ASIN image twice.

This is all working again, even multi-artist records.

14 years agodon't fetch images for asin=None
<epg@pretzelnet.org> [Mon, 2 Jan 2012 00:38:57 +0000 (16:38 -0800)]
don't fetch images for asin=None

14 years agoDon't make so many calls to Musicbrainz web service.
<epg@pretzelnet.org> [Mon, 2 Jan 2012 00:37:28 +0000 (16:37 -0800)]
Don't make so many calls to Musicbrainz web service.

Also add --discid option for testing without involving physical discs.

Some of this code had rotted.

14 years agoWrite ALBUMARTIST field and adapt to some API changes.
epg@pretzelnet.org [Sun, 1 Jan 2012 18:47:54 +0000 (10:47 -0800)]
Write ALBUMARTIST field and adapt to some API changes.

14 years agoCopy ALBUMARTIST from FLAC file to TPE2 in ID3.
epg@pretzelnet.org [Sun, 1 Jan 2012 18:37:58 +0000 (10:37 -0800)]
Copy ALBUMARTIST from FLAC file to TPE2 in ID3.

14 years ago/usr/bin/python
epg@pretzelnet.org [Sun, 1 Jan 2012 18:35:24 +0000 (10:35 -0800)]
/usr/bin/python

18 years ago+ look into http://www.sacredchao.net/quodlibet/wiki/Development/Mutagen
epg [Fri, 4 Jan 2008 21:39:52 +0000 (21:39 +0000)]
+ look into http://www.sacredchao.net/quodlibet/wiki/Development/Mutagen

18 years ago(flac_pictures): Fix compile warnings about description signedness.
epg [Wed, 5 Dec 2007 09:23:19 +0000 (09:23 +0000)]
(flac_pictures): Fix compile warnings about description signedness.

18 years agoFinalize release notes.
epg [Wed, 5 Dec 2007 09:16:09 +0000 (09:16 +0000)]
Finalize release notes.

18 years agodoc fix
epg [Wed, 5 Dec 2007 09:07:23 +0000 (09:07 +0000)]
doc fix

18 years agoAdd missing option documentation.
epg [Wed, 5 Dec 2007 09:03:26 +0000 (09:03 +0000)]
Add missing option documentation.

18 years ago(main): Write tempdir to stderr so user doesn't have to hunt for it.
epg [Wed, 5 Dec 2007 08:53:45 +0000 (08:53 +0000)]
(main): Write tempdir to stderr so user doesn't have to hunt for it.

18 years agohttp://bugs.debian.org/cgi-bin/bugreport.cgi?bug=439790
epg [Wed, 5 Dec 2007 08:51:16 +0000 (08:51 +0000)]
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=439790

(MSF_OFFSET): Add global for 150 frames.
(mkcue): Don't skip all of the first gap, but only MSF_OFFSET frames.

Patch by: Martin Michlmayr

18 years ago(run_flac): Only add --picture option if cover.front exists.
epg [Wed, 5 Dec 2007 08:46:08 +0000 (08:46 +0000)]
(run_flac): Only add --picture option if cover.front exists.
(flac): Keep unlinking even if unlink(cover.front) fails.

Suggested by: Martin Michlmayr

18 years agoOnly flac2mp3 needs taglib.
epg [Wed, 5 Dec 2007 07:57:20 +0000 (07:57 +0000)]
Only flac2mp3 needs taglib.

18 years agoFrom Martin Michlmayr:
epg [Wed, 5 Dec 2007 07:17:50 +0000 (07:17 +0000)]
From Martin Michlmayr:
Fix path for org.diplodocus

19 years agoMove flac.so and taglib.so to flac_archive package.
epg [Sat, 21 Apr 2007 20:43:09 +0000 (20:43 +0000)]
Move flac.so and taglib.so to flac_archive package.

19 years agoBah, go ahead and require flac 1.1.3 .
epg [Sat, 21 Apr 2007 19:51:26 +0000 (19:51 +0000)]
Bah, go ahead and require flac 1.1.3 .

19 years agoOops, forgot this.
epg [Sat, 21 Apr 2007 19:50:09 +0000 (19:50 +0000)]
Oops, forgot this.

19 years agoSince mp3 has no FEATURING tag, append those to ARTIST.
epg [Sat, 21 Apr 2007 19:49:32 +0000 (19:49 +0000)]
Since mp3 has no FEATURING tag, append those to ARTIST.

19 years agoPick minor style nit.
epg [Sat, 21 Apr 2007 19:38:52 +0000 (19:38 +0000)]
Pick minor style nit.

19 years agoUse flac_archive.tags.Tags, greatly simplifying things. Put PART tag
epg [Sat, 21 Apr 2007 19:37:21 +0000 (19:37 +0000)]
Use flac_archive.tags.Tags, greatly simplifying things.  Put PART tag
in flac filename, as with flac2mp3 does for mp3 filename.

19 years agoMake use of Tags.gets's new separator argument.
epg [Sat, 21 Apr 2007 19:33:41 +0000 (19:33 +0000)]
Make use of Tags.gets's new separator argument.

19 years agoMove Tags class into new flac_archive package, fix a bug in it, and
epg [Sat, 21 Apr 2007 19:26:22 +0000 (19:26 +0000)]
Move Tags class into new flac_archive package, fix a bug in it, and
test it.  These stupid scripts will finally start sharing code and
getting some formal testing.

flac_archive/tags.py:
    (Tags): Move here from flac2mp3, and rename ._tags to ._tracks .
    The tag-loading loop from flac2mp3 get_tags becomes the new .load
    method.

    (Tags.get): Return all matching tag data instead of either global
    or per-track (oops).

    (Tags.gets): Adapt to that change, and allow other separators than
    just '\n', which becomes a default.

    (Tags.all, Tags.track): New methods for getting a tag block for
    all tags (whole disc) or just a track, respectively.  To be used
    by fa-flacd in single-file and per-track modes, respectively.

flac2mp3:
    Use flac_archive.tags.Tags.  Use Tags.load in get_tags .

setup.py:
    Note MIT license and install flac_archive package.

test/run:
    Copy test-runner from py-gurps.

test/test.py:
    Load all tests.

test/testtags.py:
    Test Tags class.

19 years agos/'''/"""/
epg [Sun, 15 Apr 2007 18:54:07 +0000 (18:54 +0000)]
s/'''/"""/

19 years agopointless quote change
epg [Thu, 12 Apr 2007 03:39:46 +0000 (03:39 +0000)]
pointless quote change

19 years agoDump svn:keywords .
epg [Thu, 29 Mar 2007 01:36:39 +0000 (01:36 +0000)]
Dump svn:keywords .

19 years agoAll files have at least one track.
epg [Thu, 29 Mar 2007 01:35:34 +0000 (01:35 +0000)]
All files have at least one track.

19 years agoFix pics nonsense.
epg [Thu, 29 Mar 2007 01:34:46 +0000 (01:34 +0000)]
Fix pics nonsense.

19 years ago(flac2mp3): Fix skip_until processing: stop pointless splitting the
epg [Thu, 29 Mar 2007 00:02:03 +0000 (00:02 +0000)]
(flac2mp3): Fix skip_until processing: stop pointless splitting the
list into two variables and other weird stuff!

(Tags): Storing the global tags in the same dict meant that __len__
was incorrect (+1) for multi-track files.  Keep them separate.

19 years agoSupport my old, numberless TITLE tags.
epg [Mon, 26 Mar 2007 01:21:47 +0000 (01:21 +0000)]
Support my old, numberless TITLE tags.

19 years ago(flac2mp3): Never set date to 'unknown'.
epg [Mon, 26 Mar 2007 01:07:24 +0000 (01:07 +0000)]
(flac2mp3): Never set date to 'unknown'.

(Tags.set): Need to upcase the key when setting, too.

19 years ago1.1.3 has been out a while; uncomment --picture support.
epg [Mon, 26 Mar 2007 00:45:31 +0000 (00:45 +0000)]
1.1.3 has been out a while; uncomment --picture support.

19 years agoBah unicode.
epg [Tue, 7 Nov 2006 09:48:28 +0000 (09:48 +0000)]
Bah unicode.

19 years agoAdd hack to pull down musicbrainz info without having a disc; useful
epg [Tue, 7 Nov 2006 09:07:28 +0000 (09:07 +0000)]
Add hack to pull down musicbrainz info without having a disc; useful
when you're away from home and rip WAVs into itunes...  This should be
a separate program.

19 years agoUpdate CHANGES, list another dependency in README.
epg [Thu, 2 Nov 2006 11:05:57 +0000 (11:05 +0000)]
Update CHANGES, list another dependency in README.

19 years agomore
epg [Thu, 2 Nov 2006 11:03:30 +0000 (11:03 +0000)]
more

19 years agoTODO
epg [Thu, 2 Nov 2006 10:50:04 +0000 (10:50 +0000)]
TODO

19 years agos/--export-vc-to/--export-tags-to/
epg [Thu, 2 Nov 2006 10:44:14 +0000 (10:44 +0000)]
s/--export-vc-to/--export-tags-to/

19 years agoHm, why just copy front cover PICTUREs from flac to mp3? The flac
epg [Thu, 2 Nov 2006 10:42:28 +0000 (10:42 +0000)]
Hm, why just copy front cover PICTUREs from flac to mp3?  The flac
PICTURE metadata block has the exact same metadata as the mp3 ID3v2
APIC frame; just copy them all.

flac.c:
    (flac_pictures): Return fields in the same order they're found in
    the FLAC format.  Convert the description to a unicode object
    rather than returning a UTF-8 encoded str object.

taglib.cc:
    (taglib_apic): Take a list of picture tuples and add them all as
    APIC frames.

    (add_apic_frame_to_mp3): Take the list of picture tuples and pass
    them straight to taglib_apic.

flac2mp3:
    (flac2mp3): Take a list of picture tuples instead of just one;
    pass them all to add_apic_frame_to_mp3.

    (find_pics): Rename from find_pic.  Save all PICTURE metadata
    blocks rather than just saving the first front cover picture.

19 years agoSet encoding of description.
epg [Thu, 2 Nov 2006 09:12:05 +0000 (09:12 +0000)]
Set encoding of description.

19 years ago(flac2mp3): Oops, keep an unmunged version of the output filename,
epg [Thu, 2 Nov 2006 08:27:52 +0000 (08:27 +0000)]
(flac2mp3): Oops, keep an unmunged version of the output filename,
too.

19 years agoCopy flac PICTURE to mp3 APIC using new extension modules.
epg [Wed, 1 Nov 2006 11:07:20 +0000 (11:07 +0000)]
Copy flac PICTURE to mp3 APIC using new extension modules.

19 years agoDon't hard-code front cover type; let the caller choose that.
epg [Wed, 1 Nov 2006 11:06:58 +0000 (11:06 +0000)]
Don't hard-code front cover type; let the caller choose that.

19 years agoReplace crappy demo code for flac PICTURE and mp3 APIC support with
epg [Wed, 1 Nov 2006 10:24:19 +0000 (10:24 +0000)]
Replace crappy demo code for flac PICTURE and mp3 APIC support with
halfway-decent (i hope) Python extension modules.

19 years agoRejigger this a bit; no longer segfaults.
epg [Tue, 31 Oct 2006 22:25:41 +0000 (22:25 +0000)]
Rejigger this a bit; no longer segfaults.

19 years agoAdd stupid diff to metaflac to extract PICTURE.
epg [Sun, 29 Oct 2006 08:17:58 +0000 (08:17 +0000)]
Add stupid diff to metaflac to extract PICTURE.

19 years agoHere's some demo code i whipped up to add APIC to an mp3 with taglib.
epg [Sun, 29 Oct 2006 08:12:37 +0000 (08:12 +0000)]
Here's some demo code i whipped up to add APIC to an mp3 with taglib.

19 years agoForce ID3v2 tags; when i add ID3v2 APIC, iTunes starts ignoring the
epg [Sun, 29 Oct 2006 07:48:04 +0000 (07:48 +0000)]
Force ID3v2 tags; when i add ID3v2 APIC, iTunes starts ignoring the
ID3v1 stuff, guess i don't blame it...

19 years agoAdd (commented-out) flac 1.1.3 PICTURE support.
epg [Sat, 28 Oct 2006 09:45:34 +0000 (09:45 +0000)]
Add (commented-out) flac 1.1.3 PICTURE support.

19 years agoGrab Amazon artwork, but don't do anything with it yet.
epg [Sat, 28 Oct 2006 09:11:22 +0000 (09:11 +0000)]
Grab Amazon artwork, but don't do anything with it yet.

19 years agoOops, in multi-file mode, all tracks are ripped even with -t option.
epg [Sat, 28 Oct 2006 09:07:50 +0000 (09:07 +0000)]
Oops, in multi-file mode, all tracks are ripped even with -t option.
Fixing this also helps lose some duplication.

19 years agoUse album.release where possible, restrict
epg [Sat, 28 Oct 2006 08:42:15 +0000 (08:42 +0000)]
Use album.release where possible, restrict
musicbrainz2.webservice.ReleaseIncludes to tracks.

19 years ago(flac2mp3): Don't need to int(track) now that the loop in main does it.
epg [Thu, 19 Oct 2006 07:13:18 +0000 (07:13 +0000)]
(flac2mp3): Don't need to int(track) now that the loop in main does it.

(Tags): New class that should be moved somewhere shared so fa-flacd
and others can use it.  Simplifies keeping track of per-disc and
per-track tags.

(get_tags): Build and return a Tags object instead of mucking about
with different tags in inconsistent (and broken!) ways.

(main): Oy, main needs to be split up.  Change the main loop to use
the Tags object, fix discnum-is-a-str-not-int bug, make track always
an int here (previously was sometimes str), correctly handle multiple
tracks per flac, and append PART to TITLE if present.

19 years ago(flac): UNTESTED: Put disc number at the front of the output file name,
epg [Thu, 19 Oct 2006 06:10:32 +0000 (06:10 +0000)]
(flac): UNTESTED: Put disc number at the front of the output file name,
not the reader (?!).

19 years ago(flacloop): Don't flip out in multi-file mode if 'cue' doesn't exist.
epg [Thu, 12 Oct 2006 22:45:24 +0000 (22:45 +0000)]
(flacloop): Don't flip out in multi-file mode if 'cue' doesn't exist.

19 years ago(tags_file): Hey, Off-by-one, so kind of you to visit. Go away!
epg [Thu, 12 Oct 2006 21:43:35 +0000 (21:43 +0000)]
(tags_file): Hey, Off-by-one, so kind of you to visit.  Go away!

19 years agoRewrite in python (single-file and multi-artist modes not tested).
epg [Tue, 1 Aug 2006 05:00:00 +0000 (05:00 +0000)]
Rewrite in python (single-file and multi-artist modes not tested).

19 years agoHere's another silly setup.py.
epg [Fri, 28 Jul 2006 22:08:43 +0000 (22:08 +0000)]
Here's another silly setup.py.

19 years agoRewrite in python.
epg [Fri, 28 Jul 2006 18:49:07 +0000 (18:49 +0000)]
Rewrite in python.

19 years agoMove to a good home.
epg [Thu, 27 Jul 2006 18:05:03 +0000 (18:05 +0000)]
Move to a good home.

19 years agoAdd Python implemention of Jobs package.
epg [Wed, 26 Jul 2006 21:29:07 +0000 (21:29 +0000)]
Add Python implemention of Jobs package.

19 years agoFix a job in Jobs::run (@jobs < $maxjobs, not <=) and icky icky
epg [Wed, 26 Jul 2006 18:39:41 +0000 (18:39 +0000)]
Fix a job in Jobs::run (@jobs < $maxjobs, not <=) and icky icky
copy-paste it into flac2mp3, which now supports parallelization.

19 years agoThis is now tested; both multi-file and single-file modes work fine,
epg [Wed, 26 Jul 2006 17:55:20 +0000 (17:55 +0000)]
This is now tested; both multi-file and single-file modes work fine,
and multi-file is now fully parallelizable.

(flac): Refactor this to encode one wav file to one flac, instead of
looping over all the wavs for a multi-file mode.  This leaves behind
the fa-rip directories instead of cleaning them up; i left a comment
where the cleanup should happen; easy enough to fix.  When creating or
removing files or directories, test for $!{EEXIST} and $!{ENOENT} on
failure rather than stat(2)ing up front.

(flacloop): Move some of the multi-file processing here into our new
Jobs::run get-jobs function; it manages a queue of wav files so we can
fully parallelize even multi-file jobs, instead of having the disc as
the unit of parallelization.

19 years agoImprove Jobs package:
epg [Wed, 26 Jul 2006 07:31:35 +0000 (07:31 +0000)]
Improve Jobs package:
 - no longer need global @jobs and @finished
 - @finished is gone completely
 - new run function which takes care of all the details; you just give
   it a function to call to get a new job function, and optional
   reportingi functions.

19 years ago(flacloop): Oops, remove leftover $SIG{CHLD} setting (still UNTESTED).
epg [Wed, 26 Jul 2006 00:24:00 +0000 (00:24 +0000)]
(flacloop): Oops, remove leftover $SIG{CHLD} setting (still UNTESTED).

19 years agoUNTESTED: Refactor the job parallelization stuff into a generic Jobs package.
epg [Tue, 25 Jul 2006 23:51:27 +0000 (23:51 +0000)]
UNTESTED: Refactor the job parallelization stuff into a generic Jobs package.

19 years agoHere's a simple hack to split single cue-containing flac files into
epg [Fri, 23 Jun 2006 01:30:43 +0000 (01:30 +0000)]
Here's a simple hack to split single cue-containing flac files into
single-track flac files.  It's almost entirely a copy/paste of
parts of fa-flacd and flac2mp3; all the common parts really should
be factored out...

19 years agoStore TRACKNUMBER tag in multi-file mode (oops).
epg [Thu, 27 Apr 2006 11:54:56 +0000 (11:54 +0000)]
Store TRACKNUMBER tag in multi-file mode (oops).

20 years agoFix two minor errors.
epg [Wed, 19 Apr 2006 14:14:19 +0000 (14:14 +0000)]
Fix two minor errors.

20 years agoFill in release date (today) now that i've tested r1926.
epg [Wed, 19 Apr 2006 13:58:06 +0000 (13:58 +0000)]
Fill in release date (today) now that i've tested r1926.

20 years agoupdate
epg [Tue, 18 Apr 2006 22:05:39 +0000 (22:05 +0000)]
update

20 years agoDrop the single quotes in printing post-processor args; they may
epg [Tue, 18 Apr 2006 21:38:45 +0000 (21:38 +0000)]
Drop the single quotes in printing post-processor args; they may
contain quotes anyway.

20 years agoUse better identifers and add comments.
epg [Tue, 18 Apr 2006 20:59:26 +0000 (20:59 +0000)]
Use better identifers and add comments.