Kodi Community Forum
Linux folder structure not right - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26)
+--- Thread: Linux folder structure not right (/showthread.php?tid=136357)

Pages: 1 2


folder structure not right - bittihuduga - 2012-07-18

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 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 helpHuh


RE: folder structure not right - sphere - 2012-07-20

Did you changed the addon.xml and renamed the folter itself to your new id?


RE: folder structure not right - bittihuduga - 2012-07-22

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


RE: folder structure not right - giftie - 2012-07-22

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.




RE: folder structure not right - bittihuduga - 2012-07-22

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


RE: folder structure not right - giftie - 2012-07-22

(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.



RE: folder structure not right - bittihuduga - 2012-07-23

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?


RE: folder structure not right - giftie - 2012-07-24

(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.


RE: folder structure not right - bittihuduga - 2012-07-24

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/shankar-nag-video_e6a8d2e7c.html
08:34:30 T:2895117168 NOTICE: Name: cbi-shankar
08:34:30 T:2895117168 NOTICE: http://www.videogirmit.com/cbi-shankar/shankar-nag-video_e6a8d2e7c.html
08:34:34 T:9328432 NOTICE: DVDPlayer: Opening: http://www.youtube.com/embed/pPYPDWQnoUU?
08:34:34 T:9328432 WARNING: CDVDMessageQueue(player):Tongueut 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):Tongueut 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


RE: folder structure not right - spiff - 2012-07-24

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


RE: folder structure not right - bittihuduga - 2012-07-24

i changed as per your suggestion
see my updated code- http://pastebin.com/x6XEjZWM
the latest error related to handshake
http://pastebin.com/ituDDvCR


RE: folder structure not right - bittihuduga - 2012-07-25

tried to update rtmpdump to 2.4v as per below link
http://www.xbmchub.com/forums/apple-tv-2-discussion/344-rtmpdump.html

no luck after update. same handshake error


RE: folder structure not right - bittihuduga - 2012-07-25

is this right steps to update the rtmpdump file:

1. compile the librtmp as suggested in below link
http://www.xbmchub.com/forums/apple-tv-2-discussion/344-rtmpdump.html

2. it is installed in home/pi/rtmpdump folder

3-Copy librtmp.0.dylib)
4. Replace the one in /Applications/XBMC.frappliance/Frameworks/ with this one
5-Logged as root with puTTy and chown with mobile the librtmp.0.dylib
chown mobile /private/var/stash/Applications/XBMC.frappliance/Frameworks/librtmp.0.dylib

pls guide




RE: folder structure not right - bittihuduga - 2012-07-25

went one step forward...

19:17:43 T:13500016 NOTICE: DVDPlayer: Opening: rtmpe://v24.nonxt1.c.youtube.com/videoplayback,stream=sparams=id,itag,rtmpe,source,expire&fexp=916404,912303,901051,910206,900805,915507,907217,907335,921602,922600,919804,924500,924700,913547,904721,920706,924402,907344,912706,900816,902518&expire=1343240560&itag=59&sver=3&source=youtube&rtmpe=yes&key=yt1&signature=4411EC9082B9F20799BE72EDF226F1D926CF8DA8.52CA10F2CC0A346FF0B2A77AFBAB2A38CF0B2D06&id=a4f60f0d6427a145&itag=59 swfurl=http://s.ytimg.com/yt/swfbin/watch_as3-vflohUKhE.swf swfvfy=1 playpath=sparams=id,itag,rtmpe,source,expire?ptchn=ShemarooKannada&ptk=shemarooent | Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8
19:17:43 T:13500016 WARNING: CDVDMessageQueue(player):Tongueut MSGQ_NOT_INITIALIZED
19:17:43 T:116140912 NOTICE: Creating InputStream
19:17:43 T:116140912 ERROR: Unable to load librtmp.so.0, reason: libssl.so.1.0.0: cannot open shared object file: No such file or directory



RE: folder structure not right - bittihuduga - 2012-07-26

i managed to play the video now.
but when i try to stop the video, the video stops and goes back to the last listing page and plays again the same video. its going in loop, i cant go back to previous screens. any help

http://pastebin.com/KYnX3UPe