make 'path' and 'keywords' available in logging messages
Wrap all loggers used by job, extractor, downloader, and postprocessor objects into a (custom) LoggerAdapter that provides access to the underlying job, extractor, pathfmt, and kwdict objects and their properties. __init__() signatures for all downloader and postprocessor classes have been changed to take the current Job object as their first argument, instead of the current extractor or pathfmt. (#574, #575)
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2018 Mike Fährmann
|
||||
# Copyright 2018-2020 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
|
||||
# published by the Free Software Foundation.
|
||||
|
||||
"""Convert pixiv ugoira to webm"""
|
||||
"""Convert Pixiv Ugoira to WebM"""
|
||||
|
||||
from .common import PostProcessor
|
||||
from .. import util
|
||||
@@ -19,8 +19,8 @@ import os
|
||||
|
||||
class UgoiraPP(PostProcessor):
|
||||
|
||||
def __init__(self, pathfmt, options):
|
||||
PostProcessor.__init__(self)
|
||||
def __init__(self, job, options):
|
||||
PostProcessor.__init__(self, job)
|
||||
self.extension = options.get("extension") or "webm"
|
||||
self.args = options.get("ffmpeg-args") or ()
|
||||
self.twopass = options.get("ffmpeg-twopass", False)
|
||||
|
||||
Reference in New Issue
Block a user