Show Show Notes on iPod

    Does somebody know where show notes are?Probably many iPod users and podcast listeners all came across the problem of showing "Show Notes." In some podcasts they are shown, in others not, in the third sometimes shown, sometimes not. The problem is that the iPod doesn’t really have the ability to show shouts, but shows the lyrics (Lyrics) for the tracks. Accordingly, where the beloved podcast took care to add the shownots to the ID3 tags of the mp3 file, we are satisfied, but where we did not take care, we only have to shrug our ears with annoyance .
    Or add ID3 tags yourself. With the unfortunate users of iTunes for Windows, I would like to share a script that I myself use.

    Script


    It is written in JScript and works with iTunes through COM. If you want to download a description of this SDK, then here .
    Comments in the code, hopefully speaking. To show progress, IE is launched into which the percentage of processed tracks is written. The fact is that JScript is not able to work with ordinary win-forms. Intelligent users can redo this moment for output to the console via WScript.Echo (), to whom it is more convenient.

    1. // run itunes
    2. var ITTrackKindFile  = 1;
    3. var  iTunesApp = WScript.CreateObject("iTunes.Application");
    4. var  mainLibrary = iTunesApp.LibraryPlaylist;
    5. var  tracks = mainLibrary.Tracks;
    6. var  numTracks = tracks.Count;
    7. var numProcessed = 0;
    8.  
    9. // create ie for showing progress
    10. var ie = WScript.CreateObject("InternetExplorer.Application", "ie_");
    11. ie.Navigate("about:blank");
    12. ie.ToolBar = 0;
    13. ie.StatusBar = 0;
    14. ie.Left = 30;
    15. ie.Top = 30;
    16. ie.Width = 400;
    17. ie.Height = 200;
    18. ie.Visible = 1;
    19.  
    20. // show progress
    21. ie.document.title = "Updating podcast show notes";
    22.  
    23. var updateProgress = function(percent) {
    24.   var textPercent = Math.round(percent * 100);
    25.   ie.document.body.innerHTML = "" + ie.document.title + "
      Progress " + textPercent + "%";
    26. }
    27.  
    28. // process tracks
    29. var i = numTracks;
    30. while (i != 0)
    31. {
    32.   var   currTrack = tracks.Item(i);
    33.   
    34.   // is this a file track and a podcast?
    35.   if (currTrack.Kind == ITTrackKindFile && currTrack.Podcast)
    36.   {
    37.     // are lyrics set? if not we'll write description in lyrics
    38.     try {
    39.       var lyrics = currTrack.Lyrics;
    40.       // write to lyrics only if lyrics are empty
    41.       if (lyrics.match(/^[\s\n\r\t]*$/g)) {
    42.         var descr2lyrics = currTrack.Name + "\n\n" + currTrack.LongDescription;
    43.         currTrack.Lyrics = descr2lyrics;
    44.         numProcessed++;
    45.       }
    46.     } catch (exception) {
    47.       // catching dead tracks
    48.     }
    49.   }
    50.  
    51.   i--;
    52.   updateProgress((numTracks-i) / numTracks);
    53. }
    54.  
    55. ie.document.body.innerHTML = numProcessed + " podcasts processed.
      All Done!";
    * This source code was highlighted with Source Code Highlighter.

    Download

    You can run a script in two ways: just two clicks on the file, or launch from the console:

    wscript inotes.js



    disadvantages


    Of course, the script is not perfect. The biggest drawback is the need to run it with your hands each time. But since I did not find anything of the kind for Windows, I decided to post it as it is, and smart users of the hub will probably help to improve it. My only idea is to monitor the launch of iTunes through WMI , but I don’t really like the prospect of hanging the script all the time in my memory. In addition, in this case there is not enough control over the process of executing the script, which is why it suits me as is.

    Finally. I understand why podcasts do not optimize their creations for listening on the most popular players, but why large podcast terminals do not do this for me. Echo of Moscow, one of the largest and at the same time inconvenient podcast resources in Russian. Well, at leastnow does not break its files into two parts. And you can cut “Echo of Moscow // Transmissions //” from the beginning of each podcast through Yahoo Pipes .

    I also invite readers to share their tips & tricks on eavesdropping.

    Mac


    As for the owners of the poppy, solutions are searched by search, I have met plugins on the forums, but I can not try them, so I will not give links.

    Also popular now: