WebServer HTTP API (HttpApi): for PocketPC and Web-client Remote Control Apps

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
nad Offline
Team-XBMC Developer
Posts: 265
Joined: Feb 2004
Reputation: 0
Post: #521
Nuka,

Are you sure you retrieved the svn with my change included (I believe it takes a few hours to be released)? I managed to replicate the fault that you described very easily and the change I submitted fixed it for me.

I'll make your * to / change (though I'll also keep the use of * for backward compatibility).

I could make the change to include folders when a mask is set but to me it doesn't seem that logical. Why return something (folders) that doesn't match the mask?

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: badge.gif]
find quote
nad Offline
Team-XBMC Developer
Posts: 265
Joined: Feb 2004
Reputation: 0
Post: #522
Trex: I see the problem; will fix it tomorrow.

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: badge.gif]
find quote
TREX6662k5 Offline
Member+
Posts: 214
Joined: Oct 2006
Reputation: 0
Location: London, United Kingdom
Post: #523
Thanks nad.

Also, I had created a feature request on the tracker, which talks about adding an extra parameter to AddToSlideshow and AddToPlayList that controls whether the action is recursive or not. Is it possible this can be added, or is this something that can be done on the client side?

Currently my script adds the files one by one in to the playlist, which can consume both time and network resources. And I don't want to the script to simulate the xboxes actions by also going though all the folders because i'd be making more problems than solving.

WYSIWYG
find quote
Nuka1195 Offline
Skilled Python Coder
Posts: 3,917
Joined: Dec 2004
Reputation: 17
Post: #524
yes i'm sure and it doesn't take hours for svn to update.

rar files are not seen as folders at all with "Make archives with one file transparent" enabled, not just rars with one file, but if it's working for you, i don't know.

Quote:
Fixed: httpapi GetDirectory would not recognise a single file RAR as a folder when "Make archives with one file transparent" is enabled

Why return folders when you set a mask, because the subfolders may have files that match your mask, so you can drill down. makes sense to me.

For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
find quote
jmarshall Offline
Team-XBMC Developer
Posts: 24,523
Joined: Oct 2003
Reputation: 138
Post: #525
If they're not seen as folders, it's because CDirectory::GetDirectory() is called with bUseFileFolders set to false (i.e. no file->folder translation is performed)

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: badge.gif]
find quote
nad Offline
Team-XBMC Developer
Posts: 265
Joined: Feb 2004
Reputation: 0
Post: #526
Trex: fix uploaded. As far as your request, rather than add all the files in a folder one by one as you are currently doing wouldn't just passing the folder to AddToSlideshow do what you are after?

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: badge.gif]
find quote
TREX6662k5 Offline
Member+
Posts: 214
Joined: Oct 2006
Reputation: 0
Location: London, United Kingdom
Post: #527
Thanks nad.

Thats what I kinda do. I send AddToPlaylist (for videos and music) then I send SetPlaylistSong. However since the xbox has also added the contents of folders in its path, my script and xbox see things differently and the wrong file plays.

WYSIWYG
find quote
KevMoore123 Offline
Junior Member
Posts: 26
Joined: Dec 2007
Reputation: 0
Location: England
Post: #528
Hi Guys,

The source for my slightly less impressive PDA Application can be found on sourceforge. The url is;

http://xbmcm.svn.sourceforge.net/viewvc/xbmcm/

There is a readonly repository there for Subversion users.

You will need VS2008 to compile this, and please bear in mind its a beta Wink
Enjoy

Cheers

Kev
find quote
KevMoore123 Offline
Junior Member
Posts: 26
Joined: Dec 2007
Reputation: 0
Location: England
Post: #529
Hi all,

ive just upgraded my xbox to the latest build, and now I cannot query via the HTTP API any queries such as;

select strTitle from songview where strArtist like '%%Muse%%';

(in HTTP land)
http://192.168.2.5/xbmcCmds/xbmcHttp?com...%%Muse%%';


if i run the same query through the SQLLite Database browser it returns results.

Any ideas why this would be?

thanks

kev Moore
find quote
KevMoore123 Offline
Junior Member
Posts: 26
Joined: Dec 2007
Reputation: 0
Location: England
Post: #530
Sorry,
that was meant to say ;

select strArtist from songview where strArtist like '%%Muse%%';
or
select strTitle from songview where strTitle like '%%Everybody%%';

..

has the interface changed for LIKE queries??

thanks

Kev MooreShocked
find quote
Post Reply