Add GetRealUrlOrPathAsync for TYTDClient
This commit is contained in:
parent
4a03e3398e
commit
26c9960003
|
@ -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()
|
public async IAsyncEnumerable<Subscription> GetSubscriptionsAsync()
|
||||||
{
|
{
|
||||||
|
|
||||||
string v="[]";
|
string v="[]";
|
||||||
try{
|
try{
|
||||||
v=await client.GetStringAsync($"{url}api/v2/subscriptions");
|
v=await client.GetStringAsync($"{url}api/v2/subscriptions");
|
||||||
|
|
|
@ -7,9 +7,9 @@
|
||||||
<PackageId>Tesses.YouTubeDownloader</PackageId>
|
<PackageId>Tesses.YouTubeDownloader</PackageId>
|
||||||
<Author>Mike Nolan</Author>
|
<Author>Mike Nolan</Author>
|
||||||
<Company>Tesses</Company>
|
<Company>Tesses</Company>
|
||||||
<Version>2.0.2</Version>
|
<Version>2.0.2.1</Version>
|
||||||
<AssemblyVersion>2.0.2</AssemblyVersion>
|
<AssemblyVersion>2.0.2.1</AssemblyVersion>
|
||||||
<FileVersion>2.0.2</FileVersion>
|
<FileVersion>2.0.2.1</FileVersion>
|
||||||
<Description>A YouTube Downloader</Description>
|
<Description>A YouTube Downloader</Description>
|
||||||
<PackageLicenseExpression>GPL-3.0-only</PackageLicenseExpression>
|
<PackageLicenseExpression>GPL-3.0-only</PackageLicenseExpression>
|
||||||
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
|
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
|
||||||
|
|
Loading…
Reference in New Issue