useDescription is true if identical descriptions should be skipped?
Edit: I understand. I think neither of these is what I meant. I will get back to you.
Edit: I understand. I think neither of these is what I meant. I will get back to you.
Germany
For the MediaPortal plugin the following menue "Skip repeated Episodes" will be displayed:
-Never
-Automatic
-Match Description / Ignore Description
-Match Episode Part / Ignore Episode Part
-Match Episode Name / Ignore Episode Name
-Match Episode Numbers / Ignore Episode Numbers
The Tvserver plugin will keep the dropdown box with the following options:
-Automatic
-Description
-Description+Episodename
-Description+Episodename+Episode Numbers
-Description+Episodename+Episode Part
-Description+Episodename+Episode Part+Episode Numbers
-Episodename
-Episodename+Episode Numbers
-Episodename+Episode Part
-Episodename+Episode Part+Episode Numbers
-Episode Numbers
The algorithm for skipping an episode will then be (assuming that skip_repeating _episodes is true):
if (useAutomatic) //automatic modus
{
if (newDescription == oldDescription)
{
// Log.Debug("Description true");
if (newEpisodePart == oldEpisodePart)
{
//Log.Debug("EpisodePart true");
if (newEpisodeName == oldEpisodeName)
{
//Log.Debug("EpisodeName true");
if (newSeriesNumber == oldSeriesNumber)
{
//Log.Debug("SeriesNumber true");
if (newEpisodeNumber == oldEpisodeNumber)
{
//Log.Debug("EpisodeNumber true");
//Log.Debug(" ==> EpisodeManagement = true");
return true;
}//EpisodeNumber
}//SeriesNumber
}//EpisodeName
}//EpisodePart
}//Description
//Log.Debug("episodeManagement = false");
}
else //manual selection of criteria
{
if ((newDescription == oldDescription) && (newDescription != string.Empty) || (!useDescription))
{
// Log.Debug("Description true");
if ((newEpisodePart == oldEpisodePart) && (newEpisodePart != string.Empty) || (!usePart))
{
//Log.Debug("EpisodePart true");
if ((newEpisodeName == oldEpisodeName) && (newEpisodeName != string.Empty) || (!useName))
{
//Log.Debug("EpisodeName true");
if ((newSeriesNumber == oldSeriesNumber) && (newSeriesNumber != string.Empty) || (!useNumbers))
{
//Log.Debug("SeriesNumber true");
if ((newEpisodeNumber == oldEpisodeNumber) && (newEpisodeNumber != string.Empty) || (!useNumbers))
{
//Log.Debug("EpisodeNumber true");
//Log.Debug(" ==> EpisodeManagement = true");
return true;
}//EpisodeNumber
}//SeriesNumber
}//EpisodeName
}//EpisodePart
}//Description
//Log.Debug("episodeManagement = false");
}//end Automatic
Germany
-OK. And then the drop down in TV server is changed depending on which ones are enabled/disbaled. I guess all are enabled by default now, with the new logic. Will you retain the default choices in the tv server plugin? Perhaps not, but I don't feel strongly either way.- the last four options in the MP plugin are for the overwrite of a single tv wish, not the defaults.
- in my code the episode would be skipped if all matching criteria are disabled and the title is the same. I thaught it is important to give the user a choice to skip based on a title match only.
Germany
Germany