Trace back error when downloading

Đang mở
#1 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
25/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
python
Lĩnh vực
cli

Hướng nghiên cứu

Start with console/entry_point.py:124 and console/download.py:28, then inspect download/downloader.py:292 where the traceback occurs while opening the configured save file. Reproduce a download using the save-file option and determine the expected behavior; done means the reported traceback no longer occurs.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

/usr/local/lib/python3.9/dist-packages/spotdl/console/entry_point.py:124 in console_entry_point │
│ │
│ 121 │ try: │
│ 122 │ │ # Pick the operation to perform │
│ 123 │ │ # based on the name and run it! │
│ ❱ 124 │ │ OPERATIONS[arguments.operation]( │
│ 125 │ │ │ query=arguments.query, │
│ 126 │ │ │ downloader=downloader, │
│ 127 │ │ ) │
│ │
│ /usr/local/lib/python3.9/dist-packages/spotdl/console/download.py:28 in download │
│ │
│ 25 │ songs = get_simple_songs(query, use_ytm_data=downloader.settings["ytm_data"]) │
│ 26 │ │
│ 27 │ # Download the songs │
│ ❱ 28 │ downloader.download_multiple_songs(songs) │
│ 29 │
│ │
│ /usr/local/lib/python3.9/dist-packages/spotdl/download/downloader.py:292 in download_multiple_songs │
│ │
│ 289 │ │ │
│ 290 │ │ # Save results to a file │
│ 291 │ │ if self.settings["save_file"]: │
│ ❱ 292 │ │ │ with open(self.settings["save_file"], "w", encoding="utf-8") as save_file: │
│ 293 │ │ │ │ json.dump([song.json for song, _ in results], save_file, indent=4) │
│ 294 │ │ │ │
│ 295 │ │ │ logger.info("Saved results to %s", self.settings["save_file"])

Ngôn ngữ chính
Không có dữ liệu ngôn ngữ
Star
0
Fork
0
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue tương tự

Thêm issue về CLI

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.