Skip to content

Commit

Permalink
roll back some buggy changes
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianusIV committed Jan 6, 2024
1 parent cff6b0c commit fc21e57
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions DefaultPlugins/YouTubeConsumer/YouTubeConsumer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public Response HandlePost(Lease lease, Request request)
response.ReturnStatus = HttpStatusCode.BadRequest;
return response;
}
LogRepository!.CreateLogEntry(new Log(DateTime.Now, request.Body));
//LogRepository!.CreateLogEntry(new Log(DateTime.Now, request.Body));

//transform plugin data saved in lease object as json
var data = lease.GetObjectFromConsumerString<DefaultYouTubeConsPluginData>();
Expand Down Expand Up @@ -133,11 +133,11 @@ public Response HandlePost(Lease lease, Request request)
return response;
}

if (xml.entry.published < DateTime.Now - TimeSpan.FromHours(3))
{
response.ReturnStatus = HttpStatusCode.Conflict;
return response;
}
//if (xml.entry.published < DateTime.Now - TimeSpan.FromHours(3))
//{
// response.ReturnStatus = HttpStatusCode.Conflict;
// return response;
//}

//set properties to pass to publisher
response.ItemUrl = xml.entry.link.href;
Expand Down

0 comments on commit fc21e57

Please sign in to comment.