remove support for deprecated options

- instagram.highlights
- metadata.bypost
- exec.final
pull/1331/head
Mike Fährmann 4 years ago
parent 477ed010c1
commit ebf417f31f
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

@ -366,13 +366,6 @@ class InstagramUserExtractor(InstagramExtractor):
)
def items(self):
if self.config("highlights"):
self.log.warning("'highlights' is deprecated, "
"use '\"include\": \"…,highlights\"' instead")
default = ("highlights", "posts")
else:
default = ("posts",)
base = "{}/{}/".format(self.root, self.item)
stories = "{}/stories/{}/".format(self.root, self.item)
return self._dispatch_extractors((
@ -380,7 +373,7 @@ class InstagramUserExtractor(InstagramExtractor):
(InstagramHighlightsExtractor, base + "highlights/"),
(InstagramPostsExtractor , base + "posts/"),
(InstagramChannelExtractor , base + "channel/"),
), default)
), ("posts",))
class InstagramPostsExtractor(InstagramExtractor):

@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
# Copyright 2018-2020 Mike Fährmann
# Copyright 2018-2021 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
@ -39,10 +39,6 @@ class ExecPP(PostProcessor):
events = options.get("event")
if events is None:
events = ("after",)
if options.get("final"):
self.log.warning("'final' is deprecated, "
"use '\"event\": \"finalize\"' instead")
events = ("finalize",)
elif isinstance(events, str):
events = events.split(",")
for event in events:

@ -55,10 +55,6 @@ class MetadataPP(PostProcessor):
events = options.get("event")
if events is None:
events = ("file",)
if options.get("bypost"):
self.log.warning("'bypost' is deprecated, use '\"event\": "
"\"post\"' and 'filename' instead")
events = ("metadata",)
elif isinstance(events, str):
events = events.split(",")
for event in events:

@ -1,9 +1,9 @@
# -*- coding: utf-8 -*-
# Copyright 2016-2020 Mike Fährmann
# Copyright 2016-2021 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.
__version__ = "1.16.4"
__version__ = "1.17.0-dev"

Loading…
Cancel
Save