This Patch is made to allow MediaPortal to support countries in which the
working days start on Sunday and not on Monday (Israel for example).
It is based on V1.0.2 (rev 22555)
The work was done only on the TVEngine3 part.
The code is based on two new classes than will handle all of the places in
which there is a decision about the weekend days.
The selection of the first day of the week is done in TV server congif ->
recording page.
The classes are:
1) Used by the TvPlugin solution:
Named- WeekEndTools.cs
using= MediaPortal.GUI.Library, stored inside- core.dll.
MediaPortal -> Core -> guilib -> MediaPortal.GUI.Library
2) Used by the TvLibrary solution:
Named- TVLibWeekEndTools.cs
using=TvLibrary.Interfaces, stored inside- TvLibrary.Interfaces.dll
TvLibrary -> Library-> TVLibrary.interfaces -> interfaces
TVLibrary
Add the new UI to select the first working day of the week.
Update code in:
Setup GUI -> Setup Tv -> Sections -> TvRecording.cs
Plugins->ConflictsManager
Plugins->ScheduledRecordingsHandler.cs
Setup->TvSchedules.cs
TVDatabase ->Schedule.cs
TVDatabase->BusinessLayer.cs
TVService->Scheduler.cs
The value of DeltaInWorkingDay is inited from:
In TvService-> inside Service1.cs (when the service just starts)
(In TvSetup -> no need)
TVPlugin
Update code in:
TvPlugin -> TVConflicts.cs
TvPlugin -> TvNewScheduleSearchType.cs
TvPlugin -> TVPriorities.cs
TvPlugin -> TVProgramInfo.cs
TvPlugin -> TVScheduler.cs
TvPlugin -> TVSearch.cs
TvPlugin -> TVUtil.cs
The value of DeltaInWorkingDay is inited from:
In TvPlugin-> inside TvHome.cs --> init()
In Database -> TvBusinessLayer -> BusinessLayer.cs (see remark in
Tvlibweekendtool)
Also added the needed lines to all of the Language files (except ko & zh-CN
that were unseen on my PC).
Bob
https://forum.team-mediaportal.com/general-development-no-feature-request-he re-48/weekend-patch-60215/
********
Somewhere in the wiki it was written to put the patch inside sourceforge.net, so I opened there a new thread:
SourceForge.net: MediaPortal: Detail: 2796489 - Weekend - Patch
If that was a mistake, please tell me an i will delete it.
working days start on Sunday and not on Monday (Israel for example).
It is based on V1.0.2 (rev 22555)
The work was done only on the TVEngine3 part.
The code is based on two new classes than will handle all of the places in
which there is a decision about the weekend days.
The selection of the first day of the week is done in TV server congif ->
recording page.
The classes are:
1) Used by the TvPlugin solution:
Named- WeekEndTools.cs
using= MediaPortal.GUI.Library, stored inside- core.dll.
MediaPortal -> Core -> guilib -> MediaPortal.GUI.Library
2) Used by the TvLibrary solution:
Named- TVLibWeekEndTools.cs
using=TvLibrary.Interfaces, stored inside- TvLibrary.Interfaces.dll
TvLibrary -> Library-> TVLibrary.interfaces -> interfaces
TVLibrary
Add the new UI to select the first working day of the week.
Update code in:
Setup GUI -> Setup Tv -> Sections -> TvRecording.cs
Plugins->ConflictsManager
Plugins->ScheduledRecordingsHandler.cs
Setup->TvSchedules.cs
TVDatabase ->Schedule.cs
TVDatabase->BusinessLayer.cs
TVService->Scheduler.cs
The value of DeltaInWorkingDay is inited from:
In TvService-> inside Service1.cs (when the service just starts)
(In TvSetup -> no need)
TVPlugin
Update code in:
TvPlugin -> TVConflicts.cs
TvPlugin -> TvNewScheduleSearchType.cs
TvPlugin -> TVPriorities.cs
TvPlugin -> TVProgramInfo.cs
TvPlugin -> TVScheduler.cs
TvPlugin -> TVSearch.cs
TvPlugin -> TVUtil.cs
The value of DeltaInWorkingDay is inited from:
In TvPlugin-> inside TvHome.cs --> init()
In Database -> TvBusinessLayer -> BusinessLayer.cs (see remark in
Tvlibweekendtool)
Also added the needed lines to all of the Language files (except ko & zh-CN
that were unseen on my PC).
Bob
https://forum.team-mediaportal.com/general-development-no-feature-request-he re-48/weekend-patch-60215/
********
Somewhere in the wiki it was written to put the patch inside sourceforge.net, so I opened there a new thread:
SourceForge.net: MediaPortal: Detail: 2796489 - Weekend - Patch
If that was a mistake, please tell me an i will delete it.