Batch download songs; add tests for song invalidation and deletion
This commit is contained in:
7
sublime/util.py
Normal file
7
sublime/util.py
Normal file
@@ -0,0 +1,7 @@
|
||||
import hashlib
|
||||
import json
|
||||
from typing import Any
|
||||
|
||||
|
||||
def params_hash(*params: Any) -> str:
|
||||
return hashlib.sha1(bytes(json.dumps(params), "utf8")).hexdigest()
|
Reference in New Issue
Block a user