Jump to content


Photo

FR: Server: Auto Delete Watched after "N" Days


  • Please log in to reply
104 replies to this topic

#1 trusselo OFFLINE  

trusselo

    Advanced Member

  • Members
  • 491 posts
  • Local time: 09:24 PM
  • LocationEdmonton, Alberta

Posted 29 June 2014 - 01:57 PM

It would be great if i could set the server to delete certain shows after a user has watched it.

 

I happen to watch "The Daily Show with Jon Stewart" and "The Colbert Report", everyday, and with "News"ish type shows, there is no need to keep the episodes around. 

 

So i would like to set MB to auto delete those 2 shows, 3 days after one user has watched it.


  • ginjaninja, JohnWhitmore, saajan4u and 32 others like this

#2 Koleckai Silvestri OFFLINE  

Koleckai Silvestri

    Advanced Member

  • Alpha Testers
  • 3735 posts
  • Local time: 09:24 PM

Posted 29 June 2014 - 02:30 PM

This would have to be optional and on a series by series level. It would also need to be off by default.


  • pir8radio, PrincessClevage, chali and 3 others like this

#3 Maleficarum OFFLINE  

Maleficarum

    Advanced Member

  • Alpha Testers
  • 227 posts
  • Local time: 05:24 AM
  • LocationWales, United Kingdom

Posted 29 June 2014 - 05:45 PM

Would be good to be able to specify users to watch for too. If you are the only user it Would work OK but what happens if another user has access to that same show and watches it before you...

Sent from my C1505 using Tapatalk

#4 elmo OFFLINE  

elmo

    Member

  • Members
  • 10 posts
  • Local time: 12:24 AM

Posted 16 July 2014 - 01:41 PM

I'm all for this!  I'd brought it up once before but reception was cool.  But now that Live TV and DVR content is easily part of the MB3 experience, management automation would be a good thing.  I was even thinking of writing a plug-in but time is not on my side.  I have noticed that there's a "let this user delete content" setting for the user profiles, so maybe it's coming.  In the meantime, for what it's worth, I'll share some of my ideas on this.

 

First this option would only apply to TV Show content, so movies are safe and would require a user to be in the file system.  If you use that for a series to be retained always, it could be turned off for that media folder.  I'd have it be "out-in" by default.

 

Next, I would want it to return the root folders/Series/Show name so that individual settings could be set.  With that in mind, I'd also want a global setting to apply for anything not specified; anything specific to a show would override the globals.

 

Without getting too complex, some basic rules to apply would get the job done.  I'd probably present simple checkbox options, something like

  • Delete n Days after watched
  • Delete unwatched if older than n days

So for David Letterman, I may set it to 1/7 respectively, which would give me one day to go back and see it again, like "oh you have to see the stupid pet tricks from yesterday."  The 7 days would give me a week to watch and if I didn't, older content would roll off and be deleted. 

 

For CSI, I may do 14/X, (X meaning disabled) keeping the last one I watched for a couple weeks if I needed a refresher and not enabling the Delete Unwatched option as I may watch these in a marathon in a couple months from now.

 

Local news might just be 0/1 so that it would be deleted immedately on the next delete cycle after watched and if not watched, it will only last for the day.

 

I'd thought of other options as well.  One could be "Keep no more than n episodes", which would probably be best as a mutually exclusive option to the two settings above.  That way if I set it to 5 for Letterman, I'll have the last 5 regardless of watched status; that may be a simpler option for daily type shows.  That could be risky for a weekly series unless I set it to some large #.  If that setting wasn't mutually exclusive, it could be fine but then a user might get confused about when a show will be deleted.

 

If no global options were set and a new series was added w/o retention specifics, then it'd just pile up safely until the admin set it up.  If a global setting was in place, then it'd fall under that logic w/o intervention.

 

Again, my intent is simplicity and a way to keep my HDD's from filling with content that I will have to manually delete.  Thirty days worth of Letterman just isn't my idea of fun, as my TV time is pretty light.  Maybe if I give up that little bit of TV I could get a plug-in coded!  :P

 


  • mastrmind11 and Areppa like this

#5 J@3Brd OFFLINE  

J@3Brd

    Member

  • Members
  • 18 posts
  • Local time: 11:24 PM

Posted 28 March 2017 - 01:01 PM

Has this feature request been abandoned? I would also like a way to age off watched shows. Here is one use case. I do not give my kids delete access because they are kids and who knows what they will do. However, their tv shows are a majority of my library.  Once they watch a show it just sits on my server until I work may way through and delete them. I would be nice if I could just check a box to delete the shows X days after watched.


  • mastrmind11 likes this

#6 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 139861 posts
  • Local time: 11:24 PM

Posted 28 March 2017 - 01:06 PM

Hi @jcurillo, no it hasn't been abandoned. We are actively monitoring all features requests for community feedback. Thanks !



#7 Michael Poulsen OFFLINE  

Michael Poulsen

    Member

  • Members
  • 19 posts
  • Local time: 05:24 AM

Posted 07 April 2017 - 01:26 PM

Hi @jcurillo, no it hasn't been abandoned. We are actively monitoring all features requests for community feedback. Thanks !

i would like it too ;-)

maybe something like janitor in kodi, that works.



#8 Koleckai Silvestri OFFLINE  

Koleckai Silvestri

    Advanced Member

  • Alpha Testers
  • 3735 posts
  • Local time: 09:24 PM

Posted 07 April 2017 - 01:31 PM

i would like it too ;-)

maybe something like janitor in kodi, that works.

 

 

You need to like the first post of a topic if you want to vote for it. Until people like the topic, it won't go anywhere.


  • Michael Poulsen likes this

#9 Michael Poulsen OFFLINE  

Michael Poulsen

    Member

  • Members
  • 19 posts
  • Local time: 05:24 AM

Posted 07 April 2017 - 01:57 PM

Is that Better

#10 Fran├žoise OFFLINE  

Fran├žoise

    Member

  • Members
  • 18 posts
  • Local time: 06:24 AM

Posted 01 May 2017 - 03:46 AM

I too would appreciate this feature. To me it is very important for series. Less important for movies.

 

I think the simplest implementation would be to delete an episode, after x preceding episodes have been marked as watched, by a specified set of users.

 

For instance for x =3; this would automatically delete s01e01 from the disk after s01e04 has been watched.

 

There could also be a setting for season (s+y). For  y=1  and x = 3 this would delete season 1 after episode 3 in season 2 has been marked as watched by a defined set of users.

 

There could be a default set of users, and an option to set a custom set of users for a particular series, category, collection etc..

 

For movies I would suggest a time delay. Possibly a countdown could be displayed; this movie will be delete in, 4 days.

 

There could be an additional play option for movies; play (and purge x days after watched), and one that is play and keep. Again a predefined set of users could be set by, library/collection, with the additional option to set a custom set of users that are to watch it before it will be purged automatically.

 

I never watch anything twice, I would only use the delay option as a fail-safe.
 

It is a lot of work to manually delete watched episodes of continuing shows and a waste of disk space to keep them.

 

I have seen many people looking for a script to accomplish this in different forums, such as SickRage, Sonarr, reddit, and Trakt. Some Emby users have even resorted to keeping a copy of Plex installed, only to have trakt sync watched states to Plex, and have the plex-cleaner script, delete the watched episodes from the disk.

 

Cheers!


Edited by quark, 03 May 2017 - 02:27 PM.


#11 saajan4u OFFLINE  

saajan4u

    Advanced Member

  • Members
  • 256 posts
  • Local time: 05:24 AM

Posted 03 May 2017 - 02:15 PM

+1 for this feature



#12 joggs OFFLINE  

joggs

    Advanced Member

  • Members
  • 135 posts
  • Local time: 05:24 AM

Posted 26 August 2017 - 07:32 AM

+1



#13 NeauxGeaux OFFLINE  

NeauxGeaux

    Advanced Member

  • Members
  • 49 posts
  • Local time: 11:24 PM

Posted 27 August 2017 - 03:10 PM

+1

#14 Tur0k OFFLINE  

Tur0k

    Advanced Member

  • Members
  • 513 posts
  • Local time: 10:24 PM

Posted 27 August 2017 - 10:46 PM

+1


Sent from my iPhone using Tapatalk

#15 darkassassin07 ONLINE  

darkassassin07

    Advanced Member

  • Members
  • 760 posts
  • Local time: 08:24 PM

Posted 28 August 2017 - 02:36 AM

Its an interesting idea, but i think this should be a plugin, not a base feature.
  • RobWayBro likes this

#16 mozez314 OFFLINE  

mozez314

    Newbie

  • Members
  • 3 posts
  • Local time: 04:24 AM

Posted 30 August 2017 - 10:03 AM

I have a specific folder into which I put individual movie folders that will only be retained for a set time (currently 180 days) and a script that deletes the movie folders if they exceed that time - actually it moves them to a TRASH folder that I then empty manually :-)

 

However, it would be nice if this was built into Emby to provide the ability to sort by expiry date - effectively providing a "last chance to see" view...



#17 Jdiesel ONLINE  

Jdiesel

    Advanced Member

  • Members
  • 2699 posts
  • Local time: 10:24 PM
  • LocationRegina, SK

Posted 30 August 2017 - 10:43 AM

A tip for those on Linux, I run a daily cron which deletes files older than a certain date. For example:

find /media/tv/Conan (2010)/* -mtime +14 -exec rm {} \;

Which will delete any episodes of Conan that are older than 14 days. Obliviously it doesn't consider if they have been watched or not but for daily shows like that I never want to go back and watch very old episodes anyways.



#18 dcook OFFLINE  

dcook

    Advanced Member

  • Members
  • 866 posts
  • Local time: 12:24 AM

Posted 30 August 2017 - 11:15 AM

Agreed this should be a plugin, no need for this to be in the core server code.



#19 Kurosh OFFLINE  

Kurosh

    Advanced Member

  • Members
  • 47 posts
  • Local time: 05:24 AM

Posted 26 September 2017 - 05:00 PM

+1 

 

i think Plex Server has this capability, really don't want to migrate but this feature is so useful.



#20 ginjaninja OFFLINE  

ginjaninja

    Advanced Member

  • Members
  • 1641 posts
  • Local time: 04:24 AM
  • Locationuk

Posted 27 September 2017 - 01:19 AM

auto delete old news shows would be useful.

set at series level

level 1 - delete x days after date aired

level 2 - if all these users have watched delete y days after

(cant delete immediately after watched as some times media is marked watched in error or if fell asleep during)

assuming emby allows plugins to create custom media attributes, the logic can write a deletion date field on the media item. this field could support a smart playlist for "media due for deletion in y days" (last chance to see view) in core even if media (marking for) deletion functionality was in a plugin.

switch off this auto deletion function at show level would remove deletion date from all episides. *

scheduled task would first (in case x,y changed) update deletion date based on MIN(x,y) , then proccess any deletions exceeded.

uninstalling plugin would remove deletion date from schema.*

*(assumption this plugin is authorative for the content / meaning of the deletion date field it creates/uses)

Sent from my SM-G955F using Tapatalk
  • joggs likes this




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users