thanks, i'll take a look ;]
--
http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Ok, so the function simplifyed without loops:
>
> def renamer(folder, band):
> archive = #file to transform
> rest = archive[3:]
> print band + " -",rest.capitalize()
>
>
> obs: the file names came this way(with spaces or apostrophes)
On Nov 01, Dudu Figueiredo wrote:
> I wrote a simpler script based in Micah Elliott's help...
I expanded my code from this thread to be a Cookbook recipe. It has
no specificity for MP3 renaming, but is generic to files with
shell-unfriendly names. It should usable as-posted if anyone needs to
cl
I wrote a simpler script based in Micah Elliott's help, it's to add the
band name to mp3 files imported with iTunes:
import glob, os
def renamer_itunes(songdir, band):
""" Rename mp3 files imported from itunes, transformation:
Song Name.mp3 --> Artists - Song Name.mp3
"""
os.c
The best free app I've found for this is MusicBrainz [www.musicbrainz.com].
This has a huge database of obsessively correct details of albums
which can be formatted in anyway you choose. It can automatically
recognise which song an MP3 is!
This is a similar script I wrote to renumber files in se
On Mon, 31 Oct 2005, Micah Elliott wrote:
> On Oct 31, Micah Elliott wrote:
>> Now I need to go beautify my collection. :-)
>
> While a fun exercise, there are probably already dozens (or
> thousands?) of utilities in existence that do this and much more.
Seconded. I initially considered writing
Oh, forget what i've just said, i didn't read the __debug__ part.
It worked perfectly =]
Realy good Python classes!
Eduardo Figueiredo
http://dudufigueiredo.com
--
http://mail.python.org/mailman/listinfo/python-list
Micah, thanks a lot, nice script!
But its not completly working, i ran this:
fix_ugly_song_names('C:\My Shared Folder\Rubber Soul', 'The
Beatles', spacerepl=' ')
And the shell prints this:
01 drive my car.mp3 --> The Beatles - Drive My Car.mp3
02 norwegian wood (this bird has flo).mp
On Oct 31, Micah Elliott wrote:
> Now I need to go beautify my collection. :-)
While a fun exercise, there are probably already dozens (or
thousands?) of utilities in existence that do this and much more.
--
_ _ ___
|V|icah |- lliott http://micah.elliott.name [EMAIL PROTECTED]
" " """
On Oct 31, [EMAIL PROTECTED] wrote:
> but my focus is to learn how to acess a folder and rename all files in
> this folder.
This is a little more flexible than my last post, and it does the
whole job::
#! /usr/bin/env python
import glob, os, string
def fix_ugly_song_names(songdir, b
Micah, thanks a lot,
but my focus is to learn how to acess a folder and rename all files in
this folder.
Somyhing like this:
def renamer(folder, band):
folder = #place to act
archive = #file to transform
rest = archive[3:]
print band + " -", rest.capitalize()
And t
On Oct 31, [EMAIL PROTECTED] wrote:
> ...
> obs: the file names came this way(with spaces or apostrophes) from
> the cd i imported.
So remove them first. Here's a possible solution::
#! /usr/bin/env python
import glob, os.path
uglies = glob.glob("*.mp3")
print 'uglies:', uglies
Ok, so the function simplifyed without loops:
def renamer(folder, band):
archive = #file to transform
rest = archive[3:]
print band + " -",rest.capitalize()
obs: the file names came this way(with spaces or apostrophes) from the
cd i imported.
--
http://mail.python.org/m
On Oct 31, [EMAIL PROTECTED] wrote:
> I have one folder containing mp3 files, the folder is:
> C:\My Shared Folder\Rubber Soul
>
> And the files are:
> 03 you won't see me.mp3
> .
>
> I'm trying to rename files to:
> The Beatles - You Won't See Me.mp3
> .
My first suggestion is that you make bet
I have one folder containing mp3 files, the folder is:
C:\My Shared Folder\Rubber Soul
And the files are:
01 drive my car.mp3
02 norwegian wood.mp3
03 you won't see me.mp3
04 nowhere man.mp3
.
.
.
I'm trying to rename files to:
The Beatles - Drive My Car.mp3
The Beatles - Norwegian Wood.mp3
The B
15 matches
Mail list logo