コード例 #1
0
ファイル: cli.py プロジェクト: 2mny/mylar
def actual_issue_data_fetch( match, settings, opts ):

	# now get the particular issue data
	try:
		comicVine = ComicVineTalker()
		comicVine.wait_for_rate_limit = opts.wait_and_retry_on_rate_limit
		cv_md = comicVine.fetchIssueData( match['volume_id'],  match['issue_number'], settings )
	except ComicVineTalkerException:
		print "Network error while getting issue details.  Save aborted"
		return None

	if settings.apply_cbl_transform_on_cv_import:
		cv_md = CBLTransformer( cv_md, settings ).apply()
		
	return cv_md
コード例 #2
0
def actual_issue_data_fetch( match, settings, opts ):

	# now get the particular issue data
	try:
		comicVine = ComicVineTalker()
		comicVine.wait_for_rate_limit = opts.wait_and_retry_on_rate_limit
		cv_md = comicVine.fetchIssueData( match['volume_id'],  match['issue_number'], settings )
	except ComicVineTalkerException:
		print >> sys.stderr, "Network error while getting issue details.  Save aborted"
		return None

	if settings.apply_cbl_transform_on_cv_import:
		cv_md = CBLTransformer( cv_md, settings ).apply()
		
	return cv_md