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) ->
|
||||
return unless req.status
|
||||
|
||||
{key, uid, link} = data
|
||||
{key, uid} = data
|
||||
{status} = req
|
||||
service = Embedding.types[key].title
|
||||
|
||||
@ -229,7 +229,7 @@ Embedding =
|
||||
when 404
|
||||
text = "Not Found"
|
||||
when 403
|
||||
text = if service.ignore403 then link.textContent else "Forbidden or Private"
|
||||
text = "Forbidden or Private"
|
||||
else
|
||||
text = "#{status}'d"
|
||||
Embedding.cb.titleText text, data
|
||||
@ -545,7 +545,6 @@ Embedding =
|
||||
el
|
||||
title:
|
||||
batchSize: 50
|
||||
ignore403: true
|
||||
api: (uids) ->
|
||||
ids = encodeURIComponent uids.join(',')
|
||||
key = '<%= meta.youtubeAPIKey %>'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user