kopia lustrzana https://github.com/bellingcat/auto-archiver
Merge pull request #28 from djhmateer/yt-sub
commit
3c0811a80d
|
@ -30,6 +30,13 @@ class YoutubeDLArchiver(Archiver):
|
|||
if info.get('is_live', False):
|
||||
logger.warning("Live streaming media, not archiving now")
|
||||
return ArchiveResult(status="Streaming media")
|
||||
if 'twitter.com' in netloc:
|
||||
if 'https://twitter.com/' in info['webpage_url']:
|
||||
logger.info('Found https://twitter.com/ in the download url from Twitter')
|
||||
else:
|
||||
logger.info('Found a linked video probably in a link in a tweet - not getting that video as there may be images in the tweet')
|
||||
return False
|
||||
|
||||
|
||||
if check_if_exists:
|
||||
if 'entries' in info:
|
||||
|
|
Ładowanie…
Reference in New Issue