Files
TuneRipper/TuneRipper.Shared/Models/ProcessVideoModels.cs
T
Michal Vrba 160b7e7115 Streamline video conversion workflow & UI integration
Removed /api/video/details endpoint; video details now fetched as first step of processing and included in progress/status responses. Updated backend models and controller logic to support integrated workflow and improved error handling. Refactored frontend to show video info and conversion progress in real time, removed legacy API calls, and enhanced UI/UX with responsive video info cards and progress bars. Updated documentation and example code to reflect new workflow.
2025-12-11 14:59:14 +01:00

25 lines
726 B
C#

namespace TuneRipper.Shared.Models;
public class ProcessVideoRequest
{
public string? Url { get; set; }
public string? Format { get; set; } = "mp3";
public string? Quality { get; set; } = "128";
}
public class ProcessVideoResponse
{
public bool Success { get; set; }
public string? Message { get; set; }
public string? FileName { get; set; }
public string? DownloadUrl { get; set; }
public YouTubeVideoDetails? VideoDetails { get; set; }
}
public class DownloadProgress
{
public int PercentageComplete { get; set; }
public string? Status { get; set; }
public string? Message { get; set; }
public YouTubeVideoDetails? VideoDetails { get; set; } // Add optional video details
}