summaryrefslogtreecommitdiffstats
path: root/gallery_dl/extractor/mangoxo.py
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@unit193.net>2020-11-13 19:17:03 -0500
committerLibravatarUnit 193 <unit193@unit193.net>2020-11-13 19:17:03 -0500
commit209a3c800871cd68edd2bc7ae661a24ecd496d2d (patch)
treecf81c47ab57540b58292295c7d5641e9d2668291 /gallery_dl/extractor/mangoxo.py
parent5dc7d6f5902ddaee5223d041d5c10060f0c72430 (diff)
New upstream version 1.15.3.upstream/1.15.3
Diffstat (limited to 'gallery_dl/extractor/mangoxo.py')
-rw-r--r--gallery_dl/extractor/mangoxo.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/gallery_dl/extractor/mangoxo.py b/gallery_dl/extractor/mangoxo.py
index 5743498..344dd56 100644
--- a/gallery_dl/extractor/mangoxo.py
+++ b/gallery_dl/extractor/mangoxo.py
@@ -86,7 +86,7 @@ class MangoxoAlbumExtractor(MangoxoExtractor):
"album": {
"id": "lzVOv1Q9",
"name": "re:池永康晟 Ikenaga Yasunari 透出古朴",
- "date": "2019.3.22 14:42",
+ "date": "dt:2019-03-22 14:42:00",
"description": str,
},
"num": int,
@@ -113,23 +113,24 @@ class MangoxoAlbumExtractor(MangoxoExtractor):
def metadata(self, page):
"""Return general metadata"""
title, pos = text.extract(page, '<title>', '</title>')
- count, pos = text.extract(page, 'id="pic-count">', '<', pos)
- cover, pos = text.extract(page, ' src="', '"', pos)
+ _ , pos = text.extract(page, 'class="desc"', '', pos)
cid , pos = text.extract(page, '//www.mangoxo.com/channel/', '"', pos)
cname, pos = text.extract(page, '>', '<', pos)
+ count, pos = text.extract(page, 'id="pic-count">', '<', pos)
+ cover, pos = text.extract(page, ' src="', '"', pos)
date , pos = text.extract(page, '</i>', '<', pos)
descr, pos = text.extract(page, '<pre>', '</pre>', pos)
return {
"channel": {
"id": cid,
- "name": text.unescape(cname),
+ "name": text.unescape(cname.strip()),
"cover": cover,
},
"album": {
"id": self.album_id,
"name": text.unescape(title),
- "date": date.strip(),
+ "date": text.parse_datetime(date.strip(), "%Y.%m.%d %H:%M"),
"description": text.unescape(descr),
},
"count": text.parse_int(count),