def logSubtitle(showid, season, episode, status, subtitleResult):
 resource = subtitleResult.language.opensubtitles
 provider = subtitleResult.provider_name
 (status, quality) = Quality.splitCompositeStatus(status)
 action = Quality.compositeStatus(SUBTITLED, quality)
 _logHistoryItem(action, showid, season, episode, quality, resource, provider)

def logSubtitle ( showid , season , episode , status , subtitleResult ) : resource = subtitleResult . language . opensubtitles provider = subtitleResult . provider_name ( status , quality ) = Quality . splitCompositeStatus ( status ) action = Quality . compositeStatus ( SUBTITLED , quality ) _logHistoryItem ( action , showid , season , episode , quality , resource , provider )
log download of subtitle .