Body=$"Hello! The user '{model.User}' has requested {model.Title}! Please log in to approve this request. Request Date: {model.DateTime.ToString("f")}",
Body=$"Hello! The user '{model.User}' has requested {model.Title}! Please log in to approve this request. Request Date: {model.DateTime.ToString("f")}",
From=newMailAddress(Settings.EmailSender),
From=newMailAddress(settings.EmailSender),
Subject=$"Plex Requests: New request for {model.Title}!"
Subject=$"Plex Requests: New request for {model.Title}!"
// check if the current user is already marked as a requester for this movie, if not, add them
returnResponse.AsJson(newJsonResponseModel{Result=false,Message=$"{fullMovieName} has already been requested!"});
if(!existingRequest.UserHasRequested(Username))
{
existingRequest.RequestedUsers.Add(Username);
RequestService.UpdateRequest(existingRequest);
}
returnResponse.AsJson(newJsonResponseModel{Result=false,Message=settings.UsersCanViewOnlyOwnRequests?$"{fullMovieName} was successfully added!":$"{fullMovieName} has already been requested!"});
}
}
Log.Debug("movie with id {0} doesnt exists",movieId);
Log.Debug("movie with id {0} doesnt exists",movieId);
returnResponse.AsJson(newJsonResponseModel{Result=false,Message=$"{fullShowName} has already been requested!"});
// check if the current user is already marked as a requester for this show, if not, add them
if(!existingRequest.UserHasRequested(Username))
{
existingRequest.RequestedUsers.Add(Username);
RequestService.UpdateRequest(existingRequest);
}
returnResponse.AsJson(newJsonResponseModel{Result=false,Message=settings.UsersCanViewOnlyOwnRequests?$"{fullShowName} was successfully added!":$"{fullShowName} has already been requested!"});
<input type="checkbox" id="UsersCanViewOnlyOwnRequests" name="UsersCanViewOnlyOwnRequests" checked="checked"><text>Users can view their own requests only</text>
}
else
{
<input type="checkbox" id="UsersCanViewOnlyOwnRequests" name="UsersCanViewOnlyOwnRequests"><text>Users can view their own requests only</text>