Skip to content

Commit

Permalink
# LatestMediaHandler-2.3.0.42
Browse files Browse the repository at this point in the history
* Internal rework, optimizations and bug fixes.
* Fix for skins with facade-control.
* SpeedUp latests music.
* Context menu worked on facade and buttons.
* Play music worked with (cue+flac etc).
+ Add screenshots
+ Add property
#latestMediaHandler.scanned - true or false
  • Loading branch information
Andrew J.Swan committed Oct 1, 2015
1 parent 9a309c5 commit 0cff98c
Show file tree
Hide file tree
Showing 31 changed files with 2,474 additions and 1,868 deletions.
Binary file modified External/FanartHandler.dll
Binary file not shown.
Binary file added External/GUIPictures.dll
Binary file not shown.
14 changes: 13 additions & 1 deletion LatestMediaHandler/ExternalAccess.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
extern alias RealNLog;
//***********************************************************************
// Assembly : LatestMediaHandler
// Author : cul8er
// Created : 05-09-2010
//
// Last Modified By : ajs
// Last Modified On : 30-09-2015
// Description :
//
// Copyright : Open Source software licensed under the GNU/GPL agreement.
//***********************************************************************

extern alias RealNLog;

using System;

Expand Down
6 changes: 3 additions & 3 deletions LatestMediaHandler/Latest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,9 @@ internal string New
}

internal Latest(string dateAdded, string thumb, string fanart, string title, string subtitle, string artist,
string album, string genre, string rating, string roundedRating, string classification, string runtime,
string year, string seasonIndex, string episodeIndex, string thumbSeries, object playable, string id,
string summary, string seriesIndex, bool isnew = false)
string album, string genre, string rating, string roundedRating, string classification, string runtime,
string year, string seasonIndex, string episodeIndex, string thumbSeries, object playable, string id,
string summary, string seriesIndex, bool isnew = false)
{
this.dateAdded = dateAdded;
this.thumb = thumb;
Expand Down
18 changes: 8 additions & 10 deletions LatestMediaHandler/Latest4TRRecordingsHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
// Author : cul8er
// Created : 05-09-2010
//
// Last Modified By : cul8er
// Last Modified On : 01-11-2011
// Last Modified By : ajs
// Last Modified On : 30-09-2015
// Description :
//
// Copyright : Open Source software licensed under the GNU/GPL agreement.
Expand Down Expand Up @@ -288,7 +288,7 @@ internal void UpdateActiveRecordings()
LatestMediaHandlerSetup.SetProperty("#latestMediaHandler.tvrecordings.active" + i + ".endDate", latestRecordings[x0].EndDate);
LatestMediaHandlerSetup.SetProperty("#latestMediaHandler.tvrecordings.active" + i + ".channel", latestRecordings[x0].Channel);
LatestMediaHandlerSetup.SetProperty("#latestMediaHandler.tvrecordings.active" + i + ".channelLogo", latestRecordings[x0].ChannelLogo);
if (i == 3)
if (i == Utils.LatestsMaxNum)
{
break;
}
Expand Down Expand Up @@ -367,7 +367,7 @@ internal LatestsCollection Get4TRRecordings()
LatestMediaHandlerSetup.SetProperty("#latestMediaHandler.tvrecordings.scheduled" + i + ".endDate", latestRecordings[x0].EndDate);
LatestMediaHandlerSetup.SetProperty("#latestMediaHandler.tvrecordings.scheduled" + i + ".channel",latestRecordings[x0].Channel);
LatestMediaHandlerSetup.SetProperty("#latestMediaHandler.tvrecordings.scheduled" + i + ".channelLogo", latestRecordings[x0].ChannelLogo);
if (i == 3)
if (i == Utils.LatestsMaxNum)
{
break;
}
Expand Down Expand Up @@ -405,7 +405,7 @@ internal LatestsCollection Get4TRRecordings()
{
RecordingSummary[] recordings = null;
DateTime _time = DateTime.Now;
while (latests.Count < 10 && _time > DateTime.Now.AddMonths(-3)) //go max three moth back
while (latests.Count < Utils.FacadeMaxNum && _time > DateTime.Now.AddMonths(-3)) //go max three moth back
{
recordings = null;
recordings = _tvControlAgent.GetRecordingsForOneDay(ChannelType.Television, _time, false);
Expand Down Expand Up @@ -475,7 +475,7 @@ internal LatestsCollection Get4TRRecordings()
//}
x++;
i0++;
if (x == 10)
if (x == Utils.FacadeMaxNum)
{
break;
}
Expand Down Expand Up @@ -566,10 +566,8 @@ internal void UpdateSelectedImageProperties()
{
try
{
GUIWindow gw = GUIWindowManager.GetWindow(GUIWindowManager.ActiveWindow);
GUIControl gc = gw.GetControl(LatestTVAllRecordingsHandler.ControlID);
facade = gc as GUIFacadeControl;
if (facade != null && gw.GetFocusControlId() == LatestTVAllRecordingsHandler.ControlID && facade.SelectedListItem != null)
facade = Utils.GetLatestsFacade(LatestTVAllRecordingsHandler.ControlID);
if (facade != null && facade.Focus && facade.SelectedListItem != null)
{
int _id = facade.SelectedListItem.ItemId;
String _image = facade.SelectedListItem.DVDLabel;
Expand Down
18 changes: 8 additions & 10 deletions LatestMediaHandler/LatestArgusRecordingsHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
// Author : cul8er
// Created : 05-09-2010
//
// Last Modified By : cul8er
// Last Modified On : 01-11-2011
// Last Modified By : ajs
// Last Modified On : 30-09-2015
// Description :
//
// Copyright : Open Source software licensed under the GNU/GPL agreement.
Expand Down Expand Up @@ -280,7 +280,7 @@ internal void UpdateActiveRecordings()
LatestMediaHandlerSetup.SetProperty("#latestMediaHandler.tvrecordings.active" + i + ".endDate", latestRecordings[x0].EndDate);
LatestMediaHandlerSetup.SetProperty("#latestMediaHandler.tvrecordings.active" + i + ".channel", latestRecordings[x0].Channel);
LatestMediaHandlerSetup.SetProperty("#latestMediaHandler.tvrecordings.active" + i + ".channelLogo", latestRecordings[x0].ChannelLogo);
if (i == 3)
if (i == Utils.LatestsMaxNum)
{
break;
}
Expand Down Expand Up @@ -360,7 +360,7 @@ internal LatestsCollection GetArgusRecordings()
LatestMediaHandlerSetup.SetProperty("#latestMediaHandler.tvrecordings.scheduled" + i + ".channel", latestRecordings[x0].Channel);
LatestMediaHandlerSetup.SetProperty("#latestMediaHandler.tvrecordings.scheduled" + i + ".channelLogo", latestRecordings[x0].ChannelLogo);

if (i == 3)
if (i == Utils.LatestsMaxNum)
break;
i++;
}
Expand Down Expand Up @@ -395,7 +395,7 @@ internal LatestsCollection GetArgusRecordings()
{
RecordingSummary[] recordings = null;
DateTime _time = DateTime.Now;
while (latests.Count < 10 && _time > DateTime.Now.AddMonths(-13)) //go max three moth back
while (latests.Count < Utils.FacadeMaxNum && _time > DateTime.Now.AddMonths(-13)) //go max three moth back
{
recordings = null;
recordings = _tvControlAgent.GetRecordingsForOneDay(ChannelType.Television, _time, false);
Expand Down Expand Up @@ -472,7 +472,7 @@ internal LatestsCollection GetArgusRecordings()
//}
x++;
i0++;
if (x == 10)
if (x == Utils.FacadeMaxNum)
{
break;
}
Expand Down Expand Up @@ -566,10 +566,8 @@ internal void UpdateSelectedImageProperties()
{
try
{
GUIWindow gw = GUIWindowManager.GetWindow(GUIWindowManager.ActiveWindow);
GUIControl gc = gw.GetControl(LatestTVAllRecordingsHandler.ControlID);
facade = gc as GUIFacadeControl;
if (facade != null && gw.GetFocusControlId() == LatestTVAllRecordingsHandler.ControlID && facade.SelectedListItem != null)
facade = Utils.GetLatestsFacade(LatestTVAllRecordingsHandler.ControlID);
if (facade != null && facade.Focus && facade.SelectedListItem != null)
{
int _id = facade.SelectedListItem.ItemId;
String _image = facade.SelectedListItem.DVDLabel;
Expand Down
3 changes: 3 additions & 0 deletions LatestMediaHandler/LatestMediaHandler.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,9 @@
<SpecificVersion>False</SpecificVersion>
<HintPath>..\External\Gentle.Framework.dll</HintPath>
</Reference>
<Reference Include="GUIPictures">
<HintPath>..\External\GUIPictures.dll</HintPath>
</Reference>
<Reference Include="GUIVideos">
<HintPath>..\External\GUIVideos.dll</HintPath>
</Reference>
Expand Down
14 changes: 13 additions & 1 deletion LatestMediaHandler/LatestMediaHandlerConfig.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion LatestMediaHandler/LatestMediaHandlerConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// Created : 05-09-2010
//
// Last Modified By : ajs
// Last Modified On : 24-09-2015
// Last Modified On : 30-09-2015
// Description :
//
// Copyright : Open Source software licensed under the GNU/GPL agreement.
Expand Down
16 changes: 12 additions & 4 deletions LatestMediaHandler/LatestMediaHandlerHelper.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
// Type: LatestMediaHandler.LatestMediaHandlerHelper
// Assembly: LatestMediaHandler, Version=3.1.0.0, Culture=neutral, PublicKeyToken=null
// MVID: 073E8D78-B6AE-4F86-BDE9-3E09A337833B
// Assembly location: D:\Mes documents\Desktop\LatestMediaHandler.dll
//***********************************************************************
// Assembly : LatestMediaHandler
// Author : cul8er
// Created : 05-09-2010
//
// Last Modified By : ajs
// Last Modified On : 30-09-2015
// Description :
//
// Copyright : Open Source software licensed under the GNU/GPL agreement.
//***********************************************************************


using System;
using System.Diagnostics;
Expand Down
Loading

1 comment on commit 0cff98c

@andrewjswan
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Added picture preview from latests controls

Please sign in to comment.