-
All replies
-
Helpful answers
-
Feb 10, 2013 5:35 AM in response to thecucuzzaby turingtest2,Sorry for the delay in getting back to you. I've reworked the script in such a way that it should manage to continue after an error processing the artwork details and record "Unknown" in the Embedded column. I just threw 3,000 tracks at it without an error so I'm still in the dark as to what was actually causing a problem. Download the updated version and let me know how you get on. If you do get any unknowns I'd be interested to know if you can spot any pattern.
tt2
-
Feb 18, 2013 7:46 AM in response to turingtest2by thecucuzza,Unfortunately, I'm coming across the same error. It stops at a particular song and does not output anything beyond that. I checked to see if there is any sort of property about that song that is different than any of the others, but there is not. Any ideas?
-
Feb 18, 2013 9:12 AM in response to thecucuzzaby turingtest2,Any error message or does it just hang? If you remove that song from the selection does it hang on a different one?
tt2
-
Feb 18, 2013 9:22 AM in response to turingtest2by thecucuzza,It's the same error message as the screenshot I posted a while ago. If I remove the file from the library, it will continue, but will hang on a different one. I try to see a pattern between the ones that hang, but there is none... Not really sure how to resolve other than trial and error of removing the ones that will cause the script a problem... It's a shame because you're script does great work for the files that DO work.
-
Feb 18, 2013 9:32 AM in response to thecucuzzaby turingtest2,What line does it currently fail on? Perhaps I need to revist that bit of the code. One workaround would be to create a regular playlist and throw "troublesome" tracks into it, then create a smart playlist which excludes the problem files.
tt2
-
Feb 18, 2013 10:24 AM in response to turingtest2by thecucuzza,I don't have the file in front of me at the moment, but I remember it was somewhere a little past 3700
-
Feb 18, 2013 10:48 AM in response to thecucuzzaby turingtest2,I meant line in my script. The error line might show if there is some other section of code that I need to put an error trap around.
tt2
-
Feb 18, 2013 3:22 PM in response to turingtest2by thecucuzza,Line: 133
Char: 9
Error: Invalid procedure call or argument
Code: 800A0005
-
Feb 18, 2013 5:04 PM in response to thecucuzzaby turingtest2,I've updated the script again. Hopefully errors in that line will now be ignored.
tt2
-
Feb 18, 2013 6:31 PM in response to turingtest2by thecucuzza,Unfortunately, it returned a different error now.
Line: 152
Char: 3
Error: Catastrophic failure
Code: 8000FFFF
Source: (null)
-
Feb 19, 2013 1:57 AM in response to thecucuzzaby turingtest2,I've tweaked it again... Still love to know what the real problem is.
tt2
-
Feb 20, 2013 5:20 AM in response to turingtest2by thecucuzza,It worked this time! Thanks! This is an extremely useful script.
My only question... where is it pulling the metadata from? It outputted some files as having artwork of something like 217x344 when I know for a fact the embedded art was 500x500. I checked the embedded art and confirmed that it was, in fact, 500x500. I do remember that the art in there before I corrected it to its current state of 500x500 was 217x344. The 500x500 artwork is embedded in the file. Does this mean that the art was not fully embedded in the ID3 tag? How do I ensure it is fully embedded?
I'll give you another example/question: Some of my MP3s do not have anything written in the "Comment" field, but when I run them through a program like MP3TAG (http://www.mp3tag.de/en/), it still shows me that there is a comment in the comment field. Another example is that the genre shown in iTunes is not how the genre appears in the 3rd party program. I also notice that, when looking in the Windows folder the mp3s are contained in, and looking at the mp3 tags within the Windows folder as you add custom columns, it sometimes does not match what is in iTunes. Is there some relation?
How do I ensure that what is in iTunes is written in the very fabric of the ID3 tag because I know my iTunes library is right (as you could probably tell, I prune it carefully)? Sorry if I am a bit confusing with my questions, let me know if you need any help. Also, thank you very much for all your help. To some, these issues may seem trivial, but I'm curious as to why this stuff happens.
Thanks!
Joe
-
Feb 20, 2013 6:54 AM in response to thecucuzzaby turingtest2,I can't say I know all the answers. The script works by going through each selected track in turn. With each track it pulls something called the ArtworkCollection from the iTunes object model. This is the artwork that iTunes claims it knows about. The collection consists of one or more artwork objects. Each artwork object has properties that describe whether it is downloaded or embedded and what format it is in. The script attempts to save a temporary file in the correct format, then uses a Windows component to load the artwork file and read off the dimensions. This is the information that gets output by the script.
Because I haven't been able to work out exacty what was causing problems and I've thrown the "skip on error" code in a bit hastily there is, I suppose, the slim possibility that after an error in accessing or generating the artwork the wrong information is processed on a subsequent pass.
The other major problem with files in mp3 format and iTunes is the handling of files with multiple tags. Files may have both ID3v1 and ID3v2.x tags, and if I read the ID3 specification correctly there is also support for multiple ID3v2.x tags each coded for a different language. When there are multiple tags iTunes behaviour can sometimes be unpredictable. In some cases edits to the metadata can be written to one tag, and visible in Windows Explorer, but iTunes insists on reading back unchanged values from the other. In such cases you can use Convert ID3 Tag > None several times followed by Convert ID3 Tag > V2.3 and whatever iTunes knows about the file will be written to it, but embedded artwork is erased so needs to be reattached. My script CreateFolderArt used before and after tag conversions is one way to workaround that part of the problem.
Certain pre-defined genres are represented by a code rather than text so that they can be presented in the local system language. There is always a possibility that Windows and iTunes have slightly different values in the look-up tables for some of these.
tt2
-
Feb 21, 2013 7:28 PM in response to turingtest2by thecucuzza,So I found out what was causing the issue that yielded the script errors. There was one line item in my list of songs that actually did not point to a file. In other words, the file was added at one point, but then was deleted from the original path, however, the line item stayed in iTunes. I think the edits you have done to your script were great though, because what if there was another error? The script should not stop just because it found an error in one item (especially if it's early on in the list). I'm doing a bit more analysis of my library, so if I have further questions, I'll be sure to post here. Thank you for all of your help!
-
Feb 22, 2013 1:16 AM in response to thecucuzzaby turingtest2,A missing file??? Grr, I'm sure I normally test for that elsewhere in the script.
tt2