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)
Question: 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! SA
Sony Laptop Z57, Windows 7, x64 bit
Reply by turingtest2 on Dec 16, 2010 8:04 AM
I've sent you an email with a return address, but in general you can post the images up to any publicly visible web space and then place a standard html img tag within your post.All the scripts on my site work by selecting one or more tracks in the iTunes interface and then running the script. It would seem you've managed to get that far if you're being asked for the correct number of tracks to process. The script lacks robust error checking but should have worked if things were as you originally described them. I'm pretty sure the error will be caused by your folder names NOT being in the pattern <Artist> - <Album>.(Just checked, and I get the same error if there is no " - " in the folder name.)I'll post up a new version shortly...I've posted up a new version at the same link. This assumes that you've used the more normal <Some path>\<Artist>\<Album>\<Filename>.<Ext> layout. It should still work slightly more sensibly if you don't have this layout first, though it should be easy enough to rename the folders before import to iTunes if you want. Again the script assumes the filename is in the *D## T##.<ext>* layout you've previously described and will not produce sensible results if the filename does not conform.The reason for disabling *Copy to iTunes Media folder when adding to the library* is that iTunes is then connected to the copy of the file *with its original file name and folders*. The script can read this information and update iTunes and the file's internal tag with the data. When everything is correctly labeled in iTunes you can turn the feature back on and condolidate the tracks which will make copies inside the iTunes folder.Note I suggested that you make a backup copy of the original media folder first to ensure that even if my script makes matters worse you can at least go back to where you started.tt2Message was edited by: turingtest2
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.
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.
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 pointer...so I end up with a lot of albums, comprising of 4-5 CDs encoded as:
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...
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...
- 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):
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 number...in 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...
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.
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.
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