adhawkins / flactag Goto Github PK
View Code? Open in Web Editor NEWA utility for tagging single album FLAC files with embedded CUE sheets using data from the MusicBrainz service
License: GNU General Public License v3.0
A utility for tagging single album FLAC files with embedded CUE sheets using data from the MusicBrainz service
License: GNU General Public License v3.0
The largest size a metadata block can be is 16MB. If an image is retrieved that is bigger than this, it should be scaled down so as to fit.
Recently, amazon cover art downloads fail:
flactag -w /home//music/flacs/CD-ACHHQh9M0lFleeWtf77D8csm3SM-.flac
Unrecognised disc element: 'offset-list'
...
/home//music/flacs/CD-ACHHQh9M0lFleeWtf77D8csm3SM-.flac: Exception: Fetch error: 403 Forbidden
/home//music/flacs/CD-ACHHQh9M0lFleeWtf77D8csm3SM-.flac: No albums found
A strace yields:
sendto(3, "GET /images/P/B0039208US.02.LZZZZZZZ.jpg HTTP/1.1\r\nUser-Agent: flactag/v2.0.4 neon/0.32.3\r\nKeep-Alive: \r\nConnection: TE, Keep-Alive\r\nTE: trailers\r\nHost: images.amazon.com\r\n\r\n", 174, MSG_NOSIGNAL, NULL, 0) = 174
poll([{fd=3, events=POLLIN}], 1, 120000) = 1 ([{fd=3, revents=POLLIN}])
recvfrom(3, "HTTP/1.1 403 Forbidden\r\nServer: CloudFront\r\nDate: Wed, 07 Dec 2022 06:23:02 GMT\r\nContent-Type: text/html\r\nContent-Length: 919\r\nConnection: keep-alive\r\nX-Cache: Error from cloudfront\r\nVia: 1.1 4201bd1d1fc37ea7749b
3bd1b64fce02.cloudfront.net (CloudFront)\r\nX-Amz-Cf-Pop: YVR50-C1\r\nX-Amz-Cf-Id: Yj9CA7vp2lrtF0NEpFXUlo3P4_oeCbB1AanEFQkyHpZRtpGoiJR4_A==\r\n\r\n<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\n<HTML><HEAD><META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=iso-8859-1\">\n<TITLE>ERROR: The request could not be satisfied</TITLE>\n</HEAD><BODY>\n<H1>403 ERROR</H1>\n<H2>The request could not be satisfied.</H2>\n<HR noshade size=\"1px\">\nRequest blocked.\nWe can't connect to the server for this app or website at this time. There might be too much traffic or a configuration error. Try again later, or contact the app or website owner.\n<BR clear=\"all\">\nIf you provide content to customers through CloudFront, you can find steps to troubleshoot and help prevent thi"..., 4096, 0, NULL, NULL) = 1270
I can fetch that URL with a web browser, so it might be user agent blocking.
For some reason, no ALBUMARTIST tag is currently written. This should be added, as it makes it easier to sort albums that are primarily by a single artist, but may have the odd track with a guest artist.
Add things like country, barcode, release data etc.
libunac no longer seems to be packages for some distributions, and the last update was in 2002. A replacement should be found.
hello, i'm trying to install this on fedora 37, but at the configure stage i am missing flac++ and unac, could you give me any help on building this?
(From https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=698923)
I get the following:
$ flactag -r -w the-roots-things-fall-apart.flac
the-roots-things-fall-apart.flac: Multiple albums found
the-roots-things-fall-apart.flac: No matching album ID found, aborting
There are 2 releases for this discid. It would be nice if flactag
would allow me to specific the release on the command line.
Bonus points for printing what releases are available when you find
multiple ones.
(From https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=769465)
Currently, when using the batch mode to operate on many flac files,
there is a pause between each file while flactag queries MusicBrainz.
The pause can last 5-10 seconds depending upon network conditions and
the MusicBrainz service availability.
E.g. if the user specifies ten files, then for each file:
This pause between every operation can be frustrating for the user.
A better strategy would be:
Once the user reaches the GUI stage, there should not be any pauses as
all relevant data has already been fetched from MusicBrainz.
PNGs have a timestamp as part of their metadata. To avoid this flagging incorrect image changes, compare the actual pixel data when comparing two images.
Option to use 'base' artist name as opposed to artist credit
It looks like images downloaded via libcoverart can sometimes be PNGs rather than JPEGs. This should be handled correctly.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.