• lucky33

    (@lucky33)


    Just wanted to let everybody know I’ve finished my new plugin called WP iTunes…it will allow you to display the currently playing song on your iTunes on your WordPress blog…You can see it running on the front page of my site, so download it, mess around with it, and let me know if you like it or have any questions…
    WP iTunes

Viewing 15 replies - 61 through 75 (of 106 total)
  • it’s working now. nevermind.

    Sorry for not checking this thread in a while. I’ve uploaded my configued WP-iTunes script (minus itunes_key and dev_token variables) so that people that want to look at it can get a sense of what I did. Besides adding the archive function (for last 50 posts) I also modified the code to allow for “Today/Yesterday” timestamps and also to allow songs that don’t have the album field filled out in the ID3 tag (it also won’t output the “Album:” field if no album is listed.) You can find the script here:

    https://www.guboogi.com/blog/wp-content/plugins/wp-itunes.phps

    and to see how the final output looks, you can look here:

    https://www.guboogi.com/ (for the sidebar)
    https://www.guboogi.com/boogbox/playlist.php (for the last 50 songs)

    Just a little warning, I’m not very experienced at programming at all so if there are any mistakes, I apologize. If you have any questions, let me know.

    We have posted a new version (.07) of iTunesBlogger at https://www.itunesblogger.com

    This fixes the bug that Malcolm mentioned, as well as some issues with Unicode characters in song names. Please let us know if you find any other issues!

    Hey ajc, I was just curious if it was possible to have iTunesBlogger update the song at the END of the song (like when iTunes updates the play count.) I only ask because a lot of times I have my entire collection on random and I skip songs a lot, and I don’t want it updating my website every time I skip a song. Is this possible at all? Thanks.

    I installed itunesblogger .07 yesterday and ever since then, album cover art isn’t being retrieved from amazon. All of my settings are the same. I’ve checked everything that I thought would contribute to this problem, but I can’t find out what’s going on.

    Anyone have any ideas?

    Hey guboogi, that could be tricky. iTunes doesn’t send out a notification when a song is done playing– it sends one out to our program only when a new song starts playing. At that point, it’s not possible to tell if the last song was skipped or if it finished.

    One option that might be possible is to wait 20 seconds before posting the song. If a new song is played before the 20 seconds are up, we don’t post the song. Otherwise, we do.

    Regarding the issue with amazon album art– do your track titles, artists, and album names look OK? If so, then I’m not sure what the problem could be. I e-mailed the author of WP-itunes about the issue. I’m not 100% sure how WP-itunes handles linking to amazon.

    Just verified iTB 0.7 works with CG-WhatTunes properly (with the right web URL…). Though I did have it crash on me the first try — might have been the URL was incorrect and it got an error from the server? Dunno. Now seems to be working properly, and >my< amazon grabs are still working. ??

    -d

    from what i can see, everything is cool. wpiTunes queries amazon xml services with variables, so I hardcoded some things and pasted it into a browser and it returned some products and image urls just fine. As for how it parses it….I don’t know. But the bottom line is that an image url is not returned at the end of the php function.

    ajc, how would one go about waiting 20 seconds before posting a song? This would actually be ideal because I sometimes skip songs right before they end and now I wouldn’t have to wait until the end just to post the information. I figued that iTunes wouldn’t send out a signal 20 seconds into the song, so this would be impossible. Is it possible?

    on ajc’s side, certainly. he waits 20s after the song change notification message comes through before doing a POST. I assume he’s tracking the song start, not the song end (I did some hooks into iTunes on the mac at one point, and seem to recall that being the case).

    -d

    But how do you get it to wait 20s after the song change notification message comes through before doing a POST? Is this a setting in iTunesBlogger or a setting in the script?

    I believe he was saying he COULD add it as an option to a future rev of iTunesBlogger…

    -d

    Just stopping by to thank you for the great plugin and to ask a quick question.

    Where would I edit the plugin in order to make the album art be a specific size? Let’s say 50px by 50px?

    Thanks in advance ??

    you could wrap it in a div and force-size the div… otherwise, amazon has basically 4 or so ‘sizes’ of pre-made images, fixed sizes. I don’t know what size they are (but you can flip between sizes in cga-config in CG-Amazon if you want to play around and see, or I’d guess WP-Amazon has a similar size-choice…)

    -d

Viewing 15 replies - 61 through 75 (of 106 total)
  • The topic ‘WP iTunes’ is closed to new replies.