diff --git a/app/api/alist/v3/path.py b/app/api/alist/v3/path.py index 4ae642a..7b84508 100644 --- a/app/api/alist/v3/path.py +++ b/app/api/alist/v3/path.py @@ -1,6 +1,8 @@ #!/usr/bin/env python3 # encoding: utf-8 +from re import sub + from app.utils import URLUtils @@ -87,6 +89,13 @@ def download_url(self): return URLUtils.encode(url) + @property + def proxy_download_url(self): + """ + Alist代理下载地址 + """ + return sub(r"/d/", "/p/", self.download_url, 1) + @property def suffix(self): """