My blog is up. Finally. I’ve been meaning to set up a website and blog for ages. For some reason I can’t just go for the blogger account. I must go complicated with my own domain, my server, and, of course, the simplistic design that took me longer to perfect than I’d like to admit. Yay!
The rest of the website is in the works. Django is my new buddy.
Hopefully I can get a post up a week, minimum. Yeah. This week will have two. So to that one guy who might stumble here on accident, you’re getting a treat. :p
Here is some obligitory code so I can get the junk to look right:
def parsem3u(f):
lines = getlines(f)
files = []
for i in range(len(lines)):
if not lines[i].startswith('#'):
fileinfo = {'filename': lines[i]}
#previous line has title info
if lines[i-1].startswith('#EXTINF:'):
fileinfo['title'] = getm3utitle(lines[i-1])
files.append(fileinfo)
return files
Ben





