mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-12-06 07:55:10 +00:00
feat(dl): let a service force --license-first with the LICENSE_FIRST class variable
This commit is contained in:
@@ -97,6 +97,8 @@ def call_session_handler(handler, body, service, **entry_fields):
|
||||
|
||||
|
||||
class StubService:
|
||||
LICENSE_FIRST = False
|
||||
|
||||
def __init__(self, tracks=(), cookies=()):
|
||||
self.session = SimpleNamespace(headers={}, cookies=list(cookies))
|
||||
self.tracks = list(tracks)
|
||||
|
||||
Reference in New Issue
Block a user