mirror of
https://onedev.site.tesses.net/tytd2025
synced 2026-02-09 01:55:46 +00:00
Fix downloader bug, use plink and add icon to plugin template
This commit is contained in:
@@ -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 = {
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
@@ -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 = {
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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 = [
|
||||
|
||||
Reference in New Issue
Block a user