Page 2 of 2 FirstFirst 12
Results 16 to 22 of 22

Thread: iTunes scripts

  1. #16
    Join Date
    Aug 2005
    Location
    Cranbourne West
    Age
    72
    Posts
    3,612

    Default

    Quote Originally Posted by ian View Post
    One of the things we need to know is

    1) what are "lyrics"? Are "lyrics"
    a) an associated text file with the words in a song?
    No, the lyrics (or any text) is embedded within the MP3 file in the lyrics field.
    b) a tune with vocals?
    Any text within the lyrics field is considered lyrics. It could be the word Instrumental.
    and
    I don't know the answers to the following questions, sorry.
    2) how does the script know a tune has "lyrics"? is it
    a) because the user has previously run the script and a set a Lyric.tag to "yes"
    b) because iTunes has gone on line and searched other user's settings?
    c) some other method?


    logically, the script needs to be reading a value somewhere in the meta data to know if a tune has "lyrics"
    and

    Some screenshots that may give you an understanding of how iTunes stores lyrics.

    1. Right lick in the tune you want to find info on.
    Lyrics 1.jpg

    2. Select Song Info.
    Lyrics 2.jpg

    3. Click on Lyrics Tab.
    Lyrics 3.jpg
    To grow old is inevitable.... To grow up is optional

    Confidence, the feeling you have before you fully understand the situation.

    What could possibly go wrong.

  2. # ADS
    Google Adsense Advertisement
    Join Date
    Always
    Location
    Advertising world
    Age
    2010
    Posts
    Many





     
  3. #17
    Join Date
    Mar 2018
    Location
    Sydney
    Posts
    1,166

    Default

    ok, so then the only thing that's really needed is to know what you think did or didn't happen when you ran the script that Ian suggested. Did your new playlist get created? Did any tunes get added to it? Did those ones have Lyrics or not, or were they mixed?

  4. #18
    Join Date
    Aug 2005
    Location
    Cranbourne West
    Age
    72
    Posts
    3,612

    Default

    I ran the original (unedited) script:

    StartTimer
    Select Case R
    Case vbYes
    C=True
    Case vbNo
    C=False
    S=S+1 ' Increment skipped tracks
    Case Else
    Quit=True
    Exit For
    End Select
    Else
    C=True
    End If
    If C Then ' We have a valid track, now do something with it
    Action T

    And found 23028 songs with lyrics.

    Has Lyrics orig output.jpg



    and two edited versions:

    #1
    StartTimer
    Select Case R
    Case vbYes
    C=False
    Case vbNo
    C=True
    S=S+1 ' Increment skipped tracks
    Case Else
    Quit=False
    Exit For
    End Select
    Else
    C=False
    End If
    If C Then ' We have a valid track, now do something with it
    Action T

    And found no songs, either with, or, without lyrics

    #2
    Select Case R
    Case vbYes
    C=False
    Case vbNo
    C=True
    S=S+1 ' Increment skipped tracks
    Case Else
    Quit=True
    Exit For
    End Select
    Else
    C=True
    End If
    If C Then ' We have a valid track, now do something with it
    Action T

    This script came up with the same results as the original unedited script

    Has No Lyrics Ver 2 Output.jpg
    To grow old is inevitable.... To grow up is optional

    Confidence, the feeling you have before you fully understand the situation.

    What could possibly go wrong.

  5. #19
    Join Date
    Mar 2018
    Location
    Sydney
    Posts
    1,166

    Default

    Please do the change that was suggested last. The change in the "Updateable=" line will invert the selection (it used to be a not-equal-to Empty, ie had text, and the change will only include those where it is empty)

    Else ' No updating values which won't change
    Updateable=(T.Lyrics & "")<>""
    End If
    End Function


    Try changing the line near the end to:

    Updateable=(T.Lyrics & "") = ""



    Also, the lines near the top like

    Playlist="Has Lyrics"
    Title="Has Lyrics To Playlist"
    Summary="Check for files with lyrics and, if found, create/refresh a playlist called" & vbCrLf & Playlist & " into which to place the results."


  6. #20
    Join Date
    Aug 2005
    Location
    Cranbourne West
    Age
    72
    Posts
    3,612

    Default

    Quote Originally Posted by nyamo_iaint View Post
    Eww, Visual Basic.... not a language I use.
    How about this then, there is a function called "Updateable" which has a check for something called "T.Lyrics", and says that a track is "updateable" if it has lyrics:

    Function Updateable(T)
    If T.Location="" Then ' Missing files can't be processed by this script
    M=M+1 ' Increment missing tracks
    If Prog Then PB.SetDebug "<br>Missing file!" : WScript.Sleep 500
    Updateable=False
    Else ' No updating values which won't change
    Updateable=(T.Lyrics & "")<>""
    End If
    End Function


    Try changing the line near the end to:

    Updateable=(T.Lyrics & "") = ""



    Also, the lines near the top like

    Playlist="Has Lyrics"
    Title="Has Lyrics To Playlist"
    Summary="Check for files with lyrics and, if found, create/refresh a playlist called" & vbCrLf & Playlist & " into which to place the results."


    should be changed to specify "Without Lyrics", or whatever you like I guess.

    I can't guarantee this works either, it may, or it may reformat your hard drive, or invoke nasal demons.

    Iain
    Quote Originally Posted by poundy View Post
    Please do the change that was suggested last. The change in the "Updateable=" line will invert the selection (it used to be a not-equal-to Empty, ie had text, and the change will only include those where it is empty)

    Else ' No updating values which won't change
    Updateable=(T.Lyrics & "")<>""
    End If
    End Function


    Try changing the line near the end to:

    Updateable=(T.Lyrics & "") = ""



    Also, the lines near the top like

    Playlist="Has Lyrics"
    Title="Has Lyrics To Playlist"
    Summary="Check for files with lyrics and, if found, create/refresh a playlist called" & vbCrLf & Playlist & " into which to place the results."

    Thank you so much guys, this edit has seemed to work. I tried it on a small selection of songs and it returned a playlist containing only songs with no lyrics.
    I will now run it on the whole library.

    Has No Lyrics.jpg
    To grow old is inevitable.... To grow up is optional

    Confidence, the feeling you have before you fully understand the situation.

    What could possibly go wrong.

  7. #21
    Join Date
    Aug 2005
    Location
    Cranbourne West
    Age
    72
    Posts
    3,612

    Default

    I ran the script of the complete collection and it worked perfectly.
    Once again, thank you so much to everyone who replied and offered suggestions, they were all appreciated.

    Has No Lyrics.jpg
    To grow old is inevitable.... To grow up is optional

    Confidence, the feeling you have before you fully understand the situation.

    What could possibly go wrong.

  8. #22
    Join Date
    Aug 2005
    Location
    Cranbourne West
    Age
    72
    Posts
    3,612

    Default

    Funny thing I'm noticing is that as I fill more of the songs with lyrics it takes less time for the script to run. I didn't think the run time would change as it still has to scan all the tracks to see which ones have lyrics. Not complaining, just an observation.
    To grow old is inevitable.... To grow up is optional

    Confidence, the feeling you have before you fully understand the situation.

    What could possibly go wrong.

Page 2 of 2 FirstFirst 12

Similar Threads

  1. iTunes Scriots
    By Grumpy John in forum COMPUTERS
    Replies: 0
    Last Post: 22nd November 2017, 12:03 PM
  2. iTunes doesn't understand classical music
    By Big Shed in forum COMPUTERS
    Replies: 14
    Last Post: 7th September 2012, 11:08 PM
  3. iTunes Gift Certificate... SCAM!
    By Woodwould in forum NOTHING AT ALL TO DO WITH WOODWORK
    Replies: 3
    Last Post: 29th May 2010, 12:14 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •