Forum » General support and Bug reporting

Cross-Platform iPod Plugin

 
    • Muti said...
    • User
    • 21 Mar 2005, 03:20

    Cross-Platform iPod Plugin

    I've coded up an iPod plugin (because I needed it) and placed it online at http://projects.afterglo.ws/wiki/AudioPodHome. Installation and use is detailed at the page referenced. If you have any issues, you can reply to this thread. Keep in mind I work full-time and I am a part-time student so I may not reply in a timely manner.

    Update: Plugin has been re-done using Java, many of the posts below deal with problems in the PHP version.

    Edited by Muti on 18 Jun 2005, 00:26
  • OMFG

    You have made my life better. Audioscrobbler is now being moved from the "hm, that's interesting" category into the "hey, that's a really useful tool!" category. Thank you.

    • said...
    • User
    • 21 Mar 2005, 05:58
    To make it easier to run from command line in windows

    1. create a new text file in the audiopod dir
    2. Rename it to audiopod.cmd
    3a. edit the file and put php.exe fetchandsubmit.php
    3b. [optional]on a new line add c:/progra~1/itunes/itunes.exe This automatically starts itunes so it can sync with your ipod. *** note you will need to change the slashes to backslashes. The forum won't let me post backslashes for some reason. ***
    4. Double click on the file.
    5. If it goes to fast for you to see thats happening, you can edit the file, and add a new line that has pause which will pause the cmd.exe program.

    I also created a shortcut and placed on my desktop.

    I would also disable ituneshelper (a program that will auto launch itunes once it sees your ipod)
    Do this by going to Start->Run type in msconfig click ok. Click on the startup tab. Find ituneshelper and uncheck the box. Click on ok, and restart computer if its not already disabled or stopped.

    Hope this helps.

    THANK YOU Multi for such a great program!

    Edited by a deleted user on 21 Mar 2005, 06:29
  • that is bad ass.

    • karit said...
    • User
    • 21 Mar 2005, 08:07
    Thanks works a treat

    • said...
    • User
    • 21 Mar 2005, 08:51
    Muti, thank you very much indeed. I'd been wondering if I could knock together something to do this for a while, but now I don't have to. Can't wait to try it out when I get home. Cheers!

  • Help please!

    C:Documents and SettingsMikkel WintherDesktopaudioPod>php.exe fetchandsubmit
    .php

    Warning: fopen(G:iPod_ControliTunesiTunesDB): failed to open stream: No such
    file or directory in C:Documents and SettingsMikkel WintherDesktopaudioPodfetchandsubmit.php on line 145
    iTunes Error: Error reading iTunes DB

    I've edited line 30 of fetchandsubmit.php to this:

    $GLOBALS['iTunesDir'] = 'G:\iPod_Control\iTunes\';

    My iPod (an iPod mini, 2nd gen) is mounted as drive G:.

    Can anybody tell me, what I've done wrong?

  • Those backslashes _ARE_ double backslashes in my fetchandsubmit.php file, but I can't write them here for some reason.

  • Thank you so much for this!! I'm downloading it and going to try it out now.

  • hej is this working for the ipod shuffle too??

  • i guess its not as it has no 'play counts' file in the 'iPod_Control\iTunes' directory


    C:vacuumaudiopodaudioPod>php.exe fetchandsubmit.php

    Warning: fopen(E:iPod_ControliTunesPlay Counts): failed to open stream: No such file or directory in C:vacuumaudiopodaudioPodfetchandsubmit.php on line 1
    51
    iTunes Error: Error reading Play Counts DB

    C:vacuumaudiopodaudioPod>c:/progra~1/itunes/itunes.exe

  • I don't understand what I'm supposed to be doing with the second step, what am I supposed to be editing exactly?:


    #2 Edit the lines at the top of the file that contain your AudioScrobbler username and password and the location of the iTunesDB.

    * The iTunesDB is under the "iPod_ControliTunes" folder of whatever location the iPod is mounted.
    * Linux Example, "/mnt/iPod/iPod_Control/iTunes/".
    * Windows Example, "E:\iPod_Control\iTunes\".

  • you have to edit fetchandsubmit.php (open in wordpad, its at about the 30th line)

  • you have to edit fetchandsubmit.php (open in wordpad, its at about the 30th line)

  • Alright I tried that but I still seem to be having problems. Does this look right?:

    http://images6.fotki.com/v162/photos/1/164931/835852/audiopod-vi.jpg

    EDIT: This is the error that I keep getting:

    http://images6.fotki.com/v162/photos/1/164931/835852/Error-vi.jpg

    Edited by Boxster17 on 21 Mar 2005, 16:04
    • Muti said...
    • User
    • 21 Mar 2005, 16:04

    Re:

    Quoth Boxster17:
    Alright I tried that but I still seem to be having problems. Does this look right?:

    http://images6.fotki.com/v162/photos/1/164931/835852/audiopod-vi.jpg


    No.. it should be:

    $GLOBALS['iTunesDir'] = 'H:\\iPod_Control\\iTunes\\';
    $GLOBALS['asUsername'] = 'Boxster17';
    $GLOBALS['asPassword'] = 'yourpassword';

    Edited by Muti on 21 Mar 2005, 16:06
  • Ah okay, thanks for the help, will give that a try..

  • i don't think you need to change the code between the brackets, but the code after the = ,

    • Muti said...
    • User
    • 21 Mar 2005, 16:09

    Re: Help please!

    Quoth sveskemus:
    C:Documents and Settings\Mikkel Winther\Desktop\audioPod>php.exe fetchandsubmit
    .php

    Warning: fopen(G:\iPod_Control\iTunes\iTunesDB): failed to open stream: No such
    file or directory in C:Documents and SettingsMikkel WintherDesktopaudioPodfetchandsubmit.php on line 145
    iTunes Error: Error reading iTunes DB

    I've edited line 30 of fetchandsubmit.php to this:

    $GLOBALS['iTunesDir'] = 'G:\\iPod_Control\\iTunes\\';

    My iPod (an iPod mini, 2nd gen) is mounted as drive G:.

    Can anybody tell me, what I've done wrong?


    I haven't tried this on an iPod mini, I have a 4th gen 40gb model. You can browse to that directory and look for a file called iTunesDB (it's a hidden directory, so make sure you can view hidden folders). It may be in a different location on the mini.

  • I'm getting this error now:

    Parse Error: Parse Error in C:\Program Files\audioPod\fetchandsubmit.php on line 31

    Here's what that line looks like:

    $GLOBALS['asUsername'] = 'Boxster17';

    Edited by Boxster17 on 21 Mar 2005, 16:25
    • Muti said...
    • User
    • 21 Mar 2005, 16:17
    Check the line above it also, you may be missing a semi-colon at the end. If you still can't get it to run, I'd recommend re-extracting fetchandsubmit.php and re-editing.

  • Yeah you're right, I was missing a semi-colon in there, should've realized that before. Thanks again for all the help, I really appreciate it!

    EDIT: Just tested it out and it works perfectly!

    Edited by Boxster17 on 21 Mar 2005, 17:10
  • That looks like a pretty cool hack, but it's still not ideal because of this:

    If you listen to the same track more than one time without syncing, it will only be submitted once (using the last play time as the timestamp). This is because the "Play Counts" file only keeps track of the last time the track was played.

    I'm not complaining 'cause it's certainly better than anything else out there, but it's still not ideal for people like me who listen to albums repeatedly throughout the day. Perhaps the best way to do it would be to examine the playcount totals before and after each sync?

    • Muti said...
    • User
    • 21 Mar 2005, 17:34

    Re:

    Quoth chumptastic:
    That looks like a pretty cool hack, but it's still not ideal because of this:

    If you listen to the same track more than one time without syncing, it will only be submitted once (using the last play time as the timestamp). This is because the "Play Counts" file only keeps track of the last time the track was played.

    I'm not complaining 'cause it's certainly better than anything else out there, but it's still not ideal for people like me who listen to albums repeatedly throughout the day. Perhaps the best way to do it would be to examine the playcount totals before and after each sync?


    Right.. but there is no log of the time played. The only timestamp is the last play time. I'd love to be able to have it keep track of more than one play but the nature of the Play Counts and iTunesDB file does not make that a possibility.

    • jordex said...
    • Subscriber
    • 21 Mar 2005, 18:02
    When I downloaded the windows zip file, its just an empty zip file, anyone else getting this problem?

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