diff --git a/pywidevine/pssh.py b/pywidevine/pssh.py index 9f5d6a4..29e651e 100644 --- a/pywidevine/pssh.py +++ b/pywidevine/pssh.py @@ -385,11 +385,11 @@ class PSSH: {key_ids_xml} - {f'%s' % la_url if la_url else ''} - {f'%s' % lui_url if lui_url else ''} - {f'%s' % base64.b64encode(ds_id).decode() if ds_id else ''} - {f'%s' % decryptor_setup if decryptor_setup else ''} - {f'%s' % custom_data if custom_data else ''} + {'%s' % la_url if la_url else ''} + {'%s' % lui_url if lui_url else ''} + {'%s' % base64.b64encode(ds_id).decode() if ds_id else ''} + {'%s' % decryptor_setup if decryptor_setup else ''} + {'%s' % custom_data if custom_data else ''} """.encode("utf-16-le") diff --git a/pywidevine/utils.py b/pywidevine/utils.py index 4d4c71d..6556d3e 100644 --- a/pywidevine/utils.py +++ b/pywidevine/utils.py @@ -1,6 +1,6 @@ import shutil from pathlib import Path -from typing import Optional, Union +from typing import Optional def get_binary_path(*names: str) -> Optional[Path]: