Browse Source

use proper type for plex timestamps (#124)

pull/128/head
Jason Dove 5 years ago committed by GitHub
parent
commit
9e6de7e2eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      ErsatzTV.Infrastructure/Plex/Models/PlexMetadataResponse.cs
  2. 12
      ErsatzTV.Infrastructure/Plex/PlexServerApiClient.cs

7
ErsatzTV.Infrastructure/Plex/Models/PlexMetadataResponse.cs

@ -1,4 +1,5 @@
using System.Collections.Generic; using System;
using System.Collections.Generic;
namespace ErsatzTV.Infrastructure.Plex.Models namespace ErsatzTV.Infrastructure.Plex.Models
{ {
@ -12,8 +13,8 @@ namespace ErsatzTV.Infrastructure.Plex.Models
public string Thumb { get; set; } public string Thumb { get; set; }
public string Art { get; set; } public string Art { get; set; }
public string OriginallyAvailableAt { get; set; } public string OriginallyAvailableAt { get; set; }
public int AddedAt { get; set; } public long AddedAt { get; set; }
public int UpdatedAt { get; set; } public long UpdatedAt { get; set; }
public int Index { get; set; } public int Index { get; set; }
public string Studio { get; set; } public string Studio { get; set; }
public List<PlexMediaResponse> Media { get; set; } public List<PlexMediaResponse> Media { get; set; }

12
ErsatzTV.Infrastructure/Plex/PlexServerApiClient.cs

@ -38,7 +38,7 @@ namespace ErsatzTV.Infrastructure.Plex
} }
catch (Exception ex) catch (Exception ex)
{ {
return BaseError.New(ex.Message); return BaseError.New(ex.ToString());
} }
} }
@ -56,7 +56,7 @@ namespace ErsatzTV.Infrastructure.Plex
} }
catch (Exception ex) catch (Exception ex)
{ {
return BaseError.New(ex.Message); return BaseError.New(ex.ToString());
} }
} }
@ -74,7 +74,7 @@ namespace ErsatzTV.Infrastructure.Plex
} }
catch (Exception ex) catch (Exception ex)
{ {
return BaseError.New(ex.Message); return BaseError.New(ex.ToString());
} }
} }
@ -93,7 +93,7 @@ namespace ErsatzTV.Infrastructure.Plex
} }
catch (Exception ex) catch (Exception ex)
{ {
return BaseError.New(ex.Message); return BaseError.New(ex.ToString());
} }
} }
@ -112,7 +112,7 @@ namespace ErsatzTV.Infrastructure.Plex
} }
catch (Exception ex) catch (Exception ex)
{ {
return BaseError.New(ex.Message); return BaseError.New(ex.ToString());
} }
} }
@ -133,7 +133,7 @@ namespace ErsatzTV.Infrastructure.Plex
} }
catch (Exception ex) catch (Exception ex)
{ {
return BaseError.New(ex.Message); return BaseError.New(ex.ToString());
} }
} }

Loading…
Cancel
Save