Skip to content

Commit

Permalink
Update wmsauth.py
Browse files Browse the repository at this point in the history
set default values for signed_stream="" and stream_len=0
  • Loading branch information
slim0 authored Aug 31, 2020
1 parent 553e7fc commit 7fab1c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/wmsauth.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from time import gmtime, strftime


def get_media_url_with_signature(ip, password, validminutes, initial_url, signed_stream, strm_len):
def get_media_url_with_signature(ip, password, validminutes, initial_url, signed_stream="", strm_len=0):
"""
Get URL with Hot-link protection signature
:param ip: Viewer IP address
Expand Down

0 comments on commit 7fab1c9

Please sign in to comment.