Linux folder structure not right

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
bittihuduga Offline
Senior Member
Posts: 158
Joined: Oct 2009
Reputation: 0
Post: #1
hi
i am trying to build my first addon based on another add on from the user here.
i'm trying to play videos on http://www.videogirmit.com
just changed few parameters from the original addon.
but the add on is not installing. i dont have relevant files so cant test locally.

http://pastebin.com/cChHAYgN

any helpConfused
find quote
sphere Offline
Posting Freak
Posts: 781
Joined: Jul 2009
Reputation: 33
Location: Germany
Post: #2
Did you changed the addon.xml and renamed the folter itself to your new id?
(This post was last modified: 2012-07-20 08:33 by sphere.)
find quote
bittihuduga Offline
Senior Member
Posts: 158
Joined: Oct 2009
Reputation: 0
Post: #3
i have a new problem
can some one help
the script when i try to play is giving error

http://pastebin.com/D2H3xN5v
pls tell me what is the problem in my code
find quote
giftie Offline
Skilled Python Coder
Posts: 2,035
Joined: Mar 2010
Reputation: 35
Post: #4
What is the error you are getting?

Also if your addon(plugin) is structured the way you have on pastebin, your indents are all over the place.. A lot of addon developers use a 4 space indent.

[Image: e4f63e45ba34fe4695b3bb08eb2499d8e4ee484e...4c076g.jpg]
For troubleshooting and bug reporting please make sure you read this first you can also use XBMC Log Uploader Script.
Cinema Experience
Cinema Experience Wiki
cdART Manager
fanart.tv


find quote
bittihuduga Offline
Senior Member
Posts: 158
Joined: Oct 2009
Reputation: 0
Post: #5
sorry i am a firstimer and hence my coding is so worst.
i wrote this based on the example on wiki page.
when i try to run the plugin on xbmc i get script failed error
find quote
giftie Offline
Skilled Python Coder
Posts: 2,035
Joined: Mar 2010
Reputation: 35
Post: #6
(2012-07-22 14:24)bittihuduga Wrote:  sorry i am a firstimer and hence my coding is so worst.
i wrote this based on the example on wiki page.
when i try to run the plugin on xbmc i get script failed error

The xbmc.log file contains the actual 'trace' for the error that will help out a lot.

[Image: e4f63e45ba34fe4695b3bb08eb2499d8e4ee484e...4c076g.jpg]
For troubleshooting and bug reporting please make sure you read this first you can also use XBMC Log Uploader Script.
Cinema Experience
Cinema Experience Wiki
cdART Manager
fanart.tv


find quote
bittihuduga Offline
Senior Member
Posts: 158
Joined: Oct 2009
Reputation: 0
Post: #7
thanks. used a sample plugin and worked a bit.
i got the directories listed
i got the webpage parsed and i got all 1100 movie links displayed with the name in the next list
but when i play the movie i get error - script failed
my code is available here - http://pastebin.com/3pK82wck
the error i see in log is here - http://pastebin.com/FdNCBZec
all my links are youtube links. but my script is failing.
can u pls help me?
find quote
giftie Offline
Skilled Python Coder
Posts: 2,035
Joined: Mar 2010
Reputation: 35
Post: #8
(2012-07-23 23:52)bittihuduga Wrote:  thanks. used a sample plugin and worked a bit.
i got the directories listed
i got the webpage parsed and i got all 1100 movie links displayed with the name in the next list
but when i play the movie i get error - script failed
my code is available here - http://pastebin.com/3pK82wck
the error i see in log is here - http://pastebin.com/FdNCBZec
all my links are youtube links. but my script is failing.
can u pls help me?

The error is that your trying to return 'ok' in the function INDEX2(), your other functions have the following:
Code:
ok = True

If you add 'ok = True' in between line 23 & 24 you should get much further on in you plugin.

[Image: e4f63e45ba34fe4695b3bb08eb2499d8e4ee484e...4c076g.jpg]
For troubleshooting and bug reporting please make sure you read this first you can also use XBMC Log Uploader Script.
Cinema Experience
Cinema Experience Wiki
cdART Manager
fanart.tv


(This post was last modified: 2012-07-24 00:18 by giftie.)
find quote
bittihuduga Offline
Senior Member
Posts: 158
Joined: Oct 2009
Reputation: 0
Post: #9
thanks for your suggestion
add ok=true and it looked better
moved to the next error.
08:34:18 T:2886724464 NOTICE: -->Python Interpreter Initialized<--
08:34:19 T:2886724464 NOTICE: Mode: None
08:34:19 T:2886724464 NOTICE: URL: None
08:34:19 T:2886724464 NOTICE: Name: None
08:34:20 T:2886724464 NOTICE: -->Python Interpreter Initialized<--
08:34:20 T:2886724464 NOTICE: Mode: 1
08:34:20 T:2886724464 NOTICE: URL: http://www.videogirmit.com/movies.html
08:34:20 T:2886724464 NOTICE: Name: Kannada Movies
08:34:20 T:2886724464 NOTICE: http://www.videogirmit.com/movies.html
08:34:30 T:2895117168 NOTICE: -->Python Interpreter Initialized<--
08:34:30 T:2895117168 NOTICE: Mode: 2
08:34:30 T:2895117168 NOTICE: URL: http://www.videogirmit.com/cbi-shankar/s...d2e7c.html
08:34:30 T:2895117168 NOTICE: Name: cbi-shankar
08:34:30 T:2895117168 NOTICE: http://www.videogirmit.com/cbi-shankar/s...d2e7c.html
08:34:34 T:9328432 NOTICE: DVDPlayer: Opening: http://www.youtube.com/embed/pPYPDWQnoUU?
08:34:34 T:9328432 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
08:34:34 T:2886724464 NOTICE: Creating InputStream
08:34:34 T:2886724464 NOTICE: Creating Demuxer
08:34:34 T:2886724464 ERROR: Open - error probing input format, http://www.youtube.com/embed/pPYPDWQnoUU?
08:34:34 T:2886724464 ERROR: OpenDemuxStream - Error creating demuxer
08:34:34 T:2886724464 NOTICE: CDVDPlayer::OnExit()
08:34:34 T:2886724464 NOTICE: CDVDPlayer::OnExit() deleting input stream
08:34:34 T:9328432 NOTICE: CDVDPlayer::CloseFile()
08:34:34 T:9328432 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
08:34:34 T:9328432 NOTICE: DVDPlayer: waiting for threads to exit
08:34:34 T:9328432 NOTICE: DVDPlayer: finished waiting
08:35:33 T:9328432 ERROR: GLX: Same window as before, refreshing context

the youtube link is valid. i checked in the browser.
how do i play the link in xbmc?
pls guide
find quote
spiff Online
Grumpy Bastard Developer
Posts: 12,177
Joined: Nov 2003
Reputation: 82
Post: #10
The youtube link link you you return is correct if you happen to want the html for the webpage...you want the video stream url.plugin.video.youtube can resolve that from the video id,there is a myriad of examples of how to do that in other plugins

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.
find quote
Post Reply