Fix downloader bug, use plink and add icon to plugin template

This commit is contained in:
2025-12-28 13:28:50 -06:00
parent abe5ce7fba
commit 2eff24d67b
12 changed files with 21 additions and 17 deletions

View File

@@ -28,6 +28,7 @@ class TYTD.AOVideoDownload : IVideoDownload {
var req = this.tytd.ManifestRequest(id).playerResponse;
this.info.Title = req.videoDetails.title;
tytd.LOG($"Downloading: {this.info.Title} with id: {id} Highest Audio");
Console.WriteLine($"Downloading: {this.info.Title} with id: {id} Highest Audio");
this.info.Channel = req.videoDetails.author;
this.info.ChannelId = req.videoDetails.channelId;
@@ -66,6 +67,7 @@ class TYTD.AOVideoDownload : IVideoDownload {
}
public Start()
{
if(this.done) return;
for(var i = 0; i < 5; i++)
{
var req = {

View File

@@ -7,6 +7,7 @@ class TYTD.NoConvertVideoDownload : IVideoDownload {
private done=false;
public NoConvertVideoDownload(id)
{
this.info = {
@@ -36,6 +37,7 @@ class TYTD.NoConvertVideoDownload : IVideoDownload {
this.info.Title = req.videoDetails.title;
tytd.LOG($"Downloading: {this.info.Title} with id: {id} Highest Video/Audio");
Console.WriteLine($"Downloading: {this.info.Title} with id: {id} Highest Video/Audio");
this.info.Channel = req.videoDetails.author;
this.info.ChannelId = req.videoDetails.channelId;
@@ -220,5 +222,7 @@ class TYTD.NoConvertVideoDownload : IVideoDownload {
}
}
this.progress(1.0);
return;
}
}

View File

@@ -28,6 +28,7 @@ class TYTD.SDVideoDownload : IVideoDownload {
var req = this.tytd.ManifestRequest(id).playerResponse;
this.info.Title = req.videoDetails.title;
tytd.LOG($"Downloading: {this.info.Title} with id: {id} LowVideo");
Console.WriteLine($"Downloading: {this.info.Title} with id: {id} LowVideo");
this.info.Channel = req.videoDetails.author;
this.info.ChannelId = req.videoDetails.channelId;
@@ -48,6 +49,7 @@ class TYTD.SDVideoDownload : IVideoDownload {
}
public Start()
{
if(this.done) return;
for(var i = 0; i < 5; i++)
{
var req = {

View File

@@ -3,6 +3,7 @@ class TYTD.TranscodeAudio : IVideoDownload {
private ncv;
private tytd;
private ext;
private done;
public TranscodeAudio(id,ext)
{
@@ -30,7 +31,7 @@ class TYTD.TranscodeAudio : IVideoDownload {
public Start()
{
var id = this.id;
this.ncv.Start();
if(!this.ncv.Start()) return;
var p = new Process();
p.FileName = Env.GetRealExecutablePath("ffmpeg").ToString();

View File

@@ -30,7 +30,7 @@ class TYTD.TranscodeVideo : IVideoDownload {
public Start()
{
var id = this.id;
this.ncv.Start();
this.mcv.Start();
var p = new Process();
p.FileName = Env.GetRealExecutablePath("ffmpeg").ToString();

View File

@@ -30,6 +30,8 @@ class TYTD.VOVideoDownload : IVideoDownload {
this.info.Channel = req.videoDetails.author;
this.info.ChannelId = req.videoDetails.channelId;
tytd.LOG($"Downloading: {this.info.Title} with id: {id} Highest Video");
Console.WriteLine($"Downloading: {this.info.Title} with id: {id} Highest Video");
this.tytd.PutVideoInfo(req.videoDetails);
var width = 0;
@@ -63,6 +65,7 @@ class TYTD.VOVideoDownload : IVideoDownload {
}
public Start()
{
if(this.done) return;
var req = {
FollowRedirects = true,
RequestHeaders = [