Revert "Never mark Youtube videos as 'Forbidden or Private' since 403 errors are most likely from API throttling. #2327"
This reverts commit 17575a285f4804565ee24f5eaec2b1fafaa9e451.
This commit is contained in:
parent
ac8adbd496
commit
5b805c7b0e
@ -215,7 +215,7 @@ Embedding =
|
|||||||
title: (req, data) ->
|
title: (req, data) ->
|
||||||
return unless req.status
|
return unless req.status
|
||||||
|
|
||||||
{key, uid, link} = data
|
{key, uid} = data
|
||||||
{status} = req
|
{status} = req
|
||||||
service = Embedding.types[key].title
|
service = Embedding.types[key].title
|
||||||
|
|
||||||
@ -229,7 +229,7 @@ Embedding =
|
|||||||
when 404
|
when 404
|
||||||
text = "Not Found"
|
text = "Not Found"
|
||||||
when 403
|
when 403
|
||||||
text = if service.ignore403 then link.textContent else "Forbidden or Private"
|
text = "Forbidden or Private"
|
||||||
else
|
else
|
||||||
text = "#{status}'d"
|
text = "#{status}'d"
|
||||||
Embedding.cb.titleText text, data
|
Embedding.cb.titleText text, data
|
||||||
@ -545,7 +545,6 @@ Embedding =
|
|||||||
el
|
el
|
||||||
title:
|
title:
|
||||||
batchSize: 50
|
batchSize: 50
|
||||||
ignore403: true
|
|
||||||
api: (uids) ->
|
api: (uids) ->
|
||||||
ids = encodeURIComponent uids.join(',')
|
ids = encodeURIComponent uids.join(',')
|
||||||
key = '<%= meta.youtubeAPIKey %>'
|
key = '<%= meta.youtubeAPIKey %>'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user