Movie View from video plugin?
#1
Hello,

I wanted to ask how I do it in a video plugin (addon?) to define which listing view it uses - specifically the movie one, and which params i can fill out, etc? To clarify, this is not on an existing plugin, it is a self-written one; I wish to know how to code it into the plugin - not how to do so as user Smile

Any help would be appreciated.
Reply
#2
No, you cannot dictate how the view displays, but you can specify the content type to use. If it's a movie one, then setContent to movies. The skin will then make the movie style views available for the user to choose from.

Ofcourse, it's up to the user to decide what they actually want to view the content.

Cheers,
Jonathan
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
Reply
#3
and the additional info like plot, etc, I can pass along too?
Reply
#4
Ofcourse - just set the appropriate properties/infolabels.
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
Reply
#5
Hrm,

I tried it - adding it before the endofdirectory, and although I do get to right click (context menu) into movie information, the view is not available...

Code:
xbmcplugin.setContent(handle=int(sys.argv[1]), content="movies" )
xbmcplugin.endOfDirectory(int(sys.argv[1]))

I haven't set any extended information than required - Is there something else I need to do? I am using the sample script from the Tutorial.

Maybe I am not understanding something... any help would be appreciated.

Secondly, I also added sort method to Title (I pass em along alphabetically sorted) however, upon changing it to ascending in the UI, nothing happens.... Is that something that I need to code in python?
Reply
#6
Are you running in the plugin in Library mode or regular?

Some views are only available in library mode from my experience.
Reply
#7
I am running it in normal mode - How can I turn it into library mode so the view becomes available?
Reply
#8
In confluence it is a little check box on the left side. Under "view" and "sort". If it is greyed out then the library is empty.
Reply
#9
but is it impossible to force the library/movie view to happen from a video plugin side?
Reply
#10
Again, it's up to the skin as to what views they offer in file mode.

And yes, it is impossible for a plugin to force a view (as it should be) as this is the choice of the user.
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
Reply
#11
Well, given that, then instead of a video plugin, i should move over to making a script - as I heard, you do have control over the view, etc under those circumstances? Is this true? Would that solve my problem?

If so, any help to a tutorial how to make a normal "plugin" into a "script" would be appreciated Smile
Reply
#12
I strongly recommend against doing that.

Have you tried it from library view?
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
Reply

Logout Mark Read Team Forum Stats Members Help
Movie View from video plugin?0