mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-05 23:47:41 +08:00
fix ua
This commit is contained in:
+2
-1
@@ -16,6 +16,7 @@ from app.log import logger, log_settings, LogConfigModel
|
|||||||
from app.utils.system import SystemUtils
|
from app.utils.system import SystemUtils
|
||||||
from app.utils.url import UrlUtils
|
from app.utils.url import UrlUtils
|
||||||
from app.schemas import MediaType
|
from app.schemas import MediaType
|
||||||
|
from version import APP_VERSION
|
||||||
|
|
||||||
|
|
||||||
class SystemConfModel(BaseModel):
|
class SystemConfModel(BaseModel):
|
||||||
@@ -514,7 +515,7 @@ class Settings(BaseSettings, ConfigModel, LogConfigModel):
|
|||||||
"""
|
"""
|
||||||
全局用户代理字符串
|
全局用户代理字符串
|
||||||
"""
|
"""
|
||||||
return f"{platform.system()}/{platform.release()} {self.PROJECT_NAME}/{self.VERSION_FLAG}"
|
return f"{self.PROJECT_NAME}/{APP_VERSION[1:]} ({platform.system()}/{platform.release()})"
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def INNER_CONFIG_PATH(self):
|
def INNER_CONFIG_PATH(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user