rvs76 / tvdblib

Automatically exported from code.google.com/p/tvdblib
0 stars 0 forks source link

Return Empty List from TvdbSeries.GetEpisodes instead of Null #14

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Currently if there are no episodes for a given series null is returned 
from TvdbSeries.GetEpisodes. I think an empty list makes more sense so 
foreach loops don't fail
Diff Attached

Original issue reported on code.google.com by spindrif...@gmail.com on 2 Mar 2009 at 9:01

Attachments:

GoogleCodeExporter commented 9 years ago
I have no objections to that, the new svn contains the changes...

You should however always check the TvdbSeries.EpisodesLoaded field, since this 
tells
you if the series really has no episodes or if you just didn't download the 
episode
list yet.

Original comment by bgmei...@gmail.com on 3 Mar 2009 at 2:46