Files
marechai/Marechai.Database/Models/MobyGamesVideoImportState.cs
Natalia Portillo cfae872b51 Add Software Videos functionality
- Created migration to add MobyGamesVideoImportStates and SoftwareVideos tables.
- Implemented MobyGamesVideoImportState and SoftwareVideo models.
- Developed MediaPageParser to extract video information from MobyGames media pages.
- Implemented MediaScraper to fetch and store media page HTML.
- Created VideoImportService to parse and import video links into the database.
- Added VideoStateService for managing video import states.
- Developed SoftwareVideosController for handling API requests related to software videos.
2026-05-06 19:54:53 +01:00

38 lines
829 B
C#

using System;
using System.ComponentModel.DataAnnotations;
using Marechai.Data;
namespace Marechai.Database.Models;
public class MobyGamesVideoImportState : BaseModel<long>
{
[Required]
[StringLength(64)]
public string MobyGameId { get; set; }
public ulong SoftwareId { get; set; }
[Required]
[StringLength(512)]
public string VideoUrl { get; set; }
[StringLength(512)]
public string Title { get; set; }
[StringLength(32)]
public string Provider { get; set; }
[StringLength(64)]
public string ExtractedVideoId { get; set; }
[Required]
public MobyGamesCoverDownloadStatus Status { get; set; }
[StringLength(1024)]
public string ErrorMessage { get; set; }
public DateTime? ProcessedOn { get; set; }
public long? SoftwareVideoId { get; set; }
}