mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-03-10 08:29:00 +00:00
fix: correct formatting and add missing newlines in selector and EXAMPLE service
This commit is contained in:
@@ -1,10 +1,12 @@
|
||||
import sys
|
||||
|
||||
import click
|
||||
from rich.console import Group
|
||||
from rich.live import Live
|
||||
from rich.padding import Padding
|
||||
from rich.table import Table
|
||||
from rich.text import Text
|
||||
|
||||
from unshackle.core.console import console
|
||||
|
||||
IS_WINDOWS = sys.platform == "win32"
|
||||
|
||||
@@ -325,7 +325,7 @@ class EXAMPLE(Service):
|
||||
return response.json().get("license")
|
||||
except ValueError:
|
||||
return response.content
|
||||
|
||||
|
||||
def get_playready_license(self, *, challenge: bytes, title: Title_T, track: AnyTrack) -> Optional[Union[bytes, str]]:
|
||||
license_url = self.config["endpoints"].get("playready_license")
|
||||
if not license_url:
|
||||
@@ -339,4 +339,4 @@ class EXAMPLE(Service):
|
||||
},
|
||||
)
|
||||
response.raise_for_status()
|
||||
return response.content
|
||||
return response.content
|
||||
|
||||
Reference in New Issue
Block a user