|
|
@ -1,6 +1,7 @@
|
|
|
|
import json
|
|
|
|
import json
|
|
|
|
|
|
|
|
|
|
|
|
from .common import InfoExtractor
|
|
|
|
from .common import InfoExtractor
|
|
|
|
|
|
|
|
from ..utils import traverse_obj
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class PMVHavenIE(InfoExtractor):
|
|
|
|
class PMVHavenIE(InfoExtractor):
|
|
|
@ -90,10 +91,10 @@ class PMVHavenProfileIE(InfoExtractor):
|
|
|
|
|
|
|
|
|
|
|
|
def transform(data):
|
|
|
|
def transform(data):
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
'id': data['_id'],
|
|
|
|
'id': traverse_obj(data, ('_id')),
|
|
|
|
'title': data['title'],
|
|
|
|
'title': traverse_obj(data, ('title')),
|
|
|
|
'uploader': data['uploader'],
|
|
|
|
'uploader': traverse_obj(data, ('uploader')),
|
|
|
|
'url': data['url'],
|
|
|
|
'url': traverse_obj(data, ('url')),
|
|
|
|
'thumbnails': [{'url': i} for i in data['thumbnails'] if i != 'placeholder'],
|
|
|
|
'thumbnails': [{'url': i} for i in data['thumbnails'] if i != 'placeholder'],
|
|
|
|
}
|
|
|
|
}
|
|
|
|
entries = map(transform, entries)
|
|
|
|
entries = map(transform, entries)
|
|
|
|