Exemple #1
0
"""
import sys as _sys
import re as _re
import argparse as _argparse
import urllib.parse as _up
from itertools import chain as _chain
from collections import namedtuple as _namedtuple

import libssw as _libssw

__version__ = 20151010

_VERBOSE = 0
_AUTOMODIFY = True

_emsg = _libssw.Emsg(_libssw.ownname(__file__))

_ReturnVal = _namedtuple(
    'ReturnVal',
    ('release', 'pid', 'title', 'title_dmm', 'url', 'time', 'maker', 'label',
     'series', 'actress', 'link_label', 'link_series', 'wktxt_a', 'wktxt_t'))

_sub_heart = (_re.compile(r'(ハート)|◆'), r'♥')

_IMG_URL = {
    'dvd': 'https://pics.dmm.co.jp/mono/movie/adult/',
    'rental': 'https://pics.dmm.co.jp/mono/movie/',
    'video': 'https://pics.dmm.co.jp/digital/video/',
    'ama': 'https://pics.dmm.co.jp/digital/amateur/'
}
Exemple #2
0
import sys
import re
import argparse
from operator import attrgetter
from itertools import zip_longest, compress
from collections import OrderedDict, namedtuple

import libssw
import dmm2ssw

__version__ = 20151010

OWNNAME = libssw.ownname(__file__)
VERBOSE = 0

emsg = libssw.Emsg(OWNNAME)

MSGLEVEL = {'E': 'ERROR', 'W': 'WARN', 'I': 'INFO'}

ACTINFOPAGE = 'https://actress.dmm.co.jp/-/detail/=/actress_id={}/'
ACTLISTPAGE = 'https://www.dmm.co.jp/mono/dvd/-/list/=/article=actress/id={}/sort=date/'

SPLIT_DEFAULT = 200

# sub_sort = (re.compile(r'(?<=/sort=)\w+'), 'date')

re_actdelim = re.compile(r'[(、]')

MakeType = namedtuple('MakeType', 'actress,table')
OutFile = namedtuple('OutFile', 'actr,tbl,suffix,writemode')