[twitter] include '4096x4096' as a default image fallback
(closes #2107, closes #1881)
This commit is contained in:
@@ -2022,7 +2022,7 @@ extractor.twitter.size
|
|||||||
Type
|
Type
|
||||||
``list`` of ``strings``
|
``list`` of ``strings``
|
||||||
Default
|
Default
|
||||||
``["orig", "large", "medium", "small"]``
|
``["orig", "4096x4096", "large", "medium", "small"]``
|
||||||
Description
|
Description
|
||||||
The image version to download.
|
The image version to download.
|
||||||
Any entries after the first one will be used for potential
|
Any entries after the first one will be used for potential
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ class TwitterExtractor(Extractor):
|
|||||||
size = self.config("size")
|
size = self.config("size")
|
||||||
if size is None:
|
if size is None:
|
||||||
self._size_image = "orig"
|
self._size_image = "orig"
|
||||||
self._size_fallback = ("large", "medium", "small")
|
self._size_fallback = ("4096x4096", "large", "medium", "small")
|
||||||
else:
|
else:
|
||||||
if isinstance(size, str):
|
if isinstance(size, str):
|
||||||
size = size.split(",")
|
size = size.split(",")
|
||||||
|
|||||||
Reference in New Issue
Block a user