Posts: 7
Joined: Sep 2008
Reputation:
0
Strangely, the iTunes library seems to import perfectly using this plug-in under Windows but trying to play any song from the library doesn't work for me. Trying gets a "playlist playback aborted, too many consequtive failed items" error. Could it be to do with a difference in how OSX & Windows treat directory paths maybe?
Posts: 8
Joined: Sep 2008
Reputation:
0
Hello,
I've made all the changes and the plugin seems to work fine on Windows. Although, I don't know how to get it to import into the library. I dont think this is a problem with the plugin, I think it is becuase I don't know what I'm doing.
So, how do I import my iTunes database into my library? At the moment I am doing this:
Select Music
Select Music Plugins
Select iTunes
Select <<Import My iTunes Library>>
It then scans through my library and gets to 100% and then thats it. What's supposed to happen next? I can't turn on the Library radio button (it stays grayed out). I can use the Add Source feature to add the iTunes Artists as a source and access the music, but that doesn't add anything to the library that way.
Thanks for helping out a n00b.
-Drew
Posts: 26,215
Joined: Oct 2003
Reputation:
187
Just go to Albums/Artists/whatever and play your music.
It doesn't get the songs into XBMC's library - all it's doing is parsing the iTunes XML and loading the songs for the plugin's use.
Posts: 1
Joined: Dec 2008
Reputation:
0
Hello.
Can someone help me please?
I downloaded the itunes plugin from itunes.zip from the xbmc addons bit from google code and have followed the instructions on here about changing the files to work in Windows. I thought i'd followed them correctly but when I run the plug in, a box flashes up very quickly saying, iTunes 100% - loading directories - retrieved 0 items.
The only bit I didn't understand in the instructions here was about getting the word filename to start exactly above return. As far as i'm aware I havent done anything I shouldnt.
Any ideas?
Thanks
Chris
Posts: 1
Joined: Nov 2008
Reputation:
0
I have the same problem like Chris.
In default py i have the following entrys:
platform = "win32"
def get_itunes_library():
filename = D:\\Eigene Musik\\iTunes\\iTunes Music Library.xml
return filename
Posts: 2
Joined: Dec 2008
Reputation:
0
This may have already been discussed elsewhere so forgive me if it has.
I'm not overly familiar with the nuances of SMB/CIFS so this may or may not be workable. But what's to stop this plug-in from accessing a shared iTunes library (on a Mac or PC from an xbox) if there is a SMB share of the iTunes folder (containing the xml) and if pysqlite2 libraries for xbox are compiled?
Just a thought. If anyone knows where to get the compiled libraries for xbox, I can certainly give this a shot myself. I'm hoping maybe this will finally be a start to a solid work-around (sans Firefly) for accessing iTunes 7+ libraries.
Posts: 2,745
Joined: Oct 2003
Reputation:
1
WiSo
Team-Kodi Developer
Posts: 2,745
In theory this could work but I'm not the author of the plugin so you can't be sure.
afaik python uses our virtual filesystem so it should be able to connect to a smb share via xbmc.
Posts: 2
Joined: Dec 2008
Reputation:
0
Well in case any one is interested, I ran my modified script (using both a SMB and also a FTP share directly linked to my iTunes xml). Here's the error output I'm getting.
20:23:28 M: 41402368 ERROR: Unable to load: Q:\plugins\music\iTunes\resources\settings.xml, Line 0
Failed to open file
20:23:29 M: 39010304 NOTICE: -->Python Initialized<--
20:23:29 M: 39010304 NOTICE:
20:23:29 M: 38346752 NOTICE: Traceback (most recent call last):
20:23:29 M: 38346752 NOTICE: File "Q:\plugins\music\iTunes\default.py", line 32, in ?
20:23:30 M: 38346752 NOTICE:
20:23:30 M: 38346752 NOTICE: from itunes_parser import *
20:23:30 M: 38346752 NOTICE: File "Q:\plugins\music\iTunes\itunes_parser.py", line 19, in ?
20:23:30 M: 38346752 NOTICE:
20:23:30 M: 38346752 NOTICE: from sqlite3 import dbapi2 as sqlite
20:23:30 M: 38346752 NOTICE: ImportError
20:23:30 M: 38346752 NOTICE: :
20:23:30 M: 38346752 NOTICE: No module named sqlite3
20:23:30 M: 38346752 NOTICE:
20:23:30 M: 38346752 ERROR: Scriptresult: Error
20:23:31 M: 41455616 ERROR: CGUIMediaWindow::GetDirectory(plugin://music/iTunes/) failed
20:23:36 M: 42229760 WARNING: Skin has invalid include: contentpanelslide
20:23:36 M: 42229760 WARNING: Skin has invalid include: contentpanelslide
20:23:38 M: 42213376 WARNING: Skin has invalid include: contentpanelslide
20:23:38 M: 42213376 WARNING: Skin has invalid include: contentpanelslide
20:23:39 M: 42229760 WARNING: Skin has invalid include: contentpanelslide
20:23:39 M: 42229760 WARNING: Skin has invalid include: contentpanelslide
20:23:40 M: 42229760 WARNING: Skin has invalid include: contentpanelslide
20:23:40 M: 42229760 WARNING: Skin has invalid include: contentpanelslide
20:23:42 M: 39063552 NOTICE: -->Python Initialized<--
20:23:42 M: 39063552 NOTICE:
20:23:44 M: 36515840 NOTICE: Traceback (most recent call last):
20:23:44 M: 36515840 NOTICE: File "Q:\scripts\iTunes\default.py", line 35, in ?
20:23:44 M: 36515840 NOTICE:
20:23:44 M: 36515840 NOTICE: db = ITunesDB(DB_PATH)
20:23:44 M: 36515840 NOTICE: File "Q:\scripts\iTunes\itunes_parser.py", line 38, in __init__
20:23:44 M: 36515840 NOTICE:
20:23:44 M: 36515840 NOTICE: self.dbconn = sqlite.connect(dbfile)
20:23:44 M: 36515840 NOTICE: pysqlite2.dbapi2
20:23:44 M: 36515840 NOTICE: .
20:23:44 M: 36515840 NOTICE: OperationalError
20:23:44 M: 36515840 NOTICE: :
20:23:44 M: 36515840 NOTICE: unable to open database file
20:23:44 M: 36515840 NOTICE:
20:23:44 M: 36515840 ERROR: Scriptresult: Error
It appears that the real issue is popping up with the database.