Skip to content

Commit

Permalink
add 'timedelta' class to the global namespace in filter expressions
Browse files Browse the repository at this point in the history
  • Loading branch information
mikf committed Feb 22, 2022
1 parent cf58048 commit 00fbc94
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gallery_dl/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,7 @@ def __str__():
"parse_int": text.parse_int,
"urlsplit" : urllib.parse.urlsplit,
"datetime" : datetime.datetime,
"timedelta": datetime.timedelta,
"abort" : raises(exception.StopExtraction),
"terminate": raises(exception.TerminateExtraction),
"re" : re,
Expand Down

0 comments on commit 00fbc94

Please sign in to comment.