Added a bunch of categories for tv search similar to what we have for movies.

This commit is contained in:
Jamie.Rees 2017-01-20 15:56:49 +00:00
commit 9886c40499
14 changed files with 641 additions and 249 deletions

View file

@ -46,5 +46,12 @@ namespace Ombi.Helpers
dtDateTime = dtDateTime.AddSeconds(unixTimeStamp).ToLocalTime();
return dtDateTime;
}
public static long ToJavascriptTimestamp(this DateTime input)
{
var epoch = new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc);
var time = input.Subtract(new TimeSpan(epoch.Ticks));
return (long)(time.Ticks / 10000);
}
}
}