Skip to content

Instantly share code, notes, and snippets.

View bajosoto's full-sized avatar
👾
Saving the world

Sergio Soto bajosoto

👾
Saving the world
  • Ultimaker
  • Eindhoven, Netherlands
View GitHub Profile
@bajosoto
bajosoto / kodinfo.py
Created March 12, 2017 18:06
kodinfo
from beets.plugins import BeetsPlugin
class KodiNfo(BeetsPlugin):
def __init__(self):
super(KodiNfo, self).__init__()
self.register_listener('album_imported', self.makeAlbumNfo)
self.register_listener('item_imported', self.makeItemNfo)
def makeAlbumNfo(self, lib, album):
link = 'https://musicbrainz.org/release/{0}'