Forum » iTunes (Mac Version)

I have iPod support working I have iPod support working (for me anyway) I have…

 
    • Damaged said...
    • User
    • 24 Oct 2004, 22:24

    I have iPod support working I have iPod support working (for me anyway) I have iPod support working

    Just wanted to let everyone know that I spent Friday night and a few hours yesterday adding support for iPod syncing to the iScrobbler client (yes, I have no life!). It uses the last played date to determine the time-stamp to submit, and it does some other things to prevent "spamming". To be honest though, there may be spamming issues that I have missed, and so I am not making a public release until I get some feedback from the lead iScrobbler developer (I have e-mailed him the updated client and my source changes).

    I've been using this new version (tentative version 0.7.0) since late Friday, and fixed a few minor problems yesterday. When I came back from my walk this morning, all 26 songs were submitted. To the server it just appears as if the client computer was "offline" and is submitting a backlog.

    Currently there is no preference to turn iPod sync off, and there are also other limitations:

    - If you start playing iTunes before syncing your iPod, then all songs on the iPod will be discarded.
    - If you quit iScrobbler (such as a Shutdown/Restart) then all songs on the iPod with a play date before the next time iScrobbler is launched will be discarded.
    - Seeking a song on the iPod could trigger spam protection on the server.

    *Special note for users who have iPod Disk Mode enabled: Since iScrobbler delays syncing until the iPod is ejected, you must manually sync using the "Sync iPod" item in the control menu, or eject your iPod before you start playing music in iTunes. Either way, make sure to wait until iTunes says your iPod is "up to date".

    Hopefully, a public release won't be too far out.

    • jgd3 said...
    • User
    • 27 Oct 2004, 03:28
    Hey, that's awesome news! Thanks for taking up the challenge of getting iPod support started!

    • Damaged said...
    • User
    • 27 Oct 2004, 14:35

    Re: I have iPod support working I have iPod support working

    Thanks. It came down to need. I went for a week without having iPod sync support, and "lost" about a 100 songs because of it. So I decided to fix it.

    Since the last post, I've added a preference to turn off iPod sync, and I've removed the shutdown/restart restriction (so you can shutdown your machine if you go on vacation or something, and come back a week later and all the songs you listened to on the iPod during that time will be uploaded).

    I'm still waiting to hear back from the developer, I e-mailed his Sourceforge address last Saturday, but have not heard back from him yet. Anyone know how to get in touch with him? Does he hang around in this forum? If I haven't heard from him by next Monday I'll just release what I have to the public to get some feedback.

  • This is an awesome idea.

    I'm wondering about the problem with if someone's at your computer listening to music while you are listening to your iPod. If you listened to the song on the iPod at 10:00AM and the other person listened to it on the comptuer at 10:10AM, wouldn't there only be one song played according to AS and when iScrobbler tried to submit yours, would there be a "Spam Protection" deal triggered?

    • Damaged said...
    • User
    • 28 Oct 2004, 21:53
    Well, if you someone is using your account while you are away to play songs, then anything you play on the iPod will be lost.

    "- If you start playing iTunes before syncing your iPod, then all songs on the iPod will be discarded."

    You need (and have to enforce the use of) separate accounts to get around this.

    But, to address your specific scenario (assuming no songs were played after 10:00:00 AM in iTunes), all songs played after 10:00:00 AM on your iPod would be sent to iScrobbler, including the "duplicate" you listened to. It would not trigger spam protection, as 10 minutes passed between listening times, and the song count would be bumped twice.

  • alright, sounds good for the moment.

    may I ask if you'll be porting this (after everything gets done with the original author and whatnot) to the Windows iTunes/iScrobbler? It would be fantastic.

    • Damaged said...
    • User
    • 28 Oct 2004, 23:47
    Port to Windows:

    No.

    1) iScrobbler uses AppleScript, which uses AppleEvents to communicate with iTunes. The iPod sync functionality is just another AppleScript that asks iTunes for songs played after a certain time. Niether AppleScript nor AppleEvents are available on Windows.

    2) I don't have the Windows developer tools.

    Mainly because of (1), this will be Mac only.

  • I need to get a Mac. And an iPod. :)

    -Scott

    • DoctorT said...
    • User
    • 29 Oct 2004, 02:03

    Re:

    Quoth giveuptheghost:
    I need to get a Mac. And an iPod. :)

    -Scott


    You'll never look back! You might wonder why it took you so long.

    ;-)

    Tom


    Music, like language, is universal.
  • This is incredible! Thanks for takin up the challenge and I hope this is released soon. That's one of the things I wish I had was iPod support. My profile would be better suited to my listening habits if it recorded my on-the-computer AND away-from-the-computer listening habits. Awesome.

  • This is incredible! Thanks for takin up the challenge and I hope this is released soon. That's one of the things I wish I had was iPod support. My profile would be better suited to my listening habits if it recorded my on-the-computer AND away-from-the-computer listening habits. Awesome.

  • This is incredible! Thanks for takin up the challenge and I hope this is released soon. That's one of the things I wish I had was iPod support. My profile would be better suited to my listening habits if it recorded my on-the-computer AND away-from-the-computer listening habits. Awesome.

    • [Deleted user] said...
    • User
    • 1 Nov 2004, 04:35
    That's a great feature, now I just need to get an iPod ;)

    I think it would be good to submit it as a separate profile. There used to be a user page that you could see profiles, which included one for here and one for last.fm.

    It wouldn't be worth it unless you really really wanted it, all the extra coding needed...

    • GregN said...
    • User
    • 2 Nov 2004, 08:59
    Damaged - If you're looking for a beta tester to test your code I'd be more than happy to oblige. ;- )

    • Damaged said...
    • User
    • 2 Nov 2004, 15:28
    GregN,

    See the .7.0 thread from last Friday. There is a link to the dmg in there.

    Also, .7.1 should be out before the end of the week with persistent caching and lots of other changes.

    • GregN said...
    • User
    • 2 Nov 2004, 18:57
    Thanks Damaged. didn't see that post. Downloading now so will give i a spin.

    Thanks for all your hard work.

    Greg

    • TeSp said...
    • User
    • 2 Nov 2004, 22:19
    Well ok, you sync your ipod with iTunes and then sync it with iScrobbler? Then everything works?

    But you can´t play songs in iTunes while syncing you iPod right. So if i want to sync my iPod i have to do this in silence, right?

    • Damaged said...
    • User
    • 2 Nov 2004, 22:41
    If you wait about five seconds until after your iPod disappears from the desktop, then it should be safe to start playing iTunes again. You can still have your iPod plugged in after that and be playing songs in iTunes. The "silence" requirement is only while the iPod is mounted on the desktop.

    From the CHANGE LOG:


    ...make sure to wait until iTunes says your iPod is "up to date"


    We'll be adding some better feedback for this process in a later release.

    Edited by Damaged on 2 Nov 2004, 22:42
    • makalus said...
    • User
    • 3 Nov 2004, 05:11

    Re:

    Quoth Damaged:
    If you wait about five seconds until after your iPod disappears from the desktop, then it should be safe to start playing iTunes again. You can still have your iPod plugged in after that and be playing songs in iTunes. The "silence" requirement is only while the iPod is mounted on the desktop.

    From the CHANGE LOG:


    ...make sure to wait until iTunes says your iPod is "up to date"


    We'll be adding some better feedback for this process in a later release.


    Not to be nagging or anything, but I am wondering why this has to happen in "silence"?

    How does this prevent spamming if the last "timestamp" on the iPod is, say 10:01 and I start playing on my iTunes at 10:02 wouldn't it be sufficent to deduct that I am not spamming? Or is the information not that detailed coming from the iPod?

    • Damaged said...
    • User
    • 3 Nov 2004, 05:27
    Because, the server requires all times to move forward, so you can't submit one song at say 10:02, and then submit a backlog of songs at 9:45, 9:50, 9:58. The server considers that spam.

    Also, we need a date to use to query iTunes for songs played after a certain time. And using the last time iTunes was played as that indicator makes the most sense. That way we greatly reduce the chance of grabbing a song already submitted and triggering a different kind of SPAM (playing more than one song in space of time that would be impossible).

    Trying to work around these two issues is just asking for a bunch of corner cases that won't ever work right.

    Just think, no other plugin has any kind of iPod (or other poratble player) syncing. Don't look a gift horse in the mouth. ;-)

    • ElRocco said...
    • User
    • 4 Nov 2004, 20:20

    Just wondering...

    If I sync my iPod manually, what happens (i have it in disk mode and copy the songs over to the iPod manually)?

    • Damaged said...
    • User
    • 4 Nov 2004, 20:26
    We don't care about the song files, only the song meta data (specifically last played time) As long as that is sync'd things should work. Since you are using disk mode, make sure to read the CHANGE LOG for the special note that applies to disk mode.

    • ElRocco said...
    • User
    • 5 Nov 2004, 19:02

    I don't get it

    Hey Damaged, thanks for the answer but I still don't get it...

    Here's what I did... I was away from my computer and was listening to music on my iPod. When I got back to the office, I plugged in my iPod.

    Since I sync it manually (disk-mode enabled) nothing happens except for iTunes that starts up.

    According to the note in the change log, what I understand I have to do for the songs I listened on my iPod while away from my computer to be submitted, is to Select "Sync iPod" in the control menu and then eject my ipod.

    Nothing happens...

    The part I don't get from the changelog is this :
    " Either way, make sure to wait until iTunes says your iPod is "up to date"."

    How can iTunes say my iPod is "up to date" if it never syncs with my iPod (which is what I want) ?

    TIA

  • My Sync Ipod button does not light up (it's connected too)

    -Heather
    • Damaged said...
    • User
    • 5 Nov 2004, 20:09
    If your iPod never syncs with iTunes, then none of your played songs will show up. We query iTunes for played songs, not the iPod (the iPod is not an application). So the songs have to be in iTunes.

    Also, there must be a Recently Played playlist that tracks what songs have been recently played. We use that playlist to query for the songs.

Anonymous users may not post messages. Please log in or create an account to post in the forums.