Make summay_prefix string optional

This commit is contained in:
JonnyWong16 2021-07-29 13:14:10 +00:00 committed by GitHub
parent 3204a0cd44
commit 42bd315c1e

View File

@ -19,7 +19,7 @@
# --rating_key {rating_key} --image spoilers.png # --rating_key {rating_key} --image spoilers.png
# To blur the episode artwork (optional blur in pixels): # To blur the episode artwork (optional blur in pixels):
# --rating_key {rating_key} --blur 25 # --rating_key {rating_key} --blur 25
# To add a prefix to the summary: # To add a prefix to the summary (optional string prefix):
# --rating_key {rating_key} --summary_prefix "** SPOILERS **" # --rating_key {rating_key} --summary_prefix "** SPOILERS **"
# * Watched (optional): # * Watched (optional):
# --rating_key {rating_key} --remove # --rating_key {rating_key} --remove
@ -68,7 +68,7 @@ if __name__ == "__main__":
parser.add_argument('--rating_key', required=True, type=int) parser.add_argument('--rating_key', required=True, type=int)
parser.add_argument('--image') parser.add_argument('--image')
parser.add_argument('--blur', type=int, default=25) parser.add_argument('--blur', type=int, default=25)
parser.add_argument('--summary_prefix') parser.add_argument('--summary_prefix', nargs='?', const='** SPOILERS **')
parser.add_argument('--remove', action='store_true') parser.add_argument('--remove', action='store_true')
opts = parser.parse_args() opts = parser.parse_args()