LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 04-25-2011, 09:27 AM   #1
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
display content of txt file in xbmc


hi, i would like some suggestions on how to go about developing this add-on. i am testing this on my xbmc-live set-up; i am fairly affluent in bash/ c but unfortunately i dont have experience with python.

i trimmed the data using this bash 1-liner so the output looks like:
Code:
xbmc@XBMCLive:~$ wget -q --output-document=- www.google.com/movies | sed -n 3p |   tr '\<' "\n" | egrep "(title_bar|id=link_1_theater|class=info|mid=|Rated|class=times|fandango)" | grep -v ^style | sed s/alt=/\>/ | awk -F \> '{print $2}' | sed s/\&....../" "/g
Showtimes for Boston, MA 02111
Simons IMAX Theatre at the New England Aquarium
Central Wharf, Atlantic Ave, Boston, MA - (617) 973-5206
Hubble 3D
 45min   - Rated G   - Documentary  - 
"Rated 3.9 out of 5.0"
10:00am
Sea Rex: Journey To A Prehistoric World 3D
 45min   - Documentary  - 
12:00 5:00pm
Under the Sea 3D
 40min   - Rated G   - Documentary  - 
"Rated 3.8 out of 5.0"
11:00am 2:00 4:00 6:00pm
Tron Legacy: An IMAX 3D Experience
 2hr 7min   - Rated PG   - Action/Adventure/Scifi/Fantasy  - 
"Rated 3.7 out of 5.0"
7:15pm
Dolphins and Whales 3D: Tribes of the Ocean
 42min   - Rated G   - Documentary  - 
"Rated 4.0 out of 5.0"
1:00 3:00pm
ArtsEmerson::Film
559 Washington St, Boston, MA - (617) 824-8000
The Sun Also Rises
 2hr 10min   - Drama  - 
"Rated 0.0 out of 5.0"
7:30pm
AMC Loews Boston Common 19
175 Tremont Street, Boston, MA - (888) 262-4386
Battle: Los Angeles
 1hr 56min   - Rated PG-13   - Action/Adventure/Scifi/Fantasy  - 
"Rated 2.8 out of 5.0"
11:15am 12:45 3:25 4:45 
6:10
7:00
7:30
8:55
9:45
10:30pm
Rango
 1hr 47min   - Rated PG   - Animation/Action/Adventure  - 
"Rated 3.5 out of 5.0"
11:10am 1:50 2:45 4:30 5:20 
7:15
8:00
9:55
10:35pm
Red Riding Hood
 1hr 40min   - Rated PG-13   - Drama  - 
"Rated 2.5 out of 5.0"
11:05am 12:40 2:10 3:30 5:00 
7:45
10:20
11:05pm
The Adjustment Bureau
 1hr 46min   - Rated PG-13   - Romance/Scifi/Fantasy  - 
"Rated 3.6 out of 5.0"
11:25am 12:55 1:55 3:35 4:25 
6:05
7:10
8:50
9:50pm
Mars Needs Moms in Disney Digital 3D
 1hr 28min   - Rated PG   - Animation/Action/Adventure/Comedy 
2:30 4:50pm
Beastly
 1hr 35min   - Rated PG-13   - Romance/Drama  - 
"Rated 3.6 out of 5.0"
12:35 2:50 5:05 
7:25
9:30pm
Hall Pass
 1hr 38min   - Rated R   - Comedy  - 
"Rated 3.1 out of 5.0"
12:05pm
Just Go With It
 1hr 50min   - Rated PG-13   - Comedy/Romance  - 
"Rated 3.3 out of 5.0"
11:00am 1:40 4:35 
7:40
10:20pm
The King Speech
 1hr 51min   - Rated R   - Drama  - 
"Rated 4.6 out of 5.0"
1:00 3:45 
6:30
9:20pm
Unknown
 1hr 49min   - Rated PG-13   - Drama/Suspense/Thriller  - 
"Rated 3.3 out of 5.0"
1:15 4:00 
7:20
10:00pm
I Am Number Four
 1hr 44min   - Rated PG-13   - Action/Adventure/Suspense/Thriller  - 
"Rated 3.0 out of 5.0"
12:50 
6:15pm
Gnomeo  uliet 3D
...
at this point i am seeking help on how to get this data displayed when the add-on is run.

i am hoping this is generic enough so that those not aware of what xbmc is would be able provide python examples.

thank you,
schneidz
 
Old 04-25-2011, 08:59 PM   #2
thund3rstruck
Member
 
Registered: Nov 2005
Location: East Coast, USA
Distribution: Fedora 18, Slackware64 13.37, Windows 7/8
Posts: 386

Rep: Reputation: 43
You definitely want to go to the XBMC developers community with questions like this.

http://forum.xbmc.org/forumdisplay.php?f=93
 
Old 04-26-2011, 08:02 PM   #3
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Original Poster
Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
^ yeah, this has been open for a while with no response so i decided to try my luck here:
http://forum.xbmc.org/showthread.php?t=97142

i came across a python manual written for noobs so hopefully i can use that as a basis...

thanks,
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
C - how to open a txt file and then display the data UltimateDesi Programming 20 10-17-2010 10:32 AM
display lyrics in banshee(read from 1d3 tags or txt file) sica07 Linux - Software 0 09-23-2009 03:59 AM
How can read from file.txt C++ where can save this file(file.txt) to start reading sam_22 Programming 1 01-11-2007 05:11 PM
shell script for changing a txt file content Flobsi Linux - Newbie 3 10-06-2006 03:10 AM
shell script for changig txt-file content Flobsi Programming 1 10-05-2006 05:46 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration