Giter Club home page Giter Club logo

sagger's Introduction

Sagger

As in Simple Audio Tagger and anti-tank guided missle is a simple program for audio files tagging using Chromaprint library (via fpcalc) and AcoustID service with MusicBrainz metadata. Both GUI (GTK+) and CLI are supported with simple configuration settings allowing to set source and target directory to which all the files will be copied using given directory and file naming scheme. For now only these values are changed so Sagger is not a "true" tagger in a sense that no additional file metadata will be set. Sagger is fault-tolerant for basic errors like wrong permissions and no Internet access and to my knowledge no data should be lost while using this software however it is still in early phase of development so it is strongly advised not to use it with data of which you have no backup copy.

Usage

Remember to fill YOUR_KEY variable from run.c with valid API key from AcoustID

If you run Sagger with no additional arguments, it will assume that you want to use GUI mode.

For CLI mode:

sagger [OPTIONS] SOURCE_DIRECTORY TARGET_DIRECTORY

Where options are:

  • -album/-artist/-both choose what to include in directory name and filename. Two arguments are mandatory, song name is included in filename each time.
  • -h/--help print help
  • -v/--version print version number and license

Sample

sagger -both -artist ~/Music/source ~/Music/dir

Dependencies with respective package names:

  • GTK3 (libgtk-3-dev)
  • libcurl (libcurl4-gnutls-dev)
  • json-glib (libjson-glib-dev)
  • fpcalc (libchromaprint-tools)
  • cmake (for now my cmake file is very basic, please report if it does not work in your environement or you know the oldest library version for which Sagger will compile)

I have not checked minimum versions for libraries but anything not older than what is shipped with Ubuntu 19.10 (with CMake 3.15) should work.

Closing notes

Take note that this is my first CS project. It serves it's purpose but despite my best efforts it may contain code not following established coding patters or outright ugly. If you notice parts fitting this description please file an issue or prepare pull request and I will review them all but if you are in need of mature versatile project to use in production environment you may also want to check out out other Music Brainz enabled software

sagger's People

Contributors

etua avatar janekjan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

janekjan

sagger's Issues

Add localization

UI should be translatable. The obvious solution to that need is gettext as currently the only strings problematic in terms of translation are those including numbers and AFAIK gettext supports that so newer solutions like Fluent might not be necessary.

To do:

  • choose the localization system and integrate it into the codebase

  • integrate repository with one of the online platforms for user-friendly localization

Improvements to soft error mechanism

Currently there are only two categories of "soft" errors which can be discovered in processing individual files that do not affect processing other files. One of them is expected during standard usage (skipping of fpcalc for unsupported files) whereas the other may be a result of no Internet connection which for now will result in skipping every step after downloading JSON leaving target directory empty.

Right now their only indicators are printed messages for CLI mode. I think that some type for listing errors should be defined with typedef so even success messages would contain complete information like "X files moved. Y files skipped because of unsuitable type. Z files skipped because of network errors." That way it would be easier to add other error types in the future.

Edit actual file tags

Fact 1: For now the only individual properties of a file changeable by Sagger are it's position (parent directory) and filename. In order to be a true tagger we need to support adding file metadata. Currently the only limitation of processed file formats is what can fit into fpcalc that is everything ffmpeg does support which is a lot and ideally the chosen solution should have the same capabilities.

Fact 2: It turns out that ffmpeg supports changing metadata.

To check:

  • whether there are many naming conventions for tags and do we need to choose one

  • whether changing metadata is possible for every processed audio file

  • if ffpmeg is going to be used: whether we should use it as a library or once again call the ready binary to do the heavy lifting just as it's done with fpcalc

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.