Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python3
import os
from os.path import join, expanduser
from random import randint
import secrets
num_files = 10000
file_size_min = 4
file_size_max = 10

Audio tag editor for GNOME Music

My project for Google Summer of Code, 2016 was to implement a tag editor for songs through the GNOME Music application.

The following were my original aims when I put forward my proposal as a candidate:

  • Create a graphical frontend to enable the user to perform manual edits on atleast a single song at a time.
  • Establish a platform that fetches automatic tags for the song from a webservice and present them to the user.

I achieved both these targets although with some inconsistencies that I'll continue to work on. But more on that later. The editor has exclusively been made for editing single songs only as of now. And automatic metadata is fetched using two web services simultaneously. The design and user experience are under consideration for the current editor as well as for any future extensions.

---------------------------
-- Source initialization --
---------------------------
source = {
id = "grl-musicbrainz",
name = "MusicBrainz",
description = "A plugin for fetching music metadata",
supported_keys = {
"title",