zcdrip
3 years agoRIP freedb.org -- Add notes/todos re migrating to MusicBrainz master
Steve Youngs [Sat, 20 Feb 2021 02:41:06 +0000 (12:41 +1000)]
RIP freedb.org -- Add notes/todos re migrating to MusicBrainz

* zcdrip.in: Add todo item and FIXMEs for MusicBrainz migration.
(usage): RIP freedb.org.

* zdiscid.c: Add todo item for migrating to MusicBrainz.

Signed-off-by: Steve Youngs <steve@steveyoungs.com>
3 years agoAlbum Art -- The Quick and Dirty Way.
Steve Youngs [Sat, 20 Feb 2021 01:14:07 +0000 (11:14 +1000)]
Album Art -- The Quick and Dirty Way.

If the file 'cover.jpg' exists in $PWD we'll attempt to embed it into
the Oggs and FLACs (sorry, not for MP3 at this stage).

The build script was also updated to ensure that 'install target'
always rebuilds stuff if necessary.

* album_art: New. A bare-bones script to embed image file into an
Ogg/Vorbis file.  I didn't write this and I cannot recall where I
found it.  There is also nothing in the file to indicate who wrote
it and when.

* build.sh (_install): Run 'all' if either zcdrip doesn't exist,
or if zcdrip.in is newer than zcdrip.
Create the ecdrip symlink in the install directory if either
$ESHELL is 1, or the symlink exists in the source directory.
Install 'album_art'.

* zcdrip.in (Description): "Ogg Vorbis" -> "Ogg/Vorbis".
Mention cover art.
(ARTWORK): New. Points to cover art image file.
(flacenc): Add cover art if $ARTWORK exists.
(oggrip): Ditto.

Signed-off-by: Steve Youngs <steve@steveyoungs.com>
10 years agomp3/flac fixes
Steve Youngs [Sun, 11 Aug 2013 02:09:10 +0000 (12:09 +1000)]
mp3/flac fixes

* flac-fixes:
  Couple of mp3/flac fixes

10 years agoCouple of mp3/flac fixes
Steve Youngs [Sun, 11 Aug 2013 02:07:12 +0000 (12:07 +1000)]
Couple of mp3/flac fixes

Signed-off-by: Steve Youngs <steve@steveyoungs.com>
12 years agoFix environment variable handling.
Steve Youngs [Wed, 22 Jun 2011 07:25:38 +0000 (17:25 +1000)]
Fix environment variable handling.

* zcdrip.in (_album_to_dir): Take artist name from environment
variable ARTIST if it is set.

* zcdrip.in (prep): Use environment variables ALBUM, GENRE, and
YEAR if they are set.

Signed-off-by: Steve Youngs <steve@steveyoungs.com>
12 years agoFix bug causing wrong disc ID being returned on 64bit systems.
Steve Youngs [Wed, 22 Jun 2011 03:28:45 +0000 (13:28 +1000)]
Fix bug causing wrong disc ID being returned on 64bit systems.

* zdiscid.c (get_cddb_id): Change from unsigned long int to
unsigned int.  Prevents issues with 64bit systems.

Signed-off-by: Steve Youngs <steve@steveyoungs.com>
12 years agoBug fix in flac directory creation.
Steve Youngs [Wed, 22 Jun 2011 03:12:02 +0000 (13:12 +1000)]
Bug fix in flac directory creation.

This was actually fairly harmless, the worst that could happen was a
warning from mkdir(1) on stdout.  But annoying nonetheless.  This patch
fixes that.

* zcdrip.in (_album_to_dir): Fix syntax bug that was causing
flac directory creation to be attempted even if flac encoding
wasn't requested.

Signed-off-by: Steve Youngs <steve@steveyoungs.com>
12 years agoFix bug in parsing the output from freedb.
Steve Youngs [Sun, 19 Jun 2011 07:26:41 +0000 (17:26 +1000)]
Fix bug in parsing the output from freedb.

Occasionally track titles are so long that they put them on multiple lines
in the freedb database.  This patch handles that case.

It also adds the option to write a playlist file on the fly.  This is good
for those times when order is important.

* zcdrip.in (_parse_cddb): Handle multi-line track title entries.

* zcdrip.in (args): Add `-p' `--playlist' arguments to write a
playlist file on the fly.

* zcdrip.in (mp3rip,oggrip): Optionally write a playlist file.

Signed-off-by: Steve Youngs <steve@steveyoungs.com>
12 years agoA couple of build tweaks.
Steve Youngs [Sun, 19 Jun 2011 04:05:43 +0000 (14:05 +1000)]
A couple of build tweaks.

* build.sh (ESHELL,PREFIX,BINDIR): New
  Make it easier to build and ensure that the eshell compatibility
  symlink is installed as a symlink.

Signed-off-by: Steve Youngs <steve@steveyoungs.com>
12 years agoMigrate tla related stuff to git
Steve Youngs [Sun, 19 Jun 2011 02:30:03 +0000 (12:30 +1000)]
Migrate tla related stuff to git

* build.sh (all): Add `tver' variable to hold non-git version.
  Use `git describe' instead of tla commands to get version.

* .gitignore: New file

* *: Update my email and copyright notices everywhere.

Signed-off-by: Steve Youngs <steve@steveyoungs.com>
12 years agoInitial import from tla repo v0.7
Steve Youngs [Sun, 19 Jun 2011 01:56:46 +0000 (11:56 +1000)]
Initial import from tla repo

Signed-off-by: Steve Youngs <steve@steveyoungs.com>