Skip to content

Commit 0a27981

Browse files
committed
144.1
1 parent 1d4df9e commit 0a27981

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

Lampac/Controllers/TmdbController.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ async public Task API()
145145
proxyManager.Refresh();
146146
cache.json = JsonConvert.SerializeObject(result.content);
147147

148-
if (init.cache_api > 0)
148+
if (init.cache_api > 0 && !string.IsNullOrEmpty(cache.json))
149149
hybridCache.Set(mkey, cache, DateTime.Now.AddMinutes(1));
150150

151151
await HttpContext.Response.WriteAsync(cache.json, HttpContext.RequestAborted).ConfigureAwait(false);
@@ -154,7 +154,7 @@ async public Task API()
154154

155155
cache.json = JsonConvert.SerializeObject(result.content);
156156

157-
if (init.cache_api > 0)
157+
if (init.cache_api > 0 && !string.IsNullOrEmpty(cache.json))
158158
hybridCache.Set(mkey, cache, DateTime.Now.AddMinutes(init.cache_api));
159159

160160
proxyManager.Success();

Shared.Engine/Online/FanCDN.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public FanCDNInvoke(string? host, string apihost, Func<string, ValueTask<string?
6464
return null;
6565

6666

67-
string iframe_url = null;
67+
string? iframe_url = null;
6868

6969
foreach (Match match in Regex.Matches(html, "(https?://fancdn\\.[^\"\n\r\t ]+)\""))
7070
{

Shared/Engine/BaseController.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ public class BaseController : Controller, IDisposable
3030
{
3131
IServiceScope serviceScope;
3232

33-
public static string appversion => "143";
33+
public static string appversion => "144";
3434

35-
public static string minorversion => "3";
35+
public static string minorversion => "1";
3636

3737
public HybridCache hybridCache { get; private set; }
3838

0 commit comments

Comments
 (0)