condense size and rating to value arg

This commit is contained in:
blacktwin 2020-04-09 16:13:32 -04:00
parent d38ee9c341
commit aac5518ddf

View File

@ -367,10 +367,10 @@ if __name__ == '__main__':
'send notification.')
parser.add_argument('--toggleDeletion', action='store_true',
help='Enable Plex to delete media while using script.')
parser.add_argument('--size', type=lambda kv: kv.split("_"),
help='Select Size to filter. ">_5G" ie. items greater than 5 gigabytes.')
parser.add_argument('--rating', type=lambda kv: kv.split("_"),
help='Select Rating to filter. ">_3" ie. items greater than 3 stars.')
parser.add_argument('--value', type=lambda kv: kv.split("_"),
help='Operator and Value to use for Size or Rating filtering.\n'
'">_5G" ie. items greater than 5 gigabytes.\n'
'">_3" ie. items greater than 3 stars.')
opts = parser.parse_args()
# todo find: watched by list of users[x], unwatched based on time[x], based on size, most transcoded, star rating