Flashes are still on i.4cdn.org only.
Fixes bug from 0f6a98e5e9ff76af0339f32f614c0281524a5539.
This commit is contained in:
parent
0f6a98e5e9
commit
14271cd798
@ -64,7 +64,7 @@ Build =
|
|||||||
o.file =
|
o.file =
|
||||||
name: (Build.unescape data.filename) + data.ext
|
name: (Build.unescape data.filename) + data.ext
|
||||||
url: if boardID is 'f'
|
url: if boardID is 'f'
|
||||||
"#{location.protocol}//#{ImageHost.host()}/#{boardID}/#{encodeURIComponent data.filename}#{data.ext}"
|
"#{location.protocol}//#{ImageHost.flashHost()}/#{boardID}/#{encodeURIComponent data.filename}#{data.ext}"
|
||||||
else
|
else
|
||||||
"#{location.protocol}//#{ImageHost.host()}/#{boardID}/#{data.tim}#{data.ext}"
|
"#{location.protocol}//#{ImageHost.host()}/#{boardID}/#{data.tim}#{data.ext}"
|
||||||
height: data.h
|
height: data.h
|
||||||
|
|||||||
@ -7,6 +7,8 @@ ImageHost =
|
|||||||
|
|
||||||
host: ->
|
host: ->
|
||||||
if @useFaster then 'i.4cdn.org' else 'is.4chan.org'
|
if @useFaster then 'i.4cdn.org' else 'is.4chan.org'
|
||||||
|
flashHost: ->
|
||||||
|
'i.4cdn.org'
|
||||||
thumbHost: ->
|
thumbHost: ->
|
||||||
'i.4cdn.org'
|
'i.4cdn.org'
|
||||||
test: (hostname) ->
|
test: (hostname) ->
|
||||||
|
|||||||
@ -176,7 +176,7 @@ class Fetcher
|
|||||||
name: data.media.media_filename
|
name: data.media.media_filename
|
||||||
url: data.media.media_link or data.media.remote_media_link or
|
url: data.media.media_link or data.media.remote_media_link or
|
||||||
if @boardID is 'f'
|
if @boardID is 'f'
|
||||||
"#{location.protocol}//#{ImageHost.host()}/#{@boardID}/#{encodeURIComponent data.media.media_filename}"
|
"#{location.protocol}//#{ImageHost.flashHost()}/#{@boardID}/#{encodeURIComponent data.media.media_filename}"
|
||||||
else
|
else
|
||||||
"#{location.protocol}//#{ImageHost.host()}/#{@boardID}/#{encodeURIComponent data.media.media_orig}"
|
"#{location.protocol}//#{ImageHost.host()}/#{@boardID}/#{encodeURIComponent data.media.media_orig}"
|
||||||
height: data.media.media_h
|
height: data.media.media_h
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user