#1 2009-12-23 20:28

promethea
Member
Registered: 2009-12-23
Posts: 4

Filename from folder

Hello,

first, my mothertongue is not english and I do not know a lot about programming.

I found the programm today over a forum and tried it and liked it. And perhaps there is a perfect solution for my problem. But because my english is not so good I probably ask something that was asked before because I did not find it here at the forum, then I apologize.

I have a lot of mp3files from audiobooks
The folder struktur is
author - title - CDNr - files

Example
Rowling - Harry Potter 1 - 1 - 001.mp3
Rowling - Harry Potter 1 - 1 - 002.mp3
Rowling - Harry Potter 1 - 1 - 003.mp3
Rowling - Harry Potter 1 - 2 - 001.mp3
Rowling - Harry Potter 1 - 2 - 002.mp3
Rowling - Harry Potter 1 - 29 - 001.mp3


and the files in each CDNr-folder are 01-track.mp3, 02-track.mp3
and e.g. Harry Potter can have up to 29 CD-folder

Now I want to put all the mp3-files of one audiobook into one folder (without the CDNr-Folder) and with the a filename like Rowling - Harry Potter 1 - 001.mp3
Rowling - Harry Potter 1 - 002.mp3

With your programm I found the possibility to rename the files and also files from some folders at the same time. But I have the problem that I have e.g. 001.mp3 more than once I have it in every subfolder.

So my questions:

How can I array the files in their correct order ? first 001.mp3 from the folder CD1, second the 002 from CD1 up to 009 from CD1 followed by 001.mp3 from CD 2 and so on.

How can I take automatically the name of the three folders above the file to be written into the files name ?

I hope I could show what I mean, if not I will be happy to answer any questions.

Best regards,

promethea

Last edited by promethea (2009-12-23 20:36)

Offline

#2 2009-12-23 20:58

Stefan
Moderator
From: Germany, EU
Registered: 2007-10-23
Posts: 1,161

Re: Filename from folder

Hi promethea and welcome  smile

Your english is very fine.


To understand you right, you say you have:

X:\music\Rowling - Harry Potter 1\1\01-track.mp3
X:\music\Rowling - Harry Potter 1\1\02-track.mp3
X:\music\Rowling - Harry Potter 1\1\03-track.mp3
[...]
X:\music\Rowling - Harry Potter 1\29\01-track.mp3
X:\music\Rowling - Harry Potter 1\29\02-track.mp3
[...]


and you want something like:

X:\music\Rowling - Harry Potter 1\1-01-track.mp3
X:\music\Rowling - Harry Potter 1\1-02-track.mp3
X:\music\Rowling - Harry Potter 1\1-03-track.mp3
[...]
X:\music\Rowling - Harry Potter 1\29-01-track.mp3
X:\music\Rowling - Harry Potter 1\29-02-track.mp3

or what?

And second:
> How can I take automatically the name of the three folders above the file to be written into the files name ?

There are a few possibilities.
Use INSERT rule with meta tag ":File_FilePath:" as Prefix
Then use next an REPLACE rule to replace all "\" by an char you like,
and also REPLACE some parts of this path name with nothing to remove them.

You should provide a few ( 3-5) real examples of your path and file name
and also what they should look after the renaming.
All other is wild guessing and many-page-long-threads  tongue

CU


Read the  *WIKI* for HELP + MANUAL + Tips&Tricks.
If ReNamer had helped you, please *DONATE* to Denis or buy a PRO license. (Read *Lite vs Pro*)

Offline

#3 2009-12-23 21:16

ThanhLoan
Member
Registered: 2009-12-17
Posts: 17

Re: Filename from folder

Hi promethea,
I think you first need to rename you mp3 files of each folder to make them unique.
Use Renamer Insert/Prefix
Exp :
mp3 files in 'Rowling - Harry Potter 1 - CD1' must be renamed to something like CD1-001.mp3, CD1-002.mp3 ...etc
Folder : Rowling - Harry Potter 1 - CD1
Files :                   CD1-001.mp3
                            CD1-002.mp3
                            etc...
Then
Folder : Rowling - Harry Potter 1 - CD2
Files :                   CD2-001.mp3
                            CD2-002.mp3
                            CD2-003.mp3
                            etc...

and so on...
Once you have renamed the files of all Harry Potter 1,
you will have to move all files under Harry Potter 1 into an Audiobook folder which will contain :
                            CD1-001.mp3
                            CD1-002.mp3
                            CD2-001.mp3
                            CD2-002.mp3
                            CD2-003.mp3

Hope this helps

Offline

#4 2009-12-23 22:26

promethea
Member
Registered: 2009-12-23
Posts: 4

Re: Filename from folder

Hello Stefan,

I have:

X:\Rowling \ Harry Potter 1\1\01-track.mp3
X:\Rowling \ Harry Potter 1\1\02-track.mp3
X:\Rowling \ Harry Potter 1\1\03-track.mp3
[...]
X:\Rowling \ Harry Potter 1\29\01-track.mp3
X:\Rowling \ Harry Potter 1\29\02-track.mp3
[...]

and I want it like:

X:\Rowling \ Harry Potter 1\Rowling - Harry Potter 1 - 01.mp3
X:\Rowling \ Harry Potter 1\Rowling - Harry Potter 1 - 02.mp3
X:\Rowling \ Harry Potter 1\Rowling - Harry Potter 1 - 03.mp3
[...]
X:\Rowling - Harry Potter 1\Rowling - Harry Potter 1 -  134.mp3
X:\Rowling - Harry Potter 1\Rowling - Harry Potter 1 -  135.mp3

Other example:

x:\Brown\Illuminati\1\01.mp3
x:\Brown\Illuminati\1\02.mp3
x:\Brown\Illuminati\1\03.mp3

x:\Brown\Illuminati\2\01.mp3
x:\Brown\Illuminati\2\02.mp3
x:\Brown\Illuminati\2\03.mp3

Should be

x:\Brown\Illuminati\Brown - Illuminati - 01.mp3
x:\Brown\Illuminati\Brown - Illuminati - 02.mp3
x:\Brown\Illuminati\Brown - Illuminati - 03.mp3

x:\Brown\Illuminati\Brown - Illuminati - 04.mp3
x:\Brown\Illuminati\Brown - Illuminati - 05.mp3
x:\Brown\Illuminati\Brown - Illuminati - 06.mp3


So the files should have ongoing numbers. (Harry Potter is an extrem example with all the files)

I tried to do the rule
INSERT with meta tag ":File_FilePath:" as Prefix

But it seems my programm does not know the "FilePath" because I have it as this text in the new name
But this would be the perfect match for my problem. Maybe a problem because of more than 2 folders ?


My example looks like this:

old name: 01_~Track.mp3
new name: :File_FilePath: - 01_~Track.mp3


Under "Help" - "About" "What's new" is says "renamer 5.50"

Thanks a lot for your help so far.

Best regards,

promethea

Offline

#5 2009-12-23 22:42

promethea
Member
Registered: 2009-12-23
Posts: 4

Re: Filename from folder

Hello,

what I do at the moment is like this

First step
I go to the parent folder (brown) get all file from the subfolders

Insert the :File_FolderName: - as prefix

and RENAME

Second Step

I sort the files and they look like that
1-001.mp3
1-002.mp3
1-003.mp3
2-001.mp3
2-002.mp3
2-003.mp3

Then I

- delete the first number from right
- delete the first three numbers from left
- insert the autor and title by hand
- serialice as suffix

and I get

Brown - Illuminati - 001.mp3
Brown - Illuminati - 002.mp3
Brown - Illuminati - 003.mp3
Brown - Illuminati - 004.mp3
Brown - Illuminati - 005.mp3
Brown - Illuminati - 006.mp3

But I would like to get the "autor - titel" automaticly



Best regards,

promethea

Offline

#6 2009-12-23 23:18

Stefan
Moderator
From: Germany, EU
Registered: 2007-10-23
Posts: 1,161

Re: Filename from folder

Hi promethea,

FROM:
X:\Rowling \ Harry Potter 1\1\01-track.mp3
TO:
X:\Rowling \ Harry Potter 1\Rowling - Harry Potter 1 - 01.mp3


Just an guess, try this:

1) Delete: Delete from Position 1 until the End
2) Insert: Insert ":File_FilePath:" as Prefix
3) Delete: Delete from Position 1 until Count reaches 3 (skip extension) to remove the drive letter
4) RegEx: Replace expression "(.+)\\\d+\\(.+)" with "$1 - $2" (skip extension) search for "\1\" and remove them
5) Remove: Remove all "-track" (skip extension)
6) Replace: Replace all "\" with " - " (skip extension)
(Thanks Denis for this wonderful "copy rules to clipboard feature)

ReNamer_any_001.gif


HTH? big_smile
If yes, please help two others too and maybe spent something to Denis.


Read the  *WIKI* for HELP + MANUAL + Tips&Tricks.
If ReNamer had helped you, please *DONATE* to Denis or buy a PRO license. (Read *Lite vs Pro*)

Offline

#7 2009-12-23 23:42

Stefan
Moderator
From: Germany, EU
Registered: 2007-10-23
Posts: 1,161

Re: Filename from folder

EDIT: now i understand that the leading number of the file name has to be increased for all that folders.

I have not your folder structure so it's not easy for me to imaging this, but I think this can work:

( first test with copies of your files only !   
And maybe you have to do some settings in ReNamer or check some options too to make this work?)

Select the top folder of ONE audiobook only due the serialization.

1) Delete: Delete from Position 1 until the End
2) Insert: Insert ":File_FilePath:" as Prefix
3) Delete: Delete from Position 1 until Count reaches 3 (skip extension)
4) RegEx: Replace expression "(.+)\\\d+\\(.+)" with "$1 - $2" (skip extension)
5) Remove: Remove all "-track" (skip extension)
6) Replace: Replace all "\" with " - " (skip extension)
----
7) RegEx: Replace expression "(.+ - )\d+$" with "$1" (skip extension) >>remove the last digits after the last dash -
8) Serialize: Serialize Incremental from 1 step 1 and pad to length 3 as suffix (before extension) >> add new numbers


Read the  *WIKI* for HELP + MANUAL + Tips&Tricks.
If ReNamer had helped you, please *DONATE* to Denis or buy a PRO license. (Read *Lite vs Pro*)

Offline

#8 2009-12-24 09:13

SafetyCar
Senior Member
Registered: 2008-04-28
Posts: 446
Website

Re: Filename from folder

I would make it this way:

1) Insert a PascalScript rule with this: begin FileName:=FilePath; end.
(this step can be done like stefan says above, with first an second step, but to do it in that way you need to be using the latest beta version of the program)
-
2) Make sure of the order
-
3) RegEx,  Replace:"([^\\]+)\\([^\\]+)\\[^\\]+\\[^\\]+$" with "$1\\$2\\$1 - $2 - " and mark skip extension
4) Serialize: Serialize Incremental from 1 step 1 and pad to length 3 as suffix (before extension) >> add new numbers

Oh, but you'll have to delete manually the empty CD-number folders

Last edited by SafetyCar (2009-12-24 09:51)


If this software has helped you, consider getting your pro version. :)

Offline

#9 2009-12-24 14:19

promethea
Member
Registered: 2009-12-23
Posts: 4

Re: Filename from folder

Hello,

my problem is:

2) Insert: Insert ":File_FilePath:" as Prefix

That doesn't work, the programm inserts only the real text and not the individuell path.


But it works with the PascalScript.

I will try this at the weekend because I have to leave my computer now. ;-) It's Christmas.

Thanks a lot and I will tell you when I found my solution.



Merry Christmas

promethea

Offline

#10 2009-12-24 16:03

Stefan
Moderator
From: Germany, EU
Registered: 2007-10-23
Posts: 1,161

Re: Filename from folder

.
EDIT: promethea you have to use the latest beta of ReNamer, please see the next two posts too.
.


promethea wrote:

my problem is:

2) Insert: Insert ":File_FilePath:" as Prefix

That doesn't work, the programm inserts only the real text and not the individuell path.

1) Add rule INSERT
2) You just have to type or paste in :File_FilePath: in the insert field.
    That's colon parameter colon, without quotes but incl. the colons :.
3) click on [ + Save Rule]



Or step-by-step:
1) Add rule INSERT
2) click on "Insert Meta Tag"
3) click on :File_FilePath:
4) click [Insert]
5) click on [ + Save Rule]
Done


Of course you find this in the help too > Understanding the rules > Insert Rule
and also on the wiki => http://www.den4b.com/wiki/ReNamer:Rules:Insert

.

Last edited by Stefan (2009-12-24 22:47)


Read the  *WIKI* for HELP + MANUAL + Tips&Tricks.
If ReNamer had helped you, please *DONATE* to Denis or buy a PRO license. (Read *Lite vs Pro*)

Offline

Board footer

Powered by FluxBB