20 lines
354 B
Python
20 lines
354 B
Python
#! /usr/bin/python
|
|
|
|
# To change this template, choose Tools | Templates
|
|
# and open the template in the editor.
|
|
|
|
__author__="bjschuma"
|
|
__date__ ="$May 12, 2010 10:34:18 AM$"
|
|
|
|
|
|
import tagpy
|
|
from ocarina import vars
|
|
|
|
|
|
def get(path):
|
|
file = tagpy.FileRef(path)
|
|
tags = file.tag()
|
|
vars.ARTIST = tags.artist
|
|
vars.ALBUM = tags.album
|
|
vars.TITLE = tags.title
|