public override void ProcessCommand() { try { bool process = ServerSettings.AniDB_Username.Equals("jonbaby", StringComparison.InvariantCultureIgnoreCase) || ServerSettings.AniDB_Username.Equals("jmediamanager", StringComparison.InvariantCultureIgnoreCase) || ServerSettings.AniDB_Username.Equals("jmmtesting", StringComparison.InvariantCultureIgnoreCase); if (!process) { return; } AniDB_Anime anime = RepoFactory.AniDB_Anime.GetByAnimeID(AnimeID); if (anime == null) { return; } if (anime.AllTags.ToUpper().Contains("18 RESTRICTED")) { return; } AzureWebAPI.Send_AnimeFull(anime); } catch (Exception ex) { logger.Error("Error processing CommandRequest_Azure_SendAnimeFull: {0} - {1}", AnimeID, ex.ToString()); return; } }
public override void ProcessCommand() { try { bool process = false; if (!process) { return; } SVR_AniDB_Anime anime = RepoFactory.AniDB_Anime.GetByAnimeID(AnimeID); if (anime == null) { return; } if (anime.AllTags.ToUpper().Contains("18 RESTRICTED")) { return; } AzureWebAPI.Send_AnimeFull(anime); } catch (Exception ex) { logger.Error("Error processing CommandRequest_Azure_SendAnimeFull: {0} - {1}", AnimeID, ex); } }