mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-01-23 23:20:51 +01:00
Changed RunTime to RunTimeInSeconds
This commit is contained in:
parent
7766956274
commit
45cde97a58
3 changed files with 4 additions and 4 deletions
|
|
@ -384,14 +384,14 @@ namespace MediaBrowser.Controller.Xml
|
|||
break;
|
||||
|
||||
case "Duration":
|
||||
item.RunTime = TimeSpan.FromMinutes(reader.ReadIntSafe());
|
||||
item.RunTimeInSeconds = reader.ReadIntSafe() * 60;
|
||||
break;
|
||||
|
||||
case "DurationSeconds":
|
||||
int seconds = reader.ReadIntSafe();
|
||||
if (seconds > 0)
|
||||
{
|
||||
item.RunTime = TimeSpan.FromSeconds(seconds);
|
||||
item.RunTimeInSeconds = seconds;
|
||||
}
|
||||
break;
|
||||
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ namespace MediaBrowser.Model.Entities
|
|||
public string DisplayMediaType { get; set; }
|
||||
|
||||
public float? UserRating { get; set; }
|
||||
public TimeSpan? RunTime { get; set; }
|
||||
public int? RunTimeInSeconds { get; set; }
|
||||
|
||||
public string AspectRatio { get; set; }
|
||||
public int? ProductionYear { get; set; }
|
||||
|
|
|
|||
|
|
@ -66,7 +66,7 @@ namespace MediaBrowser.TV.Metadata
|
|||
int runtime;
|
||||
if (int.TryParse(text.Split(' ')[0], out runtime))
|
||||
{
|
||||
item.RunTime = TimeSpan.FromMinutes(runtime);
|
||||
item.RunTimeInSeconds = runtime * 60;
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue