Skip to content

Instantly share code, notes, and snippets.

@JonnyWong16
Last active December 4, 2024 23:47
Show Gist options
  • Save JonnyWong16/4cfcf8ea50dab1b720b4d30e9a01835c to your computer and use it in GitHub Desktop.
Save JonnyWong16/4cfcf8ea50dab1b720b4d30e9a01835c to your computer and use it in GitHub Desktop.
Automatically add a label to recently added items in your Plex library
Updated script link:
https://github.com/blacktwin/JBOPS/blob/master/utility/add_label_recently_added.py
@JPH71
Copy link

JPH71 commented Apr 30, 2024 via email

@markyskus
Copy link

finally, I think it's work how I want (so-so)
I'm playing with the conditions, and the result was File, contains, (folder name)
trying it with 3 movie, 2 in the specific folder and 1 in other. the 1 in other folder hasnt got the tag, it ok :D but only 1 got the label from the 2 :\

@markyskus
Copy link

I found out why, for some reason the script only runs on the penultimate one, not on the last one added. so the kids tag only appears if a new movie has been added afterwards

@markyskus
Copy link

and some time later it added the latest to the latest movie, so its working like a charm with movies
it would be great if there were some solution for series and collections as well

@JPH71
Copy link

JPH71 commented May 2, 2024 via email

@markyskus
Copy link

naah, I recently added manually

@JPH71
Copy link

JPH71 commented May 2, 2024 via email

@markyskus
Copy link

ah, I understand what you mean, before the script I added manually the label, after the script is added automatically in 5 minutes :) that's good for me :)

@markyskus
Copy link

can't figured out, why it's not working with series
accidentally I make a notification without condition (file+contains with blank) and the script runs well and write the tag to the series, then I modified the notify like the working with movies (file+contains+animation) then nothing happens, log says there is no animation in the file (and there is, and in xml wiew about an episode i can see there is)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment