Skip to content

Make --save-errors append to file instead of overwriting #2198

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Oct 12, 2024

Conversation

truppelito
Copy link
Contributor

Title

Make --save-errors append to file instead of overwriting

Description

File open mode "w" -> "a" and an extra newline to make sure errors are printed on different lines

Related Issue

#2197

Motivation and Context

See issue

How Has This Been Tested?

Ran spotDL multiple times to generate errors over multiple runs.

Screenshots (if appropriate)

Types of Changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • My code follows the code style of this project
  • My change requires a change to the documentation
  • I have updated the documentation accordingly
  • I have read the CONTRIBUTING document
  • I have read the CORE VALUES document
  • I have added tests to cover my changes
  • All new and existing tests passed

xnetcat and others added 5 commits September 6, 2024 12:21
Bug fixes:
- Always include filter when sending requests to piped by @xnetcat 
- Check status code when getting response from piped by @xnetcat 
- Use piped.video instead of main piped instance by @j3bx in spotDL#2172
- Fixed `RuntimeError: Directory 'C:\Users\myuser\.spotdl\web-ui\dist' does not exist` by @R0GUE-A5H in spotDL#2173
- Make sync command aware of file name changes by @xnetcat 

Documentation:
- Chore: update downloader.py by @Elto

Co-authored-by: kuba <[email protected]>
Co-authored-by: Alan <[email protected]>
Co-authored-by: Ikko Eltociear Ashimine <[email protected]>
Co-authored-by: Ash <[email protected]>
@xnetcat
Copy link
Member

xnetcat commented Oct 1, 2024

Maybe add a timestamp before writing the errors, so that it's easier to look through the error file.

@truppelito
Copy link
Contributor Author

@xnetcat Is this what you had in mind?

@xnetcat xnetcat changed the base branch from master to dev October 12, 2024 17:36
@xnetcat xnetcat merged commit e462456 into spotDL:dev Oct 12, 2024
@xnetcat xnetcat mentioned this pull request Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants