mirror of
https://github.com/mxpv/podsync.git
synced 2024-05-11 05:55:04 +00:00
Minor code cleanup
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
using System;
|
||||
using System.Threading.Tasks;
|
||||
using System.Threading.Tasks;
|
||||
using Podsync.Services.Feed;
|
||||
using Podsync.Services.Links;
|
||||
using Podsync.Services.Storage;
|
||||
|
@@ -1,5 +1,4 @@
|
||||
using System;
|
||||
using System.Threading.Tasks;
|
||||
using System.Threading.Tasks;
|
||||
using Podsync.Services.Feed;
|
||||
using Podsync.Services.Links;
|
||||
using Podsync.Services.Storage;
|
||||
|
@@ -33,7 +33,7 @@ namespace Podsync.Services.Builder
|
||||
pageSize = Constants.DefaultPageSize;
|
||||
}
|
||||
|
||||
Channel channel = null;
|
||||
Channel channel;
|
||||
if (linkType == LinkType.Channel)
|
||||
{
|
||||
channel = CreateChannel(await _client.Channel(id));
|
||||
|
@@ -8,8 +8,6 @@ namespace Podsync.Services.Links
|
||||
|
||||
Uri Make(LinkInfo info);
|
||||
|
||||
Uri Download(Uri baseUrl, string feedId, string videoId, string ext);
|
||||
|
||||
Uri Feed(Uri baseUrl, string feedId);
|
||||
}
|
||||
}
|
@@ -194,11 +194,6 @@ namespace Podsync.Services.Links
|
||||
}
|
||||
}
|
||||
|
||||
public Uri Download(Uri baseUrl, string feedId, string videoId, string ext)
|
||||
{
|
||||
return new Uri(baseUrl, $"download/{feedId}/{videoId}{ext}");
|
||||
}
|
||||
|
||||
public Uri Feed(Uri baseUrl, string feedId)
|
||||
{
|
||||
return new Uri(baseUrl, feedId);
|
||||
|
@@ -1,14 +0,0 @@
|
||||
@{
|
||||
ViewData["Title"] = "Error";
|
||||
}
|
||||
|
||||
<h1 class="text-danger">Error.</h1>
|
||||
<h2 class="text-danger">An error occurred while processing your request.</h2>
|
||||
|
||||
<h3>Development Mode</h3>
|
||||
<p>
|
||||
Swapping to <strong>Development</strong> environment will display more detailed information about the error that occurred.
|
||||
</p>
|
||||
<p>
|
||||
<strong>Development environment should not be enabled in deployed applications</strong>, as it can result in sensitive information from exceptions being displayed to end users. For local debugging, development environment can be enabled by setting the <strong>ASPNETCORE_ENVIRONMENT</strong> environment variable to <strong>Development</strong>, and restarting the application.
|
||||
</p>
|
Reference in New Issue
Block a user