aboutsummaryrefslogtreecommitdiffstats
path: root/gallery_dl/extractor/photovogue.py
diff options
context:
space:
mode:
Diffstat (limited to 'gallery_dl/extractor/photovogue.py')
-rw-r--r--gallery_dl/extractor/photovogue.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/gallery_dl/extractor/photovogue.py b/gallery_dl/extractor/photovogue.py
index e604304..cb16b23 100644
--- a/gallery_dl/extractor/photovogue.py
+++ b/gallery_dl/extractor/photovogue.py
@@ -18,7 +18,7 @@ class PhotovogueUserExtractor(Extractor):
directory_fmt = ("{category}", "{photographer[id]} {photographer[name]}")
filename_fmt = "{id} {title}.{extension}"
archive_fmt = "{id}"
- pattern = BASE_PATTERN + r"/photographers/(\d+)"
+ pattern = rf"{BASE_PATTERN}/photographers/(\d+)"
example = "https://www.vogue.com/photovogue/photographers/12345"
def __init__(self, match):
@@ -29,10 +29,9 @@ class PhotovogueUserExtractor(Extractor):
for photo in self.photos():
url = photo["gallery_image"]
photo["title"] = photo["title"].strip()
- photo["date"] = text.parse_datetime(
- photo["date"], "%Y-%m-%dT%H:%M:%S.%f%z")
+ photo["date"] = self.parse_datetime_iso(photo["date"])
- yield Message.Directory, photo
+ yield Message.Directory, "", photo
yield Message.Url, url, text.nameext_from_url(url, photo)
def photos(self):