Skip to content

Commit

Permalink
Increase timeout for PlexInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
smabuk committed Jun 2, 2021
1 parent 58cbf6d commit 30bc0d4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
1 change: 1 addition & 0 deletions smabPlayground2020/Server/PlexClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ public PlexClient(HttpClient httpClient, IOptions<PlexSettings> plexSettings)
{
httpClient.BaseAddress = new Uri(plexSettings.Value.Server);
httpClient.DefaultRequestHeaders.Add("Accept", "application/json");
httpClient.Timeout = new(0, 3, 0);
_httpClient = httpClient;
token = plexSettings.Value.Token;
}
Expand Down
25 changes: 11 additions & 14 deletions smabPlayground2020/Shared/NavMenu.razor
Original file line number Diff line number Diff line change
Expand Up @@ -52,19 +52,16 @@
<span class="nav-fa"><i class="fa-fw fas fa-photo-video" aria-hidden="true"></i></span> Libraries
</NavLink>
</li>
@if (false)
{
<li class="nav-item px-3">
<NavLink class="nav-link" href="plex/movies">
<span class="nav-fa"><i class="fa-fw fas fa-film" aria-hidden="true"></i></span> Movies List
</NavLink>
</li>
<li class="nav-item px-3">
<NavLink class="nav-link" href="plex/tv">
<span class="nav-fa"><i class="fa-fw fas fa-tv" aria-hidden="true"></i></span> TV List
</NavLink>
</li>
}
<li class="nav-item px-3">
<NavLink class="nav-link" href="plex/movies">
<span class="nav-fa"><i class="fa-fw fas fa-film" aria-hidden="true"></i></span> Movies List
</NavLink>
</li>
<li class="nav-item px-3">
<NavLink class="nav-link" href="plex/tv">
<span class="nav-fa"><i class="fa-fw fas fa-tv" aria-hidden="true"></i></span> TV List
</NavLink>
</li>
<li class="nav-item px-3">
<NavLink class="nav-link" href="plex/details/94588">
<span class="nav-fa"><i class="fa-fw fas fa-ticket-alt" aria-hidden="true"></i></span> Marnie
Expand Down Expand Up @@ -92,7 +89,7 @@
</li>
<li class="nav-item px-3">
<NavLink class="nav-link" href="plex/details/90088">
<span class="nav-fa"><i class="fa-fw fab fa-reddit-alien" aria-hidden="true"></i></span> s01-e04
<span class="nav-fa"><i class="fa-fw fab fa-reddit-alien" aria-hidden="true"></i></span> s01e04
</NavLink>
</li>
</ul>
Expand Down

0 comments on commit 30bc0d4

Please sign in to comment.