-
-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #331 from MarkSummerville/master
Latest bug fixes
- Loading branch information
Showing
18 changed files
with
320 additions
and
242 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,8 +10,8 @@ namespace TVRename | |
{ | ||
class DownloadMede8erMetaData : DownloadIdentifier | ||
{ | ||
|
||
public DownloadMede8erMetaData() | ||
private List<string> doneFiles; | ||
public DownloadMede8erMetaData() | ||
{ | ||
reset(); | ||
} | ||
|
@@ -21,7 +21,7 @@ public override DownloadType GetDownloadType() | |
return DownloadType.downloadMetaData; | ||
} | ||
|
||
public override ItemList ProcessShow(ShowItem si,bool forceRefresh) | ||
public override ItemList ProcessShow(ShowItem si, bool forceRefresh) | ||
{ | ||
if (TVSettings.Instance.Mede8erXML) | ||
{ | ||
|
@@ -32,12 +32,20 @@ public override ItemList ProcessShow(ShowItem si,bool forceRefresh) | |
bool needUpdate = !tvshowxml.Exists || | ||
(si.TheSeries().Srv_LastUpdated > TimeZone.Epoch(tvshowxml.LastWriteTime)); | ||
|
||
if (forceRefresh || needUpdate) | ||
if ((forceRefresh || needUpdate) && (!this.doneFiles.Contains(tvshowxml.FullName))) | ||
{ | ||
this.doneFiles.Add(tvshowxml.FullName); | ||
TheActionList.Add(new ActionMede8erXML(tvshowxml, si)); | ||
} | ||
|
||
|
||
//Updates requested by [email protected] on 18/4/2013 | ||
FileInfo viewxml = FileHelper.FileInFolder(si.AutoAdd_FolderBase, "view.xml"); | ||
if (!viewxml.Exists) TheActionList.Add(new ActionMede8erViewXML(viewxml,si)); | ||
if ((!viewxml.Exists) && (!this.doneFiles.Contains(viewxml.FullName))) | ||
{ | ||
this.doneFiles.Add(viewxml.FullName); | ||
TheActionList.Add(new ActionMede8erViewXML(viewxml, si)); | ||
} | ||
|
||
|
||
return TheActionList; | ||
|
@@ -54,7 +62,7 @@ public override ItemList ProcessSeason(ShowItem si, string folder, int snum, boo | |
|
||
//Updates requested by [email protected] on 18/4/2013 | ||
FileInfo viewxml = FileHelper.FileInFolder(folder, "view.xml"); | ||
if (!viewxml.Exists) TheActionList.Add(new ActionMede8erViewXML(viewxml,si,snum)); | ||
if (!viewxml.Exists) TheActionList.Add(new ActionMede8erViewXML(viewxml, si, snum)); | ||
|
||
|
||
return TheActionList; | ||
|
@@ -84,7 +92,8 @@ public override ItemList ProcessEpisode(ProcessedEpisode dbep, FileInfo filo, bo | |
|
||
public override void reset() | ||
{ | ||
base.reset(); | ||
this.doneFiles = new List<string>(); | ||
base.reset(); | ||
} | ||
|
||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.