Support is.4chan.org in post building. #1141
This commit is contained in:
parent
3de942aab0
commit
f0f962ccdd
@ -66,7 +66,7 @@ Build =
|
|||||||
url: if boardID is 'f'
|
url: if boardID is 'f'
|
||||||
"#{location.protocol}//i.4cdn.org/#{boardID}/#{encodeURIComponent data.filename}#{data.ext}"
|
"#{location.protocol}//i.4cdn.org/#{boardID}/#{encodeURIComponent data.filename}#{data.ext}"
|
||||||
else
|
else
|
||||||
"#{location.protocol}//i.4cdn.org/#{boardID}/#{data.tim}#{data.ext}"
|
"#{location.protocol}//#{if data.no % 3 then 'i.4cdn.org' else 'is.4chan.org'}/#{boardID}/#{data.tim}#{data.ext}"
|
||||||
height: data.h
|
height: data.h
|
||||||
width: data.w
|
width: data.w
|
||||||
MD5: data.md5
|
MD5: data.md5
|
||||||
|
|||||||
@ -175,7 +175,10 @@ class Fetcher
|
|||||||
o.file =
|
o.file =
|
||||||
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
|
||||||
"#{location.protocol}//i.4cdn.org/#{@boardID}/#{encodeURIComponent data.media[if @boardID is 'f' then 'media_filename' else 'media_orig']}"
|
if @boardID is 'f'
|
||||||
|
"#{location.protocol}//i.4cdn.org/#{@boardID}/#{encodeURIComponent data.media.media_filename}"
|
||||||
|
else
|
||||||
|
"#{location.protocol}//#{if data.no % 3 then 'i.4cdn.org' else 'is.4chan.org'}/#{@boardID}/#{encodeURIComponent data.media.media_orig}"
|
||||||
height: data.media.media_h
|
height: data.media.media_h
|
||||||
width: data.media.media_w
|
width: data.media.media_w
|
||||||
MD5: data.media.media_hash
|
MD5: data.media.media_hash
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user