Skip to content

Commit f6771b5

Browse files
committed
fix: 补全 JmOption 面向对象封装方法的返回值
1 parent ab58ce2 commit f6771b5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/jmcomic/jm_option.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -584,15 +584,15 @@ def download_album(self,
584584
**kwargs,
585585
):
586586
from .api import download_album
587-
download_album(album_id, self, *args, **kwargs)
587+
return download_album(album_id, self, *args, **kwargs)
588588

589589
def download_photo(self,
590590
photo_id,
591591
*args,
592592
**kwargs,
593593
):
594594
from .api import download_photo
595-
download_photo(photo_id, self, *args, **kwargs)
595+
return download_photo(photo_id, self, *args, **kwargs)
596596

597597
# 下面的方法为调用插件提供支持
598598

0 commit comments

Comments
 (0)