[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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user