Skip to content

Commit

Permalink
Added media key to mjs version
Browse files Browse the repository at this point in the history
  • Loading branch information
GrabzIt committed Sep 6, 2019
1 parent 784dc30 commit dd8105a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion javascript/grabzit.min.mjs
Expand Up @@ -106,7 +106,7 @@ if(this.postVars!=''&&!this.options.post)
if(this.tVars!=''&&!this.options.tvars)
{this.options.tvars=this.tVars}
for(var k in this.options)
{if(k!='format'&&k!='cache'&&k!='customwatermarkid'&&k!='quality'&&k!='country'&&k!='filename'&&k!='errorid'&&k!='errorclass'&&k!='onfinish'&&k!='onerror'&&k!='delay'&&k!='bwidth'&&k!='bheight'&&k!='height'&&k!='width'&&k!='target'&&k!='requestas'&&k!='download'&&k!='suppresserrors'&&k!='displayid'&&k!='displayclass'&&k!='background'&&k!='pagesize'&&k!='orientation'&&k!='includelinks'&&k!='includeoutline'&&k!='title'&&k!='coverurl'&&k!='mtop'&&k!='mleft'&&k!='mbottom'&&k!='mright'&&k!='tabletoinclude'&&k!='includeheadernames'&&k!='includealltables'&&k!='start'&&k!='duration'&&k!='speed'&&k!='fps'&&k!='repeat'&&k!='reverse'&&k!='templateid'&&k!='noresult'&&k!='hide'&&k!='includeimages'&&k!='export'&&k!='waitfor'&&k!='transparent'&&k!='encryption'&&k!='post'&&k!='noads'&&k!='tvars'&&k!='proxy'&&k!='mergeid'&&k!='address'&&k!='nonotify'&&k!='cachelength'&&k!='onstart'&&k!='hd')
{if(k!='format'&&k!='cache'&&k!='customwatermarkid'&&k!='quality'&&k!='country'&&k!='filename'&&k!='errorid'&&k!='errorclass'&&k!='onfinish'&&k!='onerror'&&k!='delay'&&k!='bwidth'&&k!='bheight'&&k!='height'&&k!='width'&&k!='target'&&k!='requestas'&&k!='download'&&k!='suppresserrors'&&k!='displayid'&&k!='displayclass'&&k!='background'&&k!='pagesize'&&k!='orientation'&&k!='includelinks'&&k!='includeoutline'&&k!='title'&&k!='coverurl'&&k!='mtop'&&k!='mleft'&&k!='mbottom'&&k!='mright'&&k!='tabletoinclude'&&k!='includeheadernames'&&k!='includealltables'&&k!='start'&&k!='duration'&&k!='speed'&&k!='fps'&&k!='repeat'&&k!='reverse'&&k!='templateid'&&k!='noresult'&&k!='hide'&&k!='includeimages'&&k!='export'&&k!='waitfor'&&k!='transparent'&&k!='encryption'&&k!='post'&&k!='noads'&&k!='tvars'&&k!='proxy'&&k!='mergeid'&&k!='address'&&k!='nonotify'&&k!='cachelength'&&k!='onstart'&&k!='hd'&&k!='media')
{var error="Option "+k+" not recognized!";document.documentElement.appendChild(this._createErrorMessage(error,null));throw error}
var v=this.options[k];if(v!=null)
{qs+='&'+k+'='+encodeURIComponent(v)}}
Expand Down

0 comments on commit dd8105a

Please sign in to comment.