Skip to content

Commit

Permalink
Version 1.6.9.4.2
Browse files Browse the repository at this point in the history
Exposing __main__ even further
  • Loading branch information
mos9527 committed Aug 10, 2023
1 parent 3eb261c commit 73a29b8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyncm/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
# 注意事项
- (PR#11) 海外用户可能经历 460 "Cheating" 问题,可通过添加以下 Header 解决: `X-Real-IP = 118.88.88.88`
"""
__version__ = "1.6.9.4.1"
__version__ = "1.6.9.4.2"

from threading import current_thread
from typing import Text, Union
Expand Down
3 changes: 2 additions & 1 deletion pyncm/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -758,7 +758,8 @@ def report():
logger.error('所有失败的任务 ID: %s' % ' '.join([str(i) for i in failed_ids.keys()]))
report()
logger.info(f'任务完成率 {(executor.finished_tasks * 100 / len(queuedTasks)):.1f}%')
return 0
# To get actually downloaded tasks, filter by exlcuding failed_ids against task.song.ID
return queuedTasks, failed_ids


if __name__ == "__main__":
Expand Down

0 comments on commit 73a29b8

Please sign in to comment.