class MediaWiktory::Wikipedia::Actions::Transcodereset
Users with the 'transcode-reset' right can reset and re-run a transcode job.
Usage:
“`ruby api.transcodereset.title(value).perform # returns string with raw output # or api.transcodereset.title(value).response # returns output parsed and wrapped into Response
object “`
See {Base} for generic explanation of working with MediaWiki actions and {MediaWiktory::Wikipedia::Response} for working with action responses.
All action's parameters are documented as its public methods, see below.
Public Instance Methods
title(value)
click to toggle source
The media file title.
@param value [String] @return [self]
# File lib/mediawiktory/wikipedia/actions/transcodereset.rb, line 26 def title(value) merge(title: value.to_s) end
token(value)
click to toggle source
A “csrf” token retrieved from action=query&meta=tokens
@param value [String] @return [self]
# File lib/mediawiktory/wikipedia/actions/transcodereset.rb, line 42 def token(value) merge(token: value.to_s) end
transcodekey(value)
click to toggle source
The transcode key you wish to reset. Fetch from action=query&prop=transcodestatus.
@param value [String] @return [self]
# File lib/mediawiktory/wikipedia/actions/transcodereset.rb, line 34 def transcodekey(value) merge(transcodekey: value.to_s) end