estallio / plex-metadata-exporter

Saves json and xml metadata as well as cover and art of movies alongside the files in a plex library.
MIT License
8 stars 3 forks source link

Resume point to prevent restart from beginning of libraries #3

Open ChrisPates opened 5 months ago

ChrisPates commented 5 months ago

Loving the idea and approach, have been trying to find something for this purpose for a number of years.

Now it may because of the shear size of my libraries but I'm finding that if the script hits any errors it goes back to the beginning of the first library and with a big library this not ideal.

I think a some form of resume point tracking would be good.

Also currently it seems to replace all items on every run which again in a large library is a heavy on disk and if you happen to be replicating the library to other nodes (resilio sync), hits the network as well.

estallio commented 5 months ago

Hi Chris!

Thanks for your thoughts. Unfortunately, I'm not using plex at the moment and do not have plans to extend the exporter. However, feel free to fork the repo and adjust the code ;)

Cheers, Leo

ChrisPates commented 5 months ago

Cool, I'll take a look at using axios-retry as a first step. I'll also look to sprinkle a bit of git action magic to automate build (including amd64 and arm64) and upload to dockerhub based on secrets (that way I can test but if you want to adopt you can accept the PR and create the relevant secrets for you existing account.

estallio commented 5 months ago

Maybe a little over-engineered for this project, but good idea. However, please understand that I will not spend any additional time for the project.