[facebook] raise AuthRequired for profiles requiring cookies (#7962)
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
# published by the Free Software Foundation.
|
||||
|
||||
from gallery_dl.extractor import facebook
|
||||
from gallery_dl import exception
|
||||
import datetime
|
||||
|
||||
|
||||
@@ -65,6 +66,13 @@ __tests__ = (
|
||||
"#count" : 0,
|
||||
},
|
||||
|
||||
{
|
||||
"#url" : "https://www.facebook.com/Forgetmen0w/photos",
|
||||
"#comment" : "'This content isn't available right now'",
|
||||
"#class" : facebook.FacebookPhotosExtractor,
|
||||
"#exception": exception.AuthRequired,
|
||||
},
|
||||
|
||||
{
|
||||
"#url" : "https://www.facebook.com/facebook/avatar",
|
||||
"#class" : facebook.FacebookAvatarExtractor,
|
||||
|
||||
Reference in New Issue
Block a user