HTTP API -> Playlists ?
#1
Hey Guys/Girls,

I'm trying to get a list of defined playlists via the HTTP-API, but I can't get it to work.

I've tried it using this url:
<code>
http://192.168.0.198/xbmcCmds/xbmcHttp?c...playlists/)
</code>

But that does not seem to work. Any suggestions ?

Also, I've changed the UserData location in profiles.xml, but my playlists keep getting saved to the old location (e:\apps\xbmc\...)

Thanks,
Kristof
Reply
#2
Anything in the log? How old is your version of XBMC?
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#3
Here's the debug:
<code>
18:03:20 M: 56365056 NOTICE: q:\web\UserData\sources.xml
18:03:20 M: 56365056 ERROR: Missing or invalid <name> and/or <path> in source
18:03:20 M: 56344576 INFO: Key combination detected for full debug logging (X+Y)
18:03:20 M: 56344576 INFO: Checking skinpath existence, and existence of keymap.xml:Q:\skin...
18:03:20 M: 50900992 INFO: load language info file:Q:\language\English\langinfo.xml
18:03:20 M: 50900992 INFO: load keyboard layout configuration info file: Q:\language\English\keyboardmap.xml
18:03:20 M: 50900992 INFO: unable to load Q:\language\English\keyboardmap.xml: Failed to open file at line 0
18:03:20 M: 50376704 INFO: load language file:Q:\language\English\strings.xml
18:03:20 M: 46747648 INFO: load keymapping
18:03:20 M: 46764032 INFO: Loading Q:\system\Keymap.xml
18:03:20 M: 49917952 ERROR: Keymapping error: no such action 'togglefullscreen' defined
18:03:21 M: 49917952 ERROR: Keymapping error: no such action 'nextcalibration>' defined
18:03:21 M: 50155520 INFO: Loading P:\Keymap.xml
18:03:21 M: 50163712 INFO: userdata folder: q:\web\UserData
18:03:21 M: 50163712 INFO: recording folder:
18:03:21 M: 50163712 INFO: screenshots folder:F:\screenshots\
18:03:21 M: 50163712 INFO: thumbnails folder:q:\web\UserData\Thumbnails
18:03:21 M: 50151424 NOTICE: Checking the Date!
18:03:21 M: 50151424 INFO: - Current Date is: 5-6-2009
18:03:21 M: 50151424 NOTICE: start dvd mediatype detection
18:03:21 M: 50081792 NOTICE: initializing playlistplayer
18:03:21 M: 50081792 DEBUG: Compiled with libcdio Version 0.72
18:03:21 M: 50081792 NOTICE: DONE initializing playlistplayer
18:03:21 M: 50081792 INFO: lcd not used
18:03:21 M: 50081792 NOTICE: start fancontroller
18:03:21 M: 49549312 NOTICE: load default skin:[Project Mayhem III]
18:03:21 M: 49549312 INFO: load skin from:Q:\skin\Project Mayhem III
18:03:21 M: 49549312 INFO: delete old skin...
18:03:21 M: 49549312 INFO: Default 4:3 resolution directory is Q:\skin\Project Mayhem III\PAL
18:03:21 M: 49549312 INFO: Default 16:9 resolution directory is Q:\skin\Project Mayhem III\PAL16x9
18:03:21 M: 49549312 INFO: Skin version is: 2.1
18:03:21 M: 49549312 INFO: Loading skin includes from Q:\skin\Project Mayhem III\PAL\includes.xml
18:03:21 M: 48136192 INFO: load fonts for skin...
18:03:21 M: 48136192 INFO: Loading fonts from Q:\skin\Project Mayhem III\PAL\Font.xml
18:03:21 M: 48050176 DEBUG: CGUIFontTTF::Load Scaled size of font Q:\skin\Project Mayhem III\Fonts\FrancophilSans.ttf (14.000000): width = 16, height = 17, lineheight = 17
18:03:21 M: 47980544 DEBUG: CGUIFontTTF::Load Scaled size of font Q:\skin\Project Mayhem III\Fonts\FrancophilSans.ttf (16.000000): width = 18, height = 20, lineheight = 19
18:03:21 M: 47902720 DEBUG: CGUIFontTTF::Load Scaled size of font Q:\skin\Project Mayhem III\Fonts\FrancophilSans.ttf (17.000000): width = 20, height = 21, lineheight = 20
18:03:21 M: 47820800 DEBUG: CGUIFontTTF::Load Scaled size of font Q:\skin\Project Mayhem III\Fonts\FrancophilSans.ttf (19.000000): width = 19, height = 23, lineheight = 23
18:03:21 M: 47738880 DEBUG: CGUIFontTTF::Load Scaled size of font Q:\skin\Project Mayhem III\Fonts\FrancophilSans.ttf (19.000000): width = 18, height = 23, lineheight = 23
18:03:21 M: 47706112 DEBUG: unable to load Q:\skin\Project Mayhem III\language\English\strings.xml: Failed to open file at line 0
18:03:21 M: 47706112 INFO: load new skin...
18:03:21 M: 47706112 INFO: Skin version is: 2.1
18:03:21 M: 47706112 INFO: Loading skin file: Home.xml
18:03:22 M: 46821376 DEBUG: Load Home.xml: 87.00ms
18:03:22 M: 46821376 INFO: Loading user windows, path Q:\skin\Project Mayhem III\PAL
18:03:22 M: 46821376 INFO: Loading skin file: Q:\skin\Project Mayhem III\PAL\custom2_SkinSettings.xml
18:03:22 M: 46821376 DEBUG: Load Skin XML: 98.18ms
18:03:22 M: 46821376 INFO: initialize new skin...
18:03:22 M: 46821376 INFO: Loading skin file: Pointer.xml
18:03:22 M: 46821376 DEBUG: Load Pointer.xml: 19.05ms
18:03:22 M: 46784512 DEBUG: Alloc resources: 44.71ms (19.74 ms skin load, 6.63 ms preload)
18:03:22 M: 46784512 INFO: Loading skin file: DialogVolumeBar.xml
18:03:22 M: 46784512 DEBUG: Load DialogVolumeBar.xml: 3.55ms
18:03:22 M: 46776320 DEBUG: Alloc resources: 13.22ms (4.04 ms skin load, 0.15 ms preload)
18:03:22 M: 46776320 INFO: Loading skin file: DialogSeekBar.xml
18:03:22 M: 46776320 DEBUG: Load DialogSeekBar.xml: 18.45ms
18:03:22 M: 46739456 DEBUG: Alloc resources: 26.62ms (24.80 ms skin load, 0.27 ms preload)
18:03:22 M: 46739456 INFO: Loading skin file: DialogKaiToast.xml
18:03:22 M: 46739456 DEBUG: Load DialogKaiToast.xml: 2.98ms
18:03:22 M: 46739456 DEBUG: Alloc resources: 3.61ms (3.60 ms skin load, 0.00 ms preload)
18:03:22 M: 46739456 INFO: Loading skin file: DialogMuteBug.xml
18:03:22 M: 46739456 DEBUG: Load DialogMuteBug.xml: 1.66ms
18:03:22 M: 46739456 DEBUG: Alloc resources: 2.17ms (2.17 ms skin load, 0.00 ms preload)
18:03:22 M: 46346240 INFO: Loading Q:\skin\Project Mayhem III\sounds\sounds.xml
18:03:22 M: 46346240 INFO: skin loaded...
18:03:22 M: 45785088 INFO: Loading skin file: DialogBusy.xml
18:03:22 M: 45805568 DEBUG: Load DialogBusy.xml: 4.93ms
18:03:22 M: 46342144 DEBUG: Activating window ID: 12999
18:03:22 M: 46342144 DEBUG: Checking if window ID 12999 is locked.
18:03:22 M: 45912064 INFO: Loading skin file: Startup.xml
18:03:22 M: 45912064 DEBUG: Load Startup.xml: 21.93ms
18:03:22 M: 45912064 DEBUG: Alloc resources: 22.69ms (22.56 ms skin load, 0.13 ms preload)
18:03:22 M: 45916160 NOTICE: use DHCP
18:03:22 M: 45600768 INFO: removing tempfiles
18:03:22 M: 45600768 NOTICE: initialize done
18:03:22 M: 45600768 INFO: Key combination detected for full debug logging (X+Y)
18:03:22 M: 45600768 NOTICE: Running the application...
18:03:22 M: 42491904 INFO: CNetwork::LogState - Link: full duplex
18:03:22 M: 42491904 INFO: CNetwork::LogState - Link: 100 mbps
18:03:22 M: 42594304 INFO: CNetwork::LogState - ip:
18:03:22 M: 42594304 INFO: CNetwork::LogState - subnet:
18:03:22 M: 42594304 INFO: CNetwork::LogState - gateway:
18:03:22 M: 42594304 INFO: - dns: CNetwork::LogState,
18:03:22 M: 42594304 DEBUG: CApplication::OnMessage : Translating ReplaceWindow(Home)
18:03:22 M: 42594304 DEBUG: CApplication::OnMessage : To ReplaceWindow(Home)
18:03:22 M: 42594304 DEBUG: Activating window ID: 10000
18:03:22 M: 42594304 DEBUG: Checking if window ID 10000 is locked.
18:03:23 M: 45387776 DEBUG: Alloc resources: 17.83ms (0.00 ms skin load, 1.87 ms preload)
18:03:24 M: 42172416 INFO: CNetwork::LogState - Link: full duplex
18:03:24 M: 42172416 INFO: CNetwork::LogState - Link: 100 mbps
18:03:24 M: 42172416 INFO: CNetwork::LogState - State: dns
18:03:24 M: 42172416 INFO: CNetwork::LogState - State: dhcp
18:03:24 M: 42172416 INFO: CNetwork::LogState - ip: 192.168.0.198
18:03:24 M: 42172416 INFO: CNetwork::LogState - subnet: 255.255.255.0
18:03:24 M: 42172416 INFO: CNetwork::LogState - gateway: 192.168.0.1
18:03:24 M: 42172416 INFO: 192.168.0.1 - dns: CNetwork::LogState, 0.0.0.0
18:03:24 M: 42172416 INFO: WEATHER: Downloading weather
18:03:24 M: 42172416 INFO: Get URL: http://xoap.weather.com/weather/local/BE...145f208494
18:03:24 M: 42172416 DEBUG: CNetwork::NetworkMessage - Starting network services
18:03:24 M: 42172416 DEBUG: SECTION:Section SNTP loaded count:1 size:7096
18:03:24 M: 42172416 NOTICE: start timeserver client
18:03:24 M: 42106880 NOTICE: Webserver: Starting...
18:03:24 M: 42029056 DEBUG: SECTION:Section LIBHTTP loaded count:1 size:80432
18:03:24 M: 42029056 DEBUG: xbmcHttpShim starts
18:03:24 M: 41963520 NOTICE: XBFileZilla: Starting...
18:03:24 M: 41832448 INFO: WebServer: Server starting using Q:\web on 192.168.0.198:80
18:03:24 M: 41820160 NOTICE: starting upnp renderer
18:03:24 M: 41816064 DEBUG: DB: Registering database table <users>
18:03:24 M: 41816064 DEBUG: .\Platinum\Source\Core\PltUPnP.cpp(125): [platinum.core.upnp] 1244217804:787 INFO: Starting UPnP...
18:03:24 M: 41734144 DEBUG: DB: Registering database table <groups>
18:03:24 M: 41795584 DEBUG: <music> tag is missing or sources.xml is malformed
18:03:24 M: 41775104 DEBUG: DB: Registering database table <access>
18:03:24 M: 41766912 DEBUG: <video> tag is missing or sources.xml is malformed
18:03:24 M: 41766912 DEBUG: UM: Loading User Configuration from file <umconfig.txt>
18:03:24 M: 41721856 DEBUG: .\Platinum\Source\Core\PltUPnP.cpp(178): [platinum.core.upnp] 1244217804:854 INFO: Starting Device...
18:03:24 M: 41660416 DEBUG: DB: About to read data file <Q:\web\umconfig.txt>
18:03:24 M: 41652224 DEBUG: .\Platinum\Source\Core\PltHttpServer.cpp(74): [platinum.core.http.server] 1244217804:859 INFO: HttpServer listening on 0.0.0.0:62951
18:03:24 M: 40964096 DEBUG: webs: Listening for HTTP requests at address 192.168.0.198
18:03:24 M: 40968192 NOTICE: Webserver: Started
18:03:25 M: 40333312 NOTICE: XBFileZilla: Started
18:03:25 M: 40370176 INFO: WEATHER: Weather download successful
18:03:38 M: 41316352 DEBUG: webs: accept request
18:03:38 M: 41316352 DEBUG: HttpApi Start command: GetDirectory paras: GetDirectory; special://musicplaylists/
18:03:38 M: 41316352 DEBUG: webs: accept request
18:03:41 M: 41316352 DEBUG: webs: accept request
</code>
Reply
#4
It's hard to tell how old your XBMC build is, given that you cut the logs.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#5
Please use pastebin.com or similar for large pastes in the future.
Reply
#6
Sorry, here's the complete log:

http://pastebin.com/m43c1180

The command returns "Error"
If I change a something (e.g.: GetDirectory(special://masicplaylists/), I get: "Error:Not folder"

Gr,
Kristof
Reply
#7
Quote:Built on Sep 1 2008

We're in 2009 now - something that old is completely unsupported I'm afraid.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#8
jmarshall Wrote:We're in 2009 now - something that old is completely unsupported I'm afraid.

Mmm ...

I run the T3ch update tool once every month, seems like something went wrong then.

Anyway, I've manually updated XBMC and can confirm it's working now.

Thanks !
Reply

Logout Mark Read Team Forum Stats Members Help
HTTP API -> Playlists ?0