[furaffinity] add 'layout' option (#2277)

to be able to force gallery-dl to parse according to a specific layout
in case its auto-detect fails
This commit is contained in:
Mike Fährmann
2022-02-11 00:00:01 +01:00
parent 4e4cb40663
commit f1c853c6ef
3 changed files with 22 additions and 2 deletions

View File

@@ -28,11 +28,16 @@ class FuraffinityExtractor(Extractor):
Extractor.__init__(self, match)
self.user = match.group(1)
self.offset = 0
self._new_layout = None
if self.config("descriptions") == "html":
self._process_description = str.strip
layout = self.config("layout")
if layout and layout != "auto":
self._new_layout = False if layout == "old" else True
else:
self._new_layout = None
def items(self):
if self._warning: