remove support for deprecated options

- instagram.highlights
- metadata.bypost
- exec.final
This commit is contained in:
Mike Fährmann 2021-01-24 22:30:16 +01:00
parent 477ed010c1
commit ebf417f31f
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88
4 changed files with 4 additions and 19 deletions

View File

@ -366,13 +366,6 @@ class InstagramUserExtractor(InstagramExtractor):
) )
def items(self): 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) base = "{}/{}/".format(self.root, self.item)
stories = "{}/stories/{}/".format(self.root, self.item) stories = "{}/stories/{}/".format(self.root, self.item)
return self._dispatch_extractors(( return self._dispatch_extractors((
@ -380,7 +373,7 @@ class InstagramUserExtractor(InstagramExtractor):
(InstagramHighlightsExtractor, base + "highlights/"), (InstagramHighlightsExtractor, base + "highlights/"),
(InstagramPostsExtractor , base + "posts/"), (InstagramPostsExtractor , base + "posts/"),
(InstagramChannelExtractor , base + "channel/"), (InstagramChannelExtractor , base + "channel/"),
), default) ), ("posts",))
class InstagramPostsExtractor(InstagramExtractor): class InstagramPostsExtractor(InstagramExtractor):

View File

@ -1,6 +1,6 @@
# -*- coding: utf-8 -*- # -*- 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 # 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 # it under the terms of the GNU General Public License version 2 as
@ -39,10 +39,6 @@ class ExecPP(PostProcessor):
events = options.get("event") events = options.get("event")
if events is None: if events is None:
events = ("after",) events = ("after",)
if options.get("final"):
self.log.warning("'final' is deprecated, "
"use '\"event\": \"finalize\"' instead")
events = ("finalize",)
elif isinstance(events, str): elif isinstance(events, str):
events = events.split(",") events = events.split(",")
for event in events: for event in events:

View File

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

View File

@ -1,9 +1,9 @@
# -*- coding: utf-8 -*- # -*- 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 # 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 # it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation. # published by the Free Software Foundation.
__version__ = "1.16.4" __version__ = "1.17.0-dev"