Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
  • Loading branch information
farfun committed Dec 26, 2024
1 parent edcf458 commit 21d148a
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 5 deletions.
3 changes: 3 additions & 0 deletions logs/all.log
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@
2024-12-26 17:07:40.207 |INFO | funbuild.core.core : core: 86 | funbuild | - fundrive build
2024-12-26 17:07:40.208 |INFO | funbuild.core.core : core: 74 | funbuild | - fundrive pull
2024-12-26 17:07:48.466 |INFO | funbuild.core.core : core: 78 | funbuild | - fundrive push
2024-12-26 17:17:12.377 |INFO | funbuild.core.core : core: 86 | funbuild | - fundrive build
2024-12-26 17:17:12.377 |INFO | funbuild.core.core : core: 74 | funbuild | - fundrive pull
2024-12-26 17:17:21.113 |INFO | funbuild.core.core : core: 78 | funbuild | - fundrive push
3 changes: 3 additions & 0 deletions logs/funbuild.log
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@
2024-12-26 17:07:40.207 |INFO | funbuild.core.core : core: 86 | funbuild | - fundrive build
2024-12-26 17:07:40.208 |INFO | funbuild.core.core : core: 74 | funbuild | - fundrive pull
2024-12-26 17:07:48.466 |INFO | funbuild.core.core : core: 78 | funbuild | - fundrive push
2024-12-26 17:17:12.377 |INFO | funbuild.core.core : core: 86 | funbuild | - fundrive build
2024-12-26 17:17:12.377 |INFO | funbuild.core.core : core: 74 | funbuild | - fundrive pull
2024-12-26 17:17:21.113 |INFO | funbuild.core.core : core: 78 | funbuild | - fundrive push
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "fundrive"
version = "1.2.89"
version = "1.2.90"
description = "fundrive"
readme = "README.md"
requires-python = ">=3.8"
Expand Down
9 changes: 6 additions & 3 deletions src/fundrive/drives/baidu/drive.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import os
from typing import List, Optional

from fundrive.core import BaseDrive, DriveFile
from fundrive.core.base import get_filepath
from fundrives.baidu import BaiduPCSApi, PcsFile
from funget import download
from funsecret import read_secret
from funutil import getLogger

from fundrive.core import BaseDrive, DriveFile
from fundrive.core.base import get_filepath

logger = getLogger("fundrive")


Expand All @@ -26,6 +26,9 @@ def __init__(self, *args, **kwargs):
self.drive: BaiduPCSApi = None

def login(self, bduss, stoken, ptoken, *args, **kwargs) -> bool:
bduss = bduss or read_secret("fundrive", "baidu", "bduss")
stoken = stoken or read_secret("fundrive", "baidu", "stoken")
ptoken = ptoken or read_secret("fundrive", "baidu", "ptoken")
self.drive = BaiduPCSApi(bduss=bduss, stoken=stoken, ptoken=ptoken)
return True

Expand Down
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 21d148a

Please sign in to comment.