Random Movie script for skins

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
fmronan Offline
Fan
Posts: 584
Joined: Dec 2010
Reputation: 4
Post: #11
I hope it is possible to change your script in order to make a sort of film using a playlist?
find quote
Steveb Offline
Fan
Posts: 305
Joined: Oct 2009
Reputation: 3
Location: Adelaide, Australia
Post: #12
arnuschky Wrote:Hey,

I don't know much about skinning (know Python, though). Can someone give me an easy solution how to integrate this into confluence?

Cheers

Hi, you could add it to the Movie sub-menu on the home screen by editing the IncludesHomeMenuItems.xml located in the 720p folder. Search for the section named <include name="HomeSubMenuMovies"> and add a new button there..

Here is a example..

Code:
<include name="HomeSubMenuMovies">
        <control type="image" id="90161">
            <width>35</width>
            <height>35</height>
            <texture border="0,0,0,3" flipx="true">HomeSubEnd.png</texture>
        </control>
        <control type="button" id="90162">
            <include>ButtonHomeSubCommonValues</include>
            <label>31328</label>
            <onclick>ActivateWindow(Videos,RecentlyAddedMovies,return)</onclick>
        </control>
        <control type="button" id="90163">
            <include>ButtonHomeSubCommonValues</include>
            <label>369</label>
            <onclick>ActivateWindow(Videos,MovieTitles,return)</onclick>
        </control>
        <control type="button" id="90164">
            <include>ButtonHomeSubCommonValues</include>
            <label>135</label>
            <onclick>ActivateWindow(Videos,MovieGenres,return)</onclick>
        </control>
        <control type="button" id="90165">
            <include>ButtonHomeSubCommonValues</include>
            <label>652</label>
            <onclick>ActivateWindow(Videos,MovieYears,return)</onclick>
        </control>
        <control type="button" id="90166">
            <include>ButtonHomeSubCommonValues</include>
            <label>344</label>
            <onclick>ActivateWindow(Videos,MovieActors,return)</onclick>
        </control>
        <!-- Random Movie Mod -->
        <control type="button" id="90167">
            <include>ButtonHomeSubCommonValues</include>
            <label>Random Movie</label>
            <onclick>RunScript(script.randommovie,prompt=True)</onclick>
            <visible>System.HasAddon(script.randommovie)</visible>
        </control>        
        <control type="image" id="90168">
            <width>35</width>
            <height>35</height>
            <texture border="0,0,0,3">HomeSubEnd.png</texture>
        </control>
    </include>

"Political Correctness is a doctrine, fostered by a delusional, illogical minority, and rabidly promoted by an unscrupulous mainstream media, which holds forth the proposition that it is entirely possible to pick up a turd by the clean end"
find quote
el_Paraguayo Offline
Fan
Posts: 448
Joined: Feb 2011
Reputation: 7
Location: London, UK
Post: #13
fmronan Wrote:I hope it is possible to change your script in order to make a sort of film using a playlist?

Hi fmronan.

I'm not sure I understand what you want to do. Can you explain a bit more?

el_P

MythSuspendAlarm: Suspend xbmc and set ACPI wake alarm based on next scheduled MythTV recording.
BBC Football Scores: Get live football score notifications.
Random Movie Script: Play random movies from user's library (for skinners).
find quote
el_Paraguayo Offline
Fan
Posts: 448
Joined: Feb 2011
Reputation: 7
Location: London, UK
Post: #14
FYI I will be working on some new features to include in the script: e.g. playing x random trailers and then user being able to select which film to watch, adding random music option (e.g. by genre), etc.

(I take no credit for the ideas, they came from PatrickBateman in the Cirrus forum).

I also need to update for the latest changes to JSON-RPC so that the script will be Eden ready.

I am unlikely to do any further work to the Dharma version of the script.

MythSuspendAlarm: Suspend xbmc and set ACPI wake alarm based on next scheduled MythTV recording.
BBC Football Scores: Get live football score notifications.
Random Movie Script: Play random movies from user's library (for skinners).
find quote
fmronan Offline
Fan
Posts: 584
Joined: Dec 2010
Reputation: 4
Post: #15
google translation:
I would be able to view the film at random contained in a video playlist
find quote
el_Paraguayo Offline
Fan
Posts: 448
Joined: Feb 2011
Reputation: 7
Location: London, UK
Post: #16
fmronan Wrote:google translation:
I would be able to view the film at random contained in a video playlist


Ok, I understand.

This is on my list of things I'd like to do, however I don't think this is possible at the moment.

I need to look at the JSON RPC methods and double check what's available for playlists.

MythSuspendAlarm: Suspend xbmc and set ACPI wake alarm based on next scheduled MythTV recording.
BBC Football Scores: Get live football score notifications.
Random Movie Script: Play random movies from user's library (for skinners).
find quote
fmronan Offline
Fan
Posts: 584
Joined: Dec 2010
Reputation: 4
Post: #17
I hope you get there, because it really is something missing in xbmc
find quote
el_Paraguayo Offline
Fan
Posts: 448
Joined: Feb 2011
Reputation: 7
Location: London, UK
Post: #18
el_Paraguayo Wrote:Ok, I understand.

This is on my list of things I'd like to do, however I don't think this is possible at the moment.

I need to look at the JSON RPC methods and double check what's available for playlists.

Yes! I can get this to work.

Will add to next version of the script.

MythSuspendAlarm: Suspend xbmc and set ACPI wake alarm based on next scheduled MythTV recording.
BBC Football Scores: Get live football score notifications.
Random Movie Script: Play random movies from user's library (for skinners).
find quote
tria Offline
Member
Posts: 72
Joined: Jan 2012
Reputation: 0
Post: #19
You have nice ideas
One improvement could be that you can make it work with TV Series. For example you can play a random episode, or play a random episode of a given genre (Comedy/Cartoon...etc), or even play a random episode of a given TV Series.
Other than that this script seems great, and I will try to integrate it under the Movie submenu.
find quote
el_Paraguayo Offline
Fan
Posts: 448
Joined: Feb 2011
Reputation: 7
Location: London, UK
Post: #20
tria Wrote:You have nice ideas
One improvement could be that you can make it work with TV Series. For example you can play a random episode, or play a random episode of a given genre (Comedy/Cartoon...etc), or even play a random episode of a given TV Series.
Other than that this script seems great, and I will try to integrate it under the Movie submenu.

This is already integrated into Cirrus Extended v2 so take a look at that skin to see how it's done (and look at post #1)

MythSuspendAlarm: Suspend xbmc and set ACPI wake alarm based on next scheduled MythTV recording.
BBC Football Scores: Get live football score notifications.
Random Movie Script: Play random movies from user's library (for skinners).
find quote
Post Reply