Suggested code cleanups

lysp

09-03-2010 12:05:20

Have had a quick look through the source code.

Have come up with a few changes, none which will change the code, just make it a bit easier to understand.

From TheTVDB.cs, extract the following classes into individual files:

DirCacheEntry.cs
Episode.cs
ExtraEp.cs
Season.cs
SeriesInfo.cs


Move "SeasonComparer" class into sorters.cs

Create a Data directory and move these new classes into that directory (with exception of dir cache entry which can stay in utility maybe?).

This will hopefully split things up and make them a little easier to understand and maintain.

Will write some more ideas as i come across them.

sstteevvee

12-03-2010 15:28:49

Thanks for the suggestions.. I'll do them next time I'm working on the code.