Optimizing libraries and wondering why they get deleted (the videos) after watching

Isn’t there a way to keep those? Optimizing solves all my viewing issues… I optimize for original quality my TV shows and episodes… Once those episodes are watched, Plex deletes the versions.
Seems like a waste of time for the CPU and server. Why not allow to keep them so I don’t have to run the process again. These, unfortunate to admit, that are just rerun shows anyways, but, it’s what the audience wants to watch, so…

If it’s a concern for disk space… I have maybe, not sure exactly, but, 26 terabytes free, so, disk space not an issue here.

There are two relevant settings for an Optimization task.

Consider the Unwatched only and [ ] Limit to __ items options.

Creating Optimized Versions | Plex Support

Unwatched Only

Choose whether or not the optimization should apply only to items that have not been watched. If this option is selected, then once an item has become “watched” it will no longer be part of the optimization job.

For instance, if you optimized the “5 most recently added unwatched movies” and then watched one of those 5, the optimized version for that particular movie would automatically get removed.

Limit

Limit the number of items to optimize.

Close, but, not… Not what I am asking at all… I am asking, once the optimization has been done, keep the files for future use… Once they have been viewed, they get deleted. I don’t want them to be deleted. Please read the original post and comprehend the problem.

Did you read the description for the Unwatched Only setting?

I believe that Unwatched Only applies to the situation you describe: Once they have been viewed, they get deleted. I don’t want them to be deleted.

If Unwatched Only is enabled - the default - converted versions will be deleted after they have been viewed.

To prevent them from being deleted, uncheck that option.

If I’m misunderstanding, please try to explain in another way.

ok, see, that is helpful… my apologies… I have enabled that setting… Understand now and will check this… so, this would prevent that with that setting off.

chalk this up to bad UI design/info… great job.

No problem!

What would make it more clear for you? The language seems OK to me.

It’s funny how we can look at something multiple times and not see it … if it isn’t what we first expected.

To be clear, optimized versions do not get deleted because they are watched. You would have to manually delete them. If the original is deleted for some reason, such as the setting mentioned above being applied, then the original is also deleted.

Hold up, @anon18523487 - can you clarify?

Are you speaking of the setting on an Optimization job? I think that does exactly what’s described here, and only applies to Optimized versions.

I’m not referring to the AdvancedKeep settings on a TV Library or Show. I think that’s what you’re referring to.

yea, I totally understand… it’s one of those once in a life time things though… what I mean, yea, happened to me, but may never happen again to anyone else. It’s just a software issue, I know, retired after 40 years of developing software, don’t want to do it, but, will jump your ass if your wrong… lol

as long as people see the resolve, I’m good… take care…
gene

1 Like

@Volts Ah sorry. I should read better. You are correct about the option when creating the optimize job.

1 Like

ok, I deserve the “boo ya” here… ahem…

so addressing the original problem, can that be changed? Would be really nice if I could reduce the wear and tear on the drive…

Changed to what? If you don’t want files deleted, either don’t set a limit or don’t use the unwatch option and just optimize everything.

Yea, you don’t understand the issue at hand. The files get deleted. Setting a limit only applies to limiting the the number of files to optimize… Meaning, if you have 24 files and the limit by default is 5, then only 5 files get optimized, not all of them. You should try the options yourself and see.

after the test, check your deleted files list… watch a video, even partially, then mark it as watched…then look at your recycle bin…

changed, by that I mean, fix it so the files don’t get deleted… don’t make me go OMG on you…

Not quite. The optimize feature works like a smart filter. It is not a run and forget it task. The criteria you set will always apply for the job so what optimized versions exist will reflect this criteria. If you optimize an entire library, then as you add new items to the library, they get optimized since that is the criteria. If you remove something from your library, it also removes the optimized version since that version no longer matches the criteria.

So setting the limit to optimize 5 unwatched movies, means only 5 optimized versions can exist inside this job. i.e. If you choose to optimize 5 unwatched movies, then create an identical job to optimize 5 unwatched movies, it does not optimize the next 5 unwatched movies, you’ve basically duplicated the first job, but there would still only be 5 optimized versions. There is no mechanism to keep an optimized version outside of the job.

What you are looking for is a way to convert files using Plex to permanently keep in your library. There is no option to allow that and that is not the intent of the optimize feature.

Can you share a screenshot of your optimization job settings?

That’s the behavior when Unwatched only is checked.
When Unwatched only is not checked, optimized versions are not deleted after they are watched.

I believe you need to uncheck Unwatched only.

opsettings

and the result after watching…

How are you selecting the files to Optimize?
How do you get the next 5?
Are you using Collections created with filters?

I am asking because I tried to recreate the issue and can’t.

Depends on the time of the day, actually… It takes a while and the system is set to shut down at a certain time.

If it’s early, then I set that count to the actual video count in the folder. Or, you can do one file at time from the season, which I do if it is later in the day.

All I would like is to have Plex not delete the video once it is watched. I have tried both settings and I get the same results. “watched or unwatched” that is…

Does it optimize the next item, so that there are still 5 that are optimized?

If you have space and want to keep these … I’m surprised that you have a limit number enabled. Don’t you want that option blank/disabled?