本文整理汇总了C#中JMMServer.Repositories.VideoLocalRepository.GetManuallyLinkedVideos方法的典型用法代码示例。如果您正苦于以下问题:C# VideoLocalRepository.GetManuallyLinkedVideos方法的具体用法?C# VideoLocalRepository.GetManuallyLinkedVideos怎么用?C# VideoLocalRepository.GetManuallyLinkedVideos使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类JMMServer.Repositories.VideoLocalRepository
的用法示例。
在下文中一共展示了VideoLocalRepository.GetManuallyLinkedVideos方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: RescanManuallyLinkedFiles
public void RescanManuallyLinkedFiles()
{
try
{
// files which have been hashed, but don't have an associated episode
VideoLocalRepository repVidLocals = new VideoLocalRepository();
List<VideoLocal> files = repVidLocals.GetManuallyLinkedVideos();
foreach (VideoLocal vl in files)
{
CommandRequest_ProcessFile cmd = new CommandRequest_ProcessFile(vl.VideoLocalID, true);
cmd.Save();
}
}
catch (Exception ex)
{
logger.ErrorException(ex.Message, ex);
}
}
示例2: GetManuallyLinkedFiles
public List<Contract_VideoLocal> GetManuallyLinkedFiles(int userID)
{
List<Contract_VideoLocal> contracts = new List<Contract_VideoLocal>();
try
{
VideoLocalRepository repVids = new VideoLocalRepository();
foreach (VideoLocal vid in repVids.GetManuallyLinkedVideos())
{
contracts.Add(vid.ToContract(userID));
}
}
catch (Exception ex)
{
logger.ErrorException(ex.ToString(), ex);
}
return contracts;
}