Thursday, April 29, 2010

Re: XBMC Integration

0 comments
Where I'm currently at:

I send this command to get a listing of the movies in the database

GET /xbmcCmds/xbmcHttp?command=queryvideodatabase&parameter=select
%20movie.idMovie,%20movie.c00,files.strFileName%20as
%20strFileName,path.strPath%20as%20strPath,
%20movie.c14,%20movie.c01,%20movie.c05,%20movie.c11%20from%20movie
%20join%20files%20on%20files.idFile=movie.idFile%20join%20path%20on
%20path.idPath=files.idPath%20where%20%201%20=%201%20order%20by
%20movie.c00 HTTP/1.1\x0AHOST: 192.168.2.151:8888\x0A\x0A

This is the response generated.

This is for the the dozen or so movies I have in the test XBMC
database.

Now, I need to parse this into individual movies, add them to the
list, create a dynamic command/query for each individual movie
thumbnail and create dynamic "play" commands for each list element.


<html>
<field>2</field><field>13 Ghosts</field><field>13 Ghosts.iso</
field><field>smb://N7700/Media/Movies/</field><field></
field><field>Reclusive Dr. Zorba has died and left his eerie mansion
to his nephew Cyrus Zorba and his family. Along with the house, the
Zorba family has also inherited the occultist's collection of 12
ghosts, who can only be seen through Zorba's special goggles. The
family members, their lives at risk upon the discovery that Zorba's
fortune lies hidden somewhere in the house, receive aid from the
unexpected.</field><field>0.000000</field><field>85</field><field>3</
field><field>16 Blocks</field><field>16 Blocks.iso</field><field>smb://
N7700/Media/Movies/</field><field>Action</field><field>An aging cop is
assigned the ordinary task of escorting a fast-talking witness from
police custody to a courthouse, but they find themselves running the
gauntlet as other forces try to prevent them from getting there.</
field><field>5.200000</field><field>102</field><field>5</
field><field>2012</field><field>2012.iso</field><field>smb://N7700/
Media/Movies/</field><field>Action / Adventure / Disaster / Drama /
Science Fiction / Thriller</field><field>Never before has a date in
history been so significant to so many cultures, so many religions,
scientists and governments. '2012' is an epic adventure about global
cataclysm, and the epic struggle to survive.</field><field>6.200000</
field><field>158</field><field>4</field><field>3:10 to Yuma</
field><field>310 to Yuma.iso</field><field>smb://N7700/Media/Movies/</
field><field>Western</field><field>In Arizona in the late 1800's,
infamous outlaw Ben Wade and his vicious gang of thieves and murderers
have plagued the Southern Railroad. When Wade is captured, Civil War
veteran Dan Evans, struggling to survive on his drought-plagued ranch,
volunteers to deliver him alive to the "3:10 to Yuma", a train that
will take the killer to trial.</field><field>7.600000</
field><field>117</field><field>1</field><field>9</field><field>9.iso</
field><field>smb://N7700/Media/Movies/</field><field>Adventure /
Animation / Fantasy / Science Fiction</field><field>When 9 first comes
to life, he finds himself in a post-apocalyptic world. All humans are
gone, and it is only by chance that he discovers a small community of
others like him taking refuge from fearsome machines that roam the
earth intent on their extinction. Despite being the neophyte of the
group, 9 convinces the others that hiding will do them no good.</
field><field>7.200000</field><field>79</field><field>6</field><field>A
History of Violence</field><field>A History of Violence.iso</
field><field>smb://N7700/Media/Movies/</field><field>Drama / Thriller</
field><field>A David Cronenberg film about a small town man who
becomes a hero after brutally killing two robbers in his diner. The
incident is blown up in the media and questions of his identity are
raised as he tries to protect what’s most important to him - his
family.</field><field>7.600000</field><field>92</field><field>7</
field><field>A Perfect Getaway</field><field>a perfect getaway.iso</
field><field>smb://N7700/Media/Movies/</field><field>Thriller</
field><field>Two pairs of lovers (Zahn & Jovovich, Olyphant & Sanchez)
on a Hawaiian vacation discover that psychopaths are stalking and
murdering tourists on the islands.</field><field>6.000000</
field><field>97</field><field>8</field><field>Alexander</
field><field>Alexander.iso</field><field>smb://N7700/Media/Movies/</
field><field>Adventure / Drama / History</field><field>Alexander, the
King of Macedonia, leads his legions against the giant Persian Empire.
After defeating the Persians he leads his Army across the then known
world venturing further than any Westerner had ever gone all the way
to India.</field><field>5.600000</field><field>176</field><field>9</
field><field>Along Came Polly</field><field>Along Came Polly.iso</
field><field>smb://N7700/Media/Movies/</field><field>Comedy</
field><field>Reuben Feffer (Ben Stiller) is a guy who's spent his
entire life playing it safe. Polly Prince (Jennifer Aniston) is
irresistible as a free-spirit who lives for the thrill of the moment.
When these two comically mismatched souls collide, Reuben's world is
turned upside down, as he makes an uproarious attempt to change his
life from middle-of-the-road to totally-out-there!</
field><field>5.800000</field><field>90</field><field>10</
field><field>American Gangster</field><field>American Gangster.iso</
field><field>smb://N7700/Media/Movies/</field><field>Crime / Drama</
field><field>Following the death of his employer and mentor, Bumpy
Johnson, Frank Lucas establishes himself as the number one importer of
heroin in the Harlem district of Manhattan. He does so by buying
heroin directly from the source in South East Asia and he comes up
with a unique way of importing the drugs into the United States. Based
on a true story.</field><field>8.000000</field><field>157</
field><field>12</field><field>American History X</
field><field>American History X.iso</field><field>smb://N7700/Media/
Movies/</field><field>Crime / Drama</field><field>With its explicit
depiction of violence, American History X is a controversial drama
about a convicted Neo-Nazi and his struggle with his friends, family,
and with the identity he has created for himself. The film touches on
nationalism and racism in the US.</field><field>7.800000</
field><field>119</field><field>11</field><field>An American Haunting</
field><field>American Haunting, An.iso</field><field>smb://N7700/Media/
Movies/</field><field>Horror / Thriller</field><field>Based on the
true events of the only case in US History where a spirit caused the
death of a man.</field><field>6.000000</field><field>91</
field><field>13</field><field>Contact</field><field>contact.iso</
field><field>C:\Movies\</field><field>Drama / Science Fiction</
field><field>Contact is a science fiction film about an encounter with
alien intelligence. Based on the novel by Carl Sagan the film starred
Jodie Foster as the one chosen scientist who must make some difficult
decisions between her beliefs, the truth, and reality.</
field><field>8.200000</field><field>153</field><field>14</
field><field>Fight Club</field><field>fight club.iso</field><field>C:
\Movies\</field><field>Crime / Drama / Thriller</field><field>A
lonely, isolated thirty-something young professional seeks an escape
from his mundane existence with the help of a devious soap salesman.
They find their release from the prison of reality through underground
fight clubs, where men can be what the world now denies them. Their
boxing matches and harmless pranks soon lead to an out-of-control
spiral towards oblivion.</field><field>8.200000</field><field>138</
field><field>15</field><field>Transformers</
field><field>transformers.iso</field><field>C:\Movies\</
field><field>Action / Adventure / Science Fiction</field><field>The
Earth is caught in the middle of an intergalactic war between two
races of robots, the heroic Autobots and the evil Decepticons, which
are able to change into a variety of objects, including cars, trucks,
planes and other technological creations.</field><field>7.000000</
field><field>132</field></html>

--
You received this message because you are subscribed to the Google Groups "CommandFusion" group.
To post to this group, send email to commandfusion@googlegroups.com.
To unsubscribe from this group, send email to commandfusion+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/commandfusion?hl=en.

Comments

0 comments to "Re: XBMC Integration"

Post a Comment

 

Copyright 2008 All Rights Reserved Revolution Two Church theme by Brian Gardner Converted into Blogger Template by Bloganol dot com