EODCrafter 180 Posted September 29, 2023 Share Posted September 29, 2023 I have mentioned this before, but is there any update to limiting the file size for this? @Luke Link to comment Share on other sites More sharing options...
Luke 37143 Posted September 29, 2023 Share Posted September 29, 2023 Hi, were you watching live TV for a long time? Link to comment Share on other sites More sharing options...
EODCrafter 180 Posted September 29, 2023 Author Share Posted September 29, 2023 (edited) 19 minutes ago, Luke said: Hi, were you watching live TV for a long time? Yes Sir, Golf tournaments, Football games ect last for hours.....(and they are mostly HD) Edited September 29, 2023 by EODCrafter Link to comment Share on other sites More sharing options...
Luke 37143 Posted September 29, 2023 Share Posted September 29, 2023 OK, I don't have an ETA but I have had this topic in mind as something I'd like to get to in the near future. Link to comment Share on other sites More sharing options...
EODCrafter 180 Posted September 30, 2023 Author Share Posted September 30, 2023 13 hours ago, Luke said: OK, I don't have an ETA but I have had this topic in mind as something I'd like to get to in the near future. Is there a batch file i could run every 3 hours or so to delete the file, if so, how? Link to comment Share on other sites More sharing options...
EODCrafter 180 Posted September 30, 2023 Author Share Posted September 30, 2023 PS C:\Users\Fith> Get-ChildItem -path R:\Temp\transcoding-temp\* | where {$_.CreationTime -lt (date).addminutes(-5)} | remove-item -Force I think this will work, just need .addminutes to -60 for 1 hour Link to comment Share on other sites More sharing options...
Solution EODCrafter 180 Posted September 30, 2023 Author Solution Share Posted September 30, 2023 (edited) Here's the final solution. Get-ChildItem -path R:\Temp\transcoding-temp\ -Include *.* -File -Recurse | where {$_.CreationTime -lt (date).addminutes(-30)} | remove-item -Force buffer.ps1 I just use task scheduler to run that every 30 minutes and decreased RAM Drive to 10Gb to free up resources. (Until you incorporate into Emby ) Edited September 30, 2023 by EODCrafter Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now