Blog2013 ≫ Python FTW!

Lawks, I just wrote my first XBMC plugin, and it worked first time, and it's working live, updating tracks on last.fm1 with my genre tags as I listen to them - see my profile2 for more:

You tagged The Wombats - Guillotine with indie. 2 minutes ago You tagged Bauhaus - Hair of the Dog with bootleg, live, goth and 2 other tags. 7 minutes ago

I use those genre tags to make the VENN of ROCK and other charts of what I'm listening to that are in the sidebar over there -> Previously I was updating those tags using a plugin that I wrote for Media Monkey, but as I don't play music on the PC much any more it was not getting updated.

This is not just my first XBMC plugin, it's my first ever python. I copied most of it from the last.fm scrobbler plugin provided by the XBMC team, but still, I did not expect it to work so smoothly. I will offer my changes back to the core.

I was planning to spend the rest of the evening working on this, but now I'm done!

Glossary:

xbmc: X-box Media Centre, some software that would run on an old xbox or other computer hardware to play movies and music etc. I used to talk about this a lot...

⬅️ :: ➡️

Paul Clarke's blog - I live in A small town, Kent. Wed + father to 2, I am a full-stack web engineer, and I do js / Node, some ruby, other languages etc. I like pubs, parkrun, restaurants, home automation + other diy stuff, history, family tree stuff, Television, squirrels, pirates, lego, and TIME TRAVEL.