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 =
|
||||
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
|
||||
|
||||
@ -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) ->
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user