Archive for Python

Msync 0.1 release

I’ve been testing msync for close to a month now, and I feel that I can finally say that it’s ready for release. I encountered a few bugs dealing with the efficiency of syncing multiple playlists, wildcards, and syncing albums with the same title, but I’ve fixed those errors and it is working very well now. If you’re interested, make sure you have python 2.5+ with the sqlite and PIL modules installed, and download it.

Comments

Msync Seemingly Stable

I’ve approached a point with msync where it seems to be stable enough (i.e. I can’t think of where else to go with/what else to add to the base library). I’m going to start working to test everything for everyday use by starting a library with my music collection and using it to manage my Sansa files. I’ll be sure to post again once I’ve decided to start working on the GUI frontend for it. In the meantime, I’ve attached the help information for anyone interested in seeing what it can do.

Read the rest of this entry »

Comments

Cover Copier

Here’s a little script I created to copy all of the covers from my mp3 folders over to my flac folders. It also came in handy a few days ago when I accidentally deleted all of the covers that were present on my Sansa.

#! /usr/bin/env python
 
import os
import sys
import shutil
import string
 
for root, dir, files in os.walk(sys.argv[1]):
    if len(dir) == 0:
        copy_from = sys.argv[2] + '/' + root.replace(sys.argv[1],'').translate(
                string.maketrans(':<>\|*?','_______'))
        try:
            for file in os.listdir(copy_from):
                if file == '.directory' or file.endswith(('.jpg','.jpeg','.png','.gif','.bmp')):
                    copy_file = copy_from + '/' + file
                    shutil.copy(copy_file, root)
        except OSError: pass

Comments

A wild project appears!

Lately I’ve been working on a new project to sync music with my Sansa e260. Unsatisfied with manually moving files on and off of the tiny flash drive, I began work on an application to manage playlists and sync them for me. I’ve gotten it to the point where it scans my music collection, allows me to create playlists, and syncs those playlists with any directory I specify. In the future, I plan on implementing removable device recognition and cover attachment and resizing. It also currently only functions as a command-line client, but there are plans to develop a GUI frontend for it once the base library is stable enough.

Anyway, the project page is available behind the link on the right (or right here).

Comments

« Previous entries