Previous 1 2 3 Next 62 Replies Latest reply: Mar 22, 2011 2:20 AM by turingtest2
allesim Level 1 Level 1 (0 points)
Apple itunes cannot use filename to import songs, it uses tracks instead?

The field <file name>, for all my mp3 is apparently NOT used by iTunes, for sorting. As a conclusion my library is totally messed up. I need some help...

Here the details:

I have organized my audiobooks for years, in this way:
file-name: D01 T01.mp3 then D01 T02 then ....then Dn Tm.
No id3 tag.
D01 T01.mp3 means the first track on Disc 01

D05 T14 means the 14th track on Disc 05

Usually audio books contain from 1 to 5 or 6 CDs

Across the years, i ripped all my mp3 with the same structure.

I put album info only on the folder name. For example, my last audio-books set was from Brian Tracy.
For the folder name I chose "Brian Tracy - Psychology of Selling"

The content includes
file-name: D01 T01.mp3 up to D05 T10.mp3

The software I used (Media Monkey) also filled automatically these fields:
title: track 01 up to track 10 for disco 01, then again track 01 to track 10 for disc 02, etc.

I have started to use iTunes since November. But every time I try to import I see that:
- file names are TOTALLY ignored
- I end up having 4 (FOUR) mp3 files called track 01, then another 4 (FOUR) MP3 files called track 02...and so on until track 10...a completely mess!

Since <file name> field (D01 T01.mp3) is apparently NOT used by iTunes, the conclusion is that my library is totally messed up.

Additionally iTunes imports the folder WITHOUT Looking at folder name, so all folders, in iTunes, show as "unknown artist , unknown album". This second issue is solved by me by manually editing the folder name and artist name (using "getinfo" function)

can somebody explain to me how can I force iTunes to import and sort my file using the FILENAME field (D01 T01.mp3) ? Instead of title field (track 01) ?

Any help is heartily appreciated!

Sony Laptop Z57, Windows 7, x64 bit
  • Matthew Smith Level 5 Level 5 (6,790 points)
    You cannot force iTunes to use the folder and file names when importing. It used the ID3 tags inside the MP3 files.

    You need to use an ID3 editor to place the details inside the MP3 files before you import into iTunes. I haven't used one in a very long time. You could try googling for one.

    Or you could edit the details inside iTunes after you import. iTunes will normally change the file name to be based on these tags.
  • turingtest2 Level 9 Level 9 (62,495 points)
    Hi, you either need to use a third party tagging program to populate the ID3 tags or you could try my script TagFromFilename, though it would need a little tweak as it is expecting to find tracks in
    <Artist>\<Album>\## <Track Name> layout.

    Until I got into writing iTunes scripts I found MediaMonkey quite useful. It has the ability to update tags based on parts of the filename & path and can sometimes fetch additional information from the web. The downside is that it takes quite a bit of effort to get iTunes to acknowledge the updated details.

    See also Audiobooks on iPods for tips on organising audiobooks for use with iTunes & iPod.

  • allesim Level 1 Level 1 (0 points)
    Dear Turin

    Thanks a lot! I will surely look into your scripts after finishing downloading.

    2. And yes, I did use MediaMonkey, during last years..unfortunately I instructed it to only save filename is the format Dxx Tyy, without other informations, like album, artist, etc.

    What is exactly ID3 and why it is important?

    Thanks again and merry Xmas
  • turingtest2 Level 9 Level 9 (62,495 points)
    ID3 is a standard that allows metadata (data about data) to be stored as part of the media file. The data is the music or audio content, the metadata is all the other infomration about it such as, track name, number, artist, album, date recorded etc... Applications such as iTunes read the ID3 tag in order to categorise the tracks. If there is no tag then generally all you get is a title. ID3 is specific to mp3 but other media formats often support a similar tagging scheme while the wav format, for example, doesn't support tagging at all.

    Unfortunately the default import options of iTunes let it reorganize music according to the data it derives from the tag. Since it only fills in the track name from the filename it may throw away other useful data from the path if given half a chance.

  • allesim Level 1 Level 1 (0 points)
    Dear ttl

    Under and as consequence of your explanations I do understand that I made a big mistake to encode my CDs with Media Monkey by just using the file-name as a I end up with a lot of albums, comprising of 4-5 CDs encoded as:

    D01 T01 (file-name)
  • allesim Level 1 Level 1 (0 points)
    encoded as:

    D01 T01 (=file-name) track01 (=title)
    D01 T02 track 02
    D02 T01 track 01
    D02 T02 track 02

    D06 T01 track 01

    Why? Because now itunes does NOT show my sorting (based on file-names).
    Instead iTunes shows something like:



    In other words: by losing my encoding structure (based on file name) I have 4 (if my personal development compilation comprises of 4 CD) or even more mp3 audio-files with the SAME name!

    Which of your scripts or external software can recover the file-name sorting which I so much enjoyed before joining the Apple iTunes bandwagon?

    Thanks a lot!
  • turingtest2 Level 9 Level 9 (62,495 points)
    First do you have the original files in their original folders? If iTunes has already swallowed them up and rearranged them there's not much I can suggest. Regular music would be susceptible to MusicBrainz Picard Tagger but that is unlikely to be the case in this instance. If you still have them in their original folder layout stored outside the iTunes Media folder then turn off *Copy to iTunes Media folder when adding to library* (Edit > Preferences > Advanced) so that iTunes points to the original files rather than copies it creates based on the partial information. It's proably also wise to turn off *Keep the iTunes Media folder organised* until you are cetain that iTunes has enough information to move all your files to sensible places when it tries to organise them.

    Can I confirm that each album is in a folder of the form *<Artist|Author> - <Album Title|Book Title>* and each file is in the form *D## T## <Title>.<ext>* ? If so then using the pattern *<Artist> - <Album>\D<Disc#> T<Track#> <Title>* with MediaMonkey's Auto-Tag From Filename feature should work. After updating the tags you'd either need to remove & reimport the tracks or use my UpdateTagInfo script. Alternatively I could create a special version of the TagFromFilename script to do both jobs in one...

  • allesim Level 1 Level 1 (0 points)
    Dear tt2

    Yes I have the original MP3 in the original location on my Hard disk (I run Win 7 x64). I DO NOT have some of the original CDs, from which I encoded the MP3... I have given CDs to friends or returned to libraries.

    By the way, my understanding is that either iTunes import full copies of my MP3 into the directory c:\iTunes (which I defined earlier) or "point" to the original location...nobody never alerted me that iTunes can "modify" the original files in their original location...this is scary. How can iTunes do that? Under which settings? Please can you elaborate? Thanks for alerting me...

  • allesim Level 1 Level 1 (0 points)
    Dear TT2

    I now reply to your questions:

    - Unfortunately NO, I did use MediaMoneky for all my encoding (from CD to MP3), but I neglected to store those tags (Author, Album)...if I could post a jpg or an attachment it would be very clear...(I do not know if it is possible to post).

    Anyway media monkey shows the following fields (I am looking at an audio books made of 6 CDs):
  • allesim Level 1 Level 1 (0 points)
    Title Path Artist Album Date Genre Rating Filename Lenght Track

    Track 01 C:\... blank blank blank blank blank D01 T01.mp3 2:34 1
    Track 12 D01 T12.mp3 2:29 12
    Track 01 D02 T01.mp3 5:39 1
    Track 01 D06 T01.m03 11:46 1
    Track 10 D06 T10.mp3 5:29 10
  • allesim Level 1 Level 1 (0 points)
    The audio books came in a box with 6 CDs.
    I ripped them using MM Gold, into MP3
    Whenever a CD disc was completely ripped I simply inserted the next one (say the 6th CD) and instructed Media Monkey to encode it with my usual coding: D06 T0x.mp3
    if the 6th CD had 10 tracks, then MM would end up with
    D06 T01.mp3 ...D06 T10.mp3
    Unfortunately the tracks were all reset from zero! So D06 T01.mp3 has a track tag = 1 exactly like D05 T01.mp3 and like D01 T01.mp3

    I would have MM to be smarter and not reset the track this case I would have:
    D06 T01.mp3 (file name) and Track 56 (instead of track 01)
    D06 T10.mp3 (file name) and Track 65 (instead of track 10)

    Apple iTune would have read the Track number and everything would be sorted fine.
    I would have been capable to listen track 55 and follow it with the next track 56...
    Now I only have track 01 to track 10, repeated n-times (n= number of CD = 6 in this particular audio book). So when I click on Track 01 i DO NOT know whether it comes from CD01 or from CD02 or ...from CD 06
    This is a big issue now...

    Thanks and waiting for your suggestions
  • turingtest2 Level 9 Level 9 (62,495 points)
    Can you show me the full path to one of the original files? Your first postgave an example folder name of "Brian Tracy - Psychology of Selling" so I'd expect to see the full path looking like:

    C:\<Some Path>\<Artist> - <Album>\D## T##.<ext>

    I've just tested my suggestion for MediaMonkey's Auto-Tag from filename and it seems it is not clever enough to implement the pattern matching string I suggested earlier.

    I should be able to modify my script for you so that Artist and Album can be extracted from the folder name, then set the track title to the Album title followed by the file name, e.g. *Psychology of Selling D01 T01,* which will ensure that the tracks sort properly on different iTunes devices and also set the disc & track numbers.

    I'll try to get this posted up later on tonight.

  • turingtest2 Level 9 Level 9 (62,495 points)
    OK, it's done. Download TagFromFilenameCustom.vbs to your computer.

    Make sure that you have disabled the advanced preference to *Copy to iTunes Media folder when adding to library*.

    Make a backup copy of your original audiobooks folder.

    Add the folder of audiobooks into iTunes.

    Select one or two of the newly added tracks and run the script. Select No on the first prompt so you can see what it will do with each file. If you are happy, run the script again, this time selecting Yes so it can make the changes on those selected files. If that works properly select a whole book and run the script on it. Repeat until done.

  • allesim Level 1 Level 1 (0 points)
    Dear tt2

    My email is simone<at>eagleway<dot>com
    Will you be so kind to explain how to use your scripts?
    If you can email to me, I will reply with screenshots (I cannot attach any screenshots here, it seems to me...)

    I tried the following 3 actions (see below) and the result is always:
    Sccript: C:\iTune\Scripts\TagFromFilenameCustom.vbs
    Line 208
    Char 2
    Error: invalid procedure call or argument: "Mid"
    Code: 800A0005
    Source: Microsoft VBScript runtime error

    1st action:
    I imported a folder called
    Arch Lustberg - How to sell Yourself - MP3
    Which included 37 trackes
    track 01 (originally D01 T01.mp3)
    track 01 (probably D02 T01.mp3)
    track 02 (probably D01 T02.mp3)
    and so on

    Then I highlihted the whole directory (which in iTunes showed as "Unknown album" and "unknown artist")
    Then I launched your script

    It asked

    <Email Edited by Host>
Previous 1 2 3 Next