Skip to content
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

Add feature of refreshing converted files if original files are modified #5204

Open
wants to merge 16 commits into
base: master
Choose a base branch
from

Conversation

pierreay
Copy link

@pierreay pierreay commented Apr 20, 2024

Description

By default, the convert plugin will skip every pending conversion if the converted file is already existing on the filesystem. However, when making changes (e.g., tags) in the original files, the changes are not reflected to the converted library. Adding the --refresh command-line option and the refresh option to the convert plugin allows to re-convert the original files if they are modified more recently than the time when converted files were converted.

To Do

  • Documentation.
  • Changelog.
  • Tests.

@Kritnich
Copy link

Kritnich commented Jul 9, 2024

Just encountered the same issue and am glad to see that there is already a PR for this. Would love to see this merged.

@pierreay
Copy link
Author

pierreay commented Feb 6, 2025

Hello, kind reminder, is there anything that I can do on my side to see this PR being merged? :) @Serene-Arc

@pierreay pierreay force-pushed the pr-feat-convert-refresh branch from 716995e to 1ea648d Compare February 20, 2025 22:17
@pierreay
Copy link
Author

Well, I just rebased on master anticipating a future merge, but I'm not sure the moment was right. ^^"

@pierreay pierreay requested a review from snejus February 20, 2025 22:24
@snejus
Copy link
Member

snejus commented Mar 3, 2025

Now the only missing bit is a note in the changelog as this is a new feature :)

@pierreay
Copy link
Author

pierreay commented Mar 4, 2025

Now the only missing bit is a note in the changelog as this is a new feature :)

@snejus Done! In fact the changelog entry was already there, but was lost in others entries of nearly one year ago since this is a pretty old PR ahah. :)

Pierre Ayoub and others added 16 commits March 4, 2025 07:58
Co-authored-by: Šarūnas Nejus <snejus@protonmail.com>
- Logic refactoring
- `util.syspath` is redundant because already called in `util.remove`

Co-authored-by: Šarūnas Nejus <snejus@protonmail.com>
- `util.syspath` is redundant because already called in `util.normpath`
  itself called in Item class
Co-authored-by: Šarūnas Nejus <snejus@protonmail.com>
Nest and combine some logic tests by:
1. Only check for destination file existence once.
2. Use `original` instead of `item.path` in the `refresh` conditional
   such that this option will be compatible with `keep_new`.
@pierreay pierreay force-pushed the pr-feat-convert-refresh branch from a454dbc to fe9365a Compare March 4, 2025 06:59
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.

3 participants