public void UpdateMediaNames() { List <Media> medias; medias = context.Medias.ToList(); foreach (Media media in medias) { media.Name = DownloadPlaylistInfoTask.GetMediaName(media); Console.WriteLine(media.Name); } context.SaveChanges(); }
public TempCode(CTDbContext c, CreateBoxTokenTask createBoxTokenTask, UpdateBoxTokenTask updateBoxTokenTask, SceneDetectionTask ePubGeneratorTask, ProcessVideoTask processVideoTask, GenerateVTTFileTask generateVTTFileTask, TranscriptionTask transcriptionTask, ConvertVideoToWavTask convertVideoToWavTask, DownloadMediaTask downloadMediaTask, DownloadPlaylistInfoTask downloadPlaylistInfoTask, QueueAwakerTask queueAwakerTask, RpcClient rpcClient) { context = c; _createBoxTokenTask = createBoxTokenTask; _updateBoxTokenTask = updateBoxTokenTask; _sceneDetectionTask = ePubGeneratorTask; _processVideoTask = processVideoTask; _generateVTTFileTask = generateVTTFileTask; _transcriptionTask = transcriptionTask; _convertVideoToWavTask = convertVideoToWavTask; _downloadMediaTask = downloadMediaTask; _downloadPlaylistInfoTask = downloadPlaylistInfoTask; _queueAwakerTask = queueAwakerTask; _rpcClient = rpcClient; }