1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-10-03 22:57:18 +02:00

changed seriesid to string to avoid sqlite bug

This commit is contained in:
kay.one 2010-09-26 17:21:38 -07:00
parent 96c75b15f0
commit d870c82147
2 changed files with 3 additions and 3 deletions

View File

@ -34,7 +34,7 @@ public IQueryable<Series> GetSeries()
public Series GetSeries(int tvdbId)
{
return _sonioRepo.Single<Series>(s=> s.TvdbId == tvdbId);
return _sonioRepo.Single<Series>(s=> s.TvdbId == tvdbId.ToString());
}
@ -67,7 +67,7 @@ private void AddShow(string path)
private void AddShow(string path, TvdbSeries series)
{
_sonioRepo.Add(new Series { TvdbId = series.Id, SeriesName = series.SeriesName, AirTimes = series.AirsTime, AirsDayOfWeek = series.AirsDayOfWeek, Overview = series.Overview, Status = series.Status, Language = series.Language.Abbriviation, Path = path });
_sonioRepo.Add(new Series { TvdbId = series.Id.ToString(), SeriesName = series.SeriesName, AirTimes = series.AirsTime, AirsDayOfWeek = series.AirsDayOfWeek, Overview = series.Overview, Status = series.Status, Language = series.Language.Abbriviation, Path = path });
}
}
}

View File

@ -6,7 +6,7 @@ namespace NzbDrone.Core.Repository
public class Series
{
[SubSonicPrimaryKey]
public int TvdbId
public string TvdbId
{
get;
set;