Subscribe to
Posts
Comments
NSLog(); Header Image

My iTunes

Thanks to some inspiration from What Do I Know .org, I've now got a list of my most recent 42 iTunes songs on this site. Yeah, I borrowed some of the CSS too. It's okay. It's the Web! 🙂

I'm a bit curious as to whether I'll get any comments about the music. I've got, oh, 7500 songs, and I don't pretend to like them all. I'm sure some embarrassing ones will pop up from time to time. Like the one playing right now (a Jennifer Love Hewitt song? I think I'll skip it - but it'll still show up). But what is a personal blog without a little embarrassment. I've learned from Annie, who likes leopard print entirely too much, that you shouldn't actually be embarrassed anyway. Celebrate the suckiness of your music collection! Heh heh heh.

I'm currently using Kung-Tunes, but I'm trying to talk Jason into rolling some of these features into Recent Tunes. We'll see how that goes… Hopefully he'll surprise me. I like surprises.

Ooh, like the song playing right now!

8 Responses to "My iTunes"

  1. I'm currently listening to...

    A lot of people seem to be quite taken with the idea of using their blog to show what music they're currently listening to (often in iTunes). For the record, I'm currently listening to Liebling by Andreas Johnson (specifically "Glorious", o...

  2. How'd you go about setting up the PHP code for this?

  3. <tr><th>Artist/Group</th><th>Track Name</th><th>Album</th><th>Genre</th></tr>

    <?

       $bg[0] = '<tr valign="top" class="even">';

       $bg[1] = '<tr valign="top" class="odd">';

       $i=0;

       $last_track_name = "";

       include('http://nslog.com/tracklist.inc');

       foreach($tracklist as $date => $track_data)

       {

          extract($track_data);

          if($last_track_name != "$artist$title$album$year$genre")

          {

           echo $bg[($i++)%2];

           echo "<td><a href=\"http://www.google.com/search?q=%22$artist%22\" target=\"_blank\">$artist</a></td><td>$title</td><td>$album ($year)</td><td>$genre</td>";

           echo "</tr>";

           $last_track_name = "$artist$title$album$year$genre";

          }

       }

    ?>

  4. Recent Tracks

    I've added a recent tracks page, and you can now also see what I am currently listening to. This is powered by Apple's iTunes and Kung-Tunes. Thanks to Erik for providing me with my PHP code....

  5. Hi! And how does tracklist.inc get populated? I'm really looking for a PHP script that plops in a track at a time to my website.

    - Eve

  6. I believe Erik uses RecentTunes to generate the tracklist.inc file.

    I've got this set up, using the same PHP/Array output as Erik uses here:

    http://nslog.com/tracklist.inc

    However, when I try using the PHP code above to parse the file in the table, it doesn't seem to do anything.

    The code is around a year old, so maybe you've updated it and that's why it isn't working? Could you post up the source file you're using now? If different to that of above?

  7. <?

      $bg[0] = '<tr valign="top" class="even">';

      $bg[1] = '<tr valign="top" class="odd">';

      $i=0;

      $last_track_name = "";

      include('http://nslog.com/tracklist.inc');

      foreach($tracklist as $date => $track_data)

      {

        extract($track_data);

        $thisSong = "$artist$title$album$year$genre";

        if($last_track_name != "$artist$title$album$year$genre" && FALSE == strstr($thisSong, '^'))

        {

          echo $bg[($i++)%2];

          $string = "<a href=\"itms://phobos.apple.com/WebObjects/MZSearch.woa/wa//advancedSearchResults?artistTerm=$artist\">$artist</a></td><td><a href=\"itms://phobos.apple.com/WebObjects/MZSearch.woa/wa//advancedSearchResults?songTerm=$title\">$title</a></td><td><a href=\"itms://phobos.apple.com/WebObjects/MZSearch.woa/wa//advancedSearchResults?artistTerm=$artist&albumTerm=$album\">$album</a> ($year)</td><td>$genre";

          echo "<td>$string</td>";

          echo "</tr>";

          $last_track_name = "$artist$title$album$year$genre";

        }

      }

    ?>

  8. My iTunes: Source

    I did say that once I had my iTunes "Currently playing" feature working I'd post up how I got it working... and well, here it is.

    It's all set up using RecentTunes and some PHP.

    Download "RecentTunes" from Freshly Squeezed Software.

    You...


Trackback URI | Comments RSS

Leave a Reply

Please abide by the comment policy. Valid HTML includes: <blockquote><p>, <em>, <strong>, <ul>, <ol>, and <a href>. Please use the "Quote Me" functionality to quote comments.


Warning: Use of undefined constant wp_pagenavi - assumed 'wp_pagenavi' (this will throw an Error in a future version of PHP) in /var/www/vhosts/nslog.com/httpsdocs/wp-content/themes/nslog/single.php on line 48