Hi all,
I've worked on the album problem, code have been tested by hitcher, i've
added a changelog to the addon and put example of use with album made by
hitcher.
version 1.0.2
svn:
https://passion-xbmc.googlecode.com/svn/trunk/addons/script.recentlyadded/<https://passion-xbmc.googlecode.com/svn/trunk/addons/script.logo-downloader/>
revision: 922
Changelog:
v 2.1.0 (Ppic):
- restored album function (clic on random or recently added album will play
the full album)
TO SKINNERS: the "playmedia" isn't needed for album, instead of that,
"LatestSong.%d.Path" will be filled with command to run the script with
albumid, then the script will make a playlist with all song of the album and
play it ;)
here is an example made by hitcher:
made a custom button in the settings so the user can choose to use
Albums -
XML Code:
<control type="radiobutton" id="265">
<include>SettingsLabel</include>
<label>$LOCALIZE[31327]</label> <!--Enable Latest Albums (default
Latest Songs)-->
<onclick>Skin.ToggleSetting(PlayAlbums)</onclick>
<selected>Skin.HasSetting(PlayAlbums)</selected>
</control>
Then used that condition when I run the script -
XML Code:
<control type="button" id="5043">
<posx>-20</posx>
<posy>-20</posy>
<width>1</width>
<height>1</height>
<texturenofocus>-</texturenofocus>
<texturefocus>-</texturefocus>
<onfocus>XBMC.RunScript(script.recentlyadded,limit=10&albums=False&unplayed=True&totals=True&random=True)</onfocus>
<onfocus>SetFocus(300)</onfocus>
<visible>!Skin.HasSetting(PlayAlbums)</visible>
</control>
<control type="button" id="5043">
<posx>-20</posx>
<posy>-20</posy>
<width>1</width>
<height>1</height>
<texturenofocus>-</texturenofocus>
<texturefocus>-</texturefocus>
<onfocus>XBMC.RunScript(script.recentlyadded,limit=10&albums=True&unplayed=True&totals=True&random=True)</onfocus>
<onfocus>SetFocus(300)</onfocus>
<visible>Skin.HasSetting(PlayAlbums)</visible>
</control>
And finally in the actual control -
XML Code:
<item id="10">
<icon>$INFO[Window.Property(LatestSong.1.Thumb)]</icon>
<label>$INFO[Window.Property(LatestSong.1.Album),, -
]$INFO[Window.Property(LatestSong.1.Title)]</label>
<onclick>$INFO[Window.Property(LatestSong.1.Path),PlayMedia(,)]</onclick>
<visible>!Skin.HasSetting(PlayAlbums) +
!IsEmpty(Window.Property(LatestSong.1.Title))</visible>
</item>
<item id="10">
<icon>$INFO[Window.Property(LatestSong.1.Thumb)]</icon>
<label>$INFO[Window.Property(LatestSong.1.Album),, -
]$INFO[Window.Property(LatestSong.1.Artist)]</label>
<onclick>$INFO[Window.Property(LatestSong.1.Path)]</onclick>
<visible>Skin.HasSetting(PlayAlbums) +
!IsEmpty(Window.Property(LatestSong.1.Artist))</visible>
</item>
---------- Forwarded message ----------
From: Ppic <[email protected]>
Date: 2011/1/1
Subject: Re: [Xbmc-addons] script.recentlyadded problem
To: Kevin Goffe <[email protected]>
Cc: [email protected]
I'll try to check it soon.
Happy new year to all of you !
> Hi,
>
> Something seems to have been lost along the way because Random
albums/songs no
> longer works (Movies and Episodes are still fine).
>
> Thanks,
>
> Kev.
>
>
>
>
>
------------------------------------------------------------------------------
> Learn how Oracle Real Application Clusters (RAC) One Node allows customers
> to consolidate database storage, standardize their database environment,
and,
> should the need arise, upgrade to a full multi-node Oracle RAC database
> without downtime or disruption
> http://p.sf.net/sfu/oracle-sfdevnl
> _______________________________________________
> Xbmc-addons mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/xbmc-addons
------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and,
should the need arise, upgrade to a full multi-node Oracle RAC database
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Xbmc-addons mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xbmc-addons