Add GetRealUrlOrPathAsync for TYTDClient

This commit is contained in:
Mike Nolan 2023-02-16 10:51:46 -06:00
parent 4a03e3398e
commit 26c9960003
2 changed files with 8 additions and 3 deletions

View File

@ -314,8 +314,13 @@ internal class SegmentedHttpStream : Stream
}
}
}
public override async Task<(string Path,bool Delete)> GetRealUrlOrPathAsync(string path)
{
return await Task.FromResult(($"{url}api/Storage/File/{path.TrimStart('/')}",false));
}
public async IAsyncEnumerable<Subscription> GetSubscriptionsAsync()
{
string v="[]";
try{
v=await client.GetStringAsync($"{url}api/v2/subscriptions");

View File

@ -7,9 +7,9 @@
<PackageId>Tesses.YouTubeDownloader</PackageId>
<Author>Mike Nolan</Author>
<Company>Tesses</Company>
<Version>2.0.2</Version>
<AssemblyVersion>2.0.2</AssemblyVersion>
<FileVersion>2.0.2</FileVersion>
<Version>2.0.2.1</Version>
<AssemblyVersion>2.0.2.1</AssemblyVersion>
<FileVersion>2.0.2.1</FileVersion>
<Description>A YouTube Downloader</Description>
<PackageLicenseExpression>GPL-3.0-only</PackageLicenseExpression>
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>