score_reasons.append('Could not determine a file extension in the URL.')
score_reasons.append(u'Končnice datoteke ni bilo mogoče razbrati iz naslova URL')
return (None,None)
forextensioninextension_variants_:
format_=format_get(extension)
ifformat_:
score=lib.resource_format_scores().get(format_)
ifscore:
score_reasons.append('URL extension "%s" relates to format "%s" and receives score: %s.'%(extension,format_,score))
score_reasons.append(u'Končnica datoteke %s ustreza formatu %s in dobi oceno: %s.'%(extension,format_,score))
returnscore,format_
else:
score=1
score_reasons.append('URL extension "%s" relates to format "%s" but a score for that format is not configured, so giving it default score %s.'%(extension,format_,score))
score_reasons.append(u'Končnica datoteke %s ustreza formatu %s, vendar ocena za ta format ni določena, zato dobi privzeto oceno %s.'%(extension,format_,score))
returnscore,format_
score_reasons.append('URL extension "%s" is an unknown format.'%extension)
score_reasons.append(u'Končnica datoteke %s ne pripada znanemu formatu.'%extension)