Exemplo n.º 1
0
 public Episodes GetEpisodeToCheckStatusRemote(HostingLink hosting)
 {
     if (hosting == HostingLink.Openload)
     {
         return(_dbContext.Episodes
                .OrderBy(x => x.Id)
                .FirstOrDefault(
                    x =>
                    x.FileName.Contains("openload.co") &&
                    !x.FileName.Contains("javmile.com") &&
                    x.CustomerId != null && x.CustomerId != 0));
     }
     else
     {
         return(_dbContext.Episodes
                .OrderBy(x => x.Id)
                .FirstOrDefault(
                    x =>
                    x.FileName.Contains("bitporno.com") &&
                    x.CustomerId != null && x.CustomerId != 0 && x.CustomerId != -1));
     }
 }
Exemplo n.º 2
0
        public Episodes GetEpisodeToTranferOpenload(HostingLink hosting)
        {
            if (hosting == HostingLink.Openload)
            {
                return(_dbContext.Episodes
                       .OrderBy(x => x.Id)
                       .FirstOrDefault(
                           x =>
                           x.FileName.Contains("openload.co") &&
                           !x.FileName.Contains("javmile.com") &&
                           x.CustomerId == null));
            }

            else
            {
                return(_dbContext.Episodes
                       .OrderBy(x => x.Id)
                       .FirstOrDefault(
                           x =>
                           x.FileName.Contains("bitporno.com") &&
                           x.FileName.Length < 64 &&
                           x.CustomerId == null));
            }
        }