use proper type for plex timestamps (#124)

This commit is contained in:
Jason Dove
2021-03-31 21:30:30 +00:00
committed by GitHub
parent 4097288fed
commit 9e6de7e2eb
2 changed files with 10 additions and 9 deletions
@@ -1,4 +1,5 @@
using System.Collections.Generic;
using System;
using System.Collections.Generic;
namespace ErsatzTV.Infrastructure.Plex.Models
{
@@ -12,8 +13,8 @@ namespace ErsatzTV.Infrastructure.Plex.Models
public string Thumb { get; set; }
public string Art { get; set; }
public string OriginallyAvailableAt { get; set; }
public int AddedAt { get; set; }
public int UpdatedAt { get; set; }
public long AddedAt { get; set; }
public long UpdatedAt { get; set; }
public int Index { get; set; }
public string Studio { get; set; }
public List<PlexMediaResponse> Media { get; set; }
@@ -38,7 +38,7 @@ namespace ErsatzTV.Infrastructure.Plex
}
catch (Exception ex)
{
return BaseError.New(ex.Message);
return BaseError.New(ex.ToString());
}
}
@@ -56,7 +56,7 @@ namespace ErsatzTV.Infrastructure.Plex
}
catch (Exception ex)
{
return BaseError.New(ex.Message);
return BaseError.New(ex.ToString());
}
}
@@ -74,7 +74,7 @@ namespace ErsatzTV.Infrastructure.Plex
}
catch (Exception ex)
{
return BaseError.New(ex.Message);
return BaseError.New(ex.ToString());
}
}
@@ -93,7 +93,7 @@ namespace ErsatzTV.Infrastructure.Plex
}
catch (Exception ex)
{
return BaseError.New(ex.Message);
return BaseError.New(ex.ToString());
}
}
@@ -112,7 +112,7 @@ namespace ErsatzTV.Infrastructure.Plex
}
catch (Exception ex)
{
return BaseError.New(ex.Message);
return BaseError.New(ex.ToString());
}
}
@@ -133,7 +133,7 @@ namespace ErsatzTV.Infrastructure.Plex
}
catch (Exception ex)
{
return BaseError.New(ex.Message);
return BaseError.New(ex.ToString());
}
}