mirror of
https://github.com/claunia/marechai.git
synced 2026-07-08 17:57:08 +00:00
- 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.
38 lines
829 B
C#
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; }
|
|
}
|