[common] implement 'parent-session'

This commit is contained in:
Mike Fährmann
2026-01-21 19:45:28 +01:00
parent 9ca45aae73
commit 4798ac4836
4 changed files with 40 additions and 11 deletions

View File

@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
# Copyright 2015-2025 Mike Fährmann
# Copyright 2015-2026 Mike Fährmann
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
@@ -459,6 +459,9 @@ class DownloadJob(Job):
if kwdict:
job.kwdict.update(kwdict)
if pextr.config("parent-session", pextr.parent):
extr.session = pextr.session
while True:
try:
if pextr.config("parent-skip"):