• 1
  • 2
  • 3(current)
  • 4
  • 5
  • 26
[RELEASE] iTunes and iPhoto integration plugins for XBMC
#31
I have just installed beta2 on both my ATV (take 2.2) and on my MacBookPro (10.5.5) and I have tried to use the iTunes import plugin, but it only works on my Macbook and not on my AppleTV. I have tried to install python on my ATV, but that didn't help. I was wondering if it may be because the ATV iTunes implementation does not look like the one on my Macbook? (itunes on ATV is synced from macbook). On ATV it puts all the files in /mnt/Scratch/Media/Media Files or something like that, and there isn't any xml file in ~/Music/iTunes/ (no such dir) which is referenced in default.py.

Isn't the iTunes plugin working on Appletv yet? Or is there some other hack that I need to use?

On my Macbook it imported the entire itunes library without problems (itunes 8)
Reply
#32
Hi simpsons, currently the iTunes plugin isn't functional on the Apple TV, so you will need to resort to adding the directory that has your music as a source to XBMC. I haven't had a chance to actually investigate the issue so I don't have an ETA on when and whether at all it the plugin will work on ATV.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Please read and follow the forum rules.
For troubleshooting and bug reporting, please make sure you read this first.


Image
Reply
#33
Hi d4rk, ok thanks for the reply... then there is no reason to keep fiddling with it Undecided
Eventhough I have all my music on my macbook, one of the reasons for having the ATV is to serve music to my stereo so I hope that You can make the plugin work somehow. I've seen somewhere descriptions to parsing the ATVs iTunes index files, so I'd imagine a solution can be found but don't know how easy it can be done.
Reply
#34
good day to you
my appletv is sync with itunes ( all my music and my iphoto pic were transfered to my appletv)

no i go to - pictures and see <<import my iphoto ibrary>> press it and nothing happened - i see in the screen "loading directory" but for a second and nothing happened
it's the same with music with import from itunes library

i went to ~/Library/Application Support and i dont have there /XBMC/plugins
so i made the libraries and download the plugins and putted them there

but i have the same result

need to help to figure out what to do

thanks
Reply
#35
look at the following thread it will provide you with all the needed help.

http://forum.xbmc.org/showthread.php?tid=37313

or press the following to get more help

http://forum.xbmc.org/search.php

Regards,,,
Reply
#36
i also had success with this plugin on my mac with a local itunes library. my appletv failed.

then looking at default.py, i changed the following:
Code:
def get_itunes_library():
    filename = os.getenv("HOME")+"/Music/iTunes/iTunes Music Library.xml"
    return filename

to:

Code:
def get_itunes_library():
    filename = "/mnt/Scratch/Volumes/JINGOmusic/iTunes Music Library.xml"
    return filename

which is where i have mounted my mac's "iTunes Music" directory, using AFP, on the appletv.

with this changed parameter, it scans the library when i add it as a source, and then again when i try to browse the library in file mode. so its mostly there.... i think that the last bit to fix is the path to the actual mp3 files which i assume it reads from the files when they are scanned in. is it possible to deviate the standard "local" path and change the beginning part to be "/mnt/Scratch/Volumes/<mountname>...?

an additional question is whether a symbolic link for the JINGOmusic mount point to the /Users/frontrow/Music/iTunes Music/ directory?

regards

jingo_man
Reply
#37
unfortunately, using symlinks doesnt work either, having various ways of mounting different directories from my mac, and also symlinking different directories on the appletv.

i think the only way this might work is to do some string manipulation, or whatever, when the URL is obtained from each track. i see alot of references to:

Code:
plugin://music/

i am assuming this points to the local Music directory of the user, so /Users/frontrow/Music/ in the case of appletv. could this be amended so it reads?

Code:
plugin://mnt/Scratch/Volumes/JINGOmusic/

else, what alternatives are available for this "plugin://" path?

regards

jingo_man
Reply
#38
Hi jingo_man,

Sorry I didn't respond sooner. Basically you're on the right track. Since you've already got the Apple TV to import the iTunes library, you're half way there. The next step is to make XBMC think that the filenames are in the same path as in the XML file.

To do that, you can open up the XML file and look at the file paths in the "Location" key. They should read something like file://localhost/... Currently the plugin doesn't support any way to specify a remote share, so what you'll need to do is to create a mounted share on your Apple TV in such a way that it looks like it's in the same location. For example, if the "Location" entry in the XML for one of the songs reads:
Code:
file://localhost/Users/d4rk/Music/Amazon%20MP3/Sargeist/track1.mp3
then create a directory on your apple TV with
Code:
mkdir -p /Users/d4rk/Music/
and share that Music folder from your Mac and mount it on the directory you just created. That way, when XBMC looks for the particular file on the local drive, it will find it where it expects.

The correct way, of course would be to improve the plugin so you can specify a remote share without having to resort to this level of convolution, but for the time being, a solution like this might work. I haven't actually tried it though, but theoretically it should work Smile
Always read the XBMC online-manual, FAQ and search the forum before posting.
Please read and follow the forum rules.
For troubleshooting and bug reporting, please make sure you read this first.


Image
Reply
#39
hi d4rk

thanks for the suggestions, and no need for any apologies. i have been trying it since... unfortunately, i still get the same error:

could not connect to network server

in my case, the location string in the xml file are all in sub folders of:

file://localhost/Volumes/JINGOdisk1/iTunes%20Music/

so, mounted the JINGOdisk1 as /Volumes/JINGOdisk1 on the appletv, so it looks the same. i tried 2 mounts, one with "iTunes Music" the other with "iTunes%20Music" - no difference. the path to the xml file is still hard coded to a different afp share i have, but is scanning in fine.

i have had issues with itunes not using aliases in the expected manner, and it will actually follow the symlink to its proper destination. maybe this is part of the issue...?

also of note, my imac install of xbmc also returns the same error, with all the config left as downloaded. my ~/Music/iTunes/iTunes\ Music folder is actually symlinked to /Volumes/JINGOdisk1 (hence why the xml file lists it) and this maybe tripping over the same issue, in that it isnt in the default directory...

any more suggestions..?

jingo_man
Reply
#40
Hello,
still searching for a way to use my itunes playlists in my XBMC.

No problem to access all songs with a Firefly-Server running on my PC. But makes not much fun, due to the huge numbers of songs.... Support for playlists would be perfect.

Any Plugin in that direction?

Thanks!
Tom
Reply
#41
There's a plugin to access your local iTunes library. You can find info about it here. It currently works on Macs out of the box. It will work on Windows with some minor modifications.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Please read and follow the forum rules.
For troubleshooting and bug reporting, please make sure you read this first.


Image
Reply
#42
Hu! Looking good. Thanks for this link.
XBMC running on my old Xbox1. Might it work to access my PC?

Anyhow, would be happy if anyone could maker tutorial for modification. Or is uploading a modifierd version. Did not have any experience in modifying these files by myselve... Sad
Reply
#43
The "%20" strings are decoded to spaces before doing the access. They are only encoded inside the XML, so it should be "iTunes Music" on your drive.

Can you post a debug log (found at ~/Library/Logs/xbmc.log) when it fails, after you have mounted the "iTunes Music" drive on your ATV. Post it to http://pastebin.com.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Please read and follow the forum rules.
For troubleshooting and bug reporting, please make sure you read this first.


Image
Reply
#44
ok, reset the mounts for this to:

iMac : AppleTV
/Volumes/JINGOdisk1/iTunes Music : /Volumes/JINGOdisk1/iTunes Music
/Users/<mac_user>/Music/iTunes : /Volumes/JINGOitunes

the path to the iTunes Music Library.xml is hardcoded to "/mnt/Scratch/Volumes/JINGOitunes/iTunes Music Library.xml"
the paths recorded in this file are of format:

Quote:<key>Location</key><string>file://localhost/Volumes/JINGOdisk1/iTunes%20Music/Compilations/2%20Many%20Djs_%20As%20Heard%20On%20Radio%20Soulwax%20Pt%202/17%20Independent%20Women,%20Pt.%201%20%5BA%20Ca.mp3</string>

the pastebin log file is here ([HTML]http://pastebin.com/m7fff07b0[/HTML]) and contains starting up xbmc, removing previous itunes source, adding new itunes source, attempting to browse the library once scanned and shutdown.

the top error for Lircmap.xml doesnt exist, though i imagine this is due to me using the OS X platform...

at 12:01:43 there is an error:
Quote:ERROR: Missing or invalid <name> and/or <path> in source

at 12:02:16 has the error:
Quote:ERROR: Unable to load /Users/frontrow/Library/Application Support/XBMC/userdata/favourites.xml (row 0 column 0)

12:02:43 is when the new source is added and scanning starts.

12:02:55 the errors that occur here are because the files dont exist.

12:02:58 is when i try to browse into the new folder. errors ensue...

apologies for the long post, but thought it may help by providing a timeline of activities and trying to help out with info where possible Smile

hoping this provides something good...

jingo_man
Reply
#45
hey there,

i would second that request, using xbmc latest t3ch release on my oldskool xbox1 and would love to have the opportunity to access my nice little ituns-db. it took me several months to clean the mp3 mess up and rename all files and put in some little covers.. it's workin' via smb right now, but with limited features..

i'm still grateful, don't get me wrong! but a itunes-direct-access woud be even better (... think about this genius stuff... it's AWEsome)...

all in all... i'm thinkin' of gettin myself one of those htpcs ... but for now, i'm stuck with my xbmc (on xbox) Smile -> an i will use xbmcPC for this htpc, that's for sure. it's simply the best =)

thanks for everything =)


/man, i'm regged for like 3 years and this is my 2nd post. i gotta do sth about it =)
Reply
  • 1
  • 2
  • 3(current)
  • 4
  • 5
  • 26

Logout Mark Read Team Forum Stats Members Help
[RELEASE] iTunes and iPhoto integration plugins for XBMC3