Flashes are still on i.4cdn.org only.

Fixes bug from 0f6a98e5e9ff76af0339f32f614c0281524a5539.
This commit is contained in:
ccd0 2017-01-05 21:09:47 -08:00
parent 0f6a98e5e9
commit 14271cd798
3 changed files with 4 additions and 2 deletions

View File

@ -64,7 +64,7 @@ Build =
o.file =
name: (Build.unescape data.filename) + data.ext
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
"#{location.protocol}//#{ImageHost.host()}/#{boardID}/#{data.tim}#{data.ext}"
height: data.h

View File

@ -7,6 +7,8 @@ ImageHost =
host: ->
if @useFaster then 'i.4cdn.org' else 'is.4chan.org'
flashHost: ->
'i.4cdn.org'
thumbHost: ->
'i.4cdn.org'
test: (hostname) ->

View File

@ -176,7 +176,7 @@ class Fetcher
name: data.media.media_filename
url: data.media.media_link or data.media.remote_media_link or
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
"#{location.protocol}//#{ImageHost.host()}/#{@boardID}/#{encodeURIComponent data.media.media_orig}"
height: data.media.media_h