Notices


Reply
Thread Tools
nwerneck's Avatar
Posts: 304 | Thanked: 233 times | Joined on Jul 2009 @ São Paulo, SP, Brasil
#1
Hi folks. I made this little python script that opens up the media library (the one that the media player reads), look for the ogg files, then fetch the tags from the files and write into the database. Should I try to turn this into a downloadable package or something?...

I hope this helps all ogg users out there until the day we figure out how to be happy with out NITs.

Have fun!
Attached Files
File Type: txt ogg-hat-hacker.py.txt (1.0 KB, 149 views)
 

The Following 3 Users Say Thank You to nwerneck For This Useful Post:
Posts: 384 | Thanked: 90 times | Joined on Mar 2008
#2
Thanks! It's a shame this linux OS is so ogg unfriendly out of the box.
 
Posts: 384 | Thanked: 90 times | Joined on Mar 2008
#3
So what am I doing wrong?

./ogg-hat-hacker.py
Traceback (most recent call last):
File "./ogg-hat-hacker.py", line 18, in <module>
cur.execute("select Filename from Metadata where Filename LIKE '%.ogg'")
pysqlite2.dbapi2.OperationalError: no such table: Metadata
 
nwerneck's Avatar
Posts: 304 | Thanked: 233 times | Joined on Jul 2009 @ São Paulo, SP, Brasil
#4
Sorry for the delay. I don't know well how the metalayer-crawler works, and what could change in different machines. There should be a ~/.meta_storage file in your home directory, and it should have a Metadata table there... Can you check that? Are you sure the crawler is up and running?
 
Posts: 384 | Thanked: 90 times | Joined on Mar 2008
#5
Thanks, I turned on the crawler service and ran your script as user from /home/user. I was running it as root in /root earlier. Now it works.

Last edited by st5150; 2009-08-30 at 22:34.
 
Reply


 
Forum Jump


All times are GMT. The time now is 06:39.