Пример #1
0
 public async Task<bool> AutoCompleteRoleAsync(VideoRoleManager manager, JryVideoInfo video)
 {
     var imdbId = video.GetValidImdbId();
     if (imdbId != null)
     {
         return await manager.AutoCreateVideoRoleAsync(video.Id, new RemoteId(RemoteIdType.Imdb, imdbId));
     }
     return false;
 }
Пример #2
0
        public async Task <bool> AutoCompleteRoleAsync(VideoRoleManager manager, JryVideoInfo video)
        {
            var imdbId = video.GetValidImdbId();

            if (imdbId != null)
            {
                return(await manager.AutoCreateVideoRoleAsync(video.Id, new RemoteId(RemoteIdType.Imdb, imdbId)));
            }
            return(false);
        }
Пример #3
0
        public async Task <bool> AutoCompleteRoleAsync(VideoRoleManager manager, Series series)
        {
            if (!series.TheTVDBId.IsNullOrWhiteSpace())
            {
                return(await manager.AutoCreateVideoRoleAsync(series.Id,
                                                              new RemoteId(RemoteIdType.TheTVDB, series.TheTVDBId)));
            }

            return(false);
        }
Пример #4
0
        public async Task<bool> AutoCompleteRoleAsync(VideoRoleManager manager, Series series)
        {
            if (!series.TheTVDBId.IsNullOrWhiteSpace())
            {
                return await manager.AutoCreateVideoRoleAsync(series.Id,
                    new RemoteId(RemoteIdType.TheTVDB, series.TheTVDBId));
            }

            return false;
        }