Add native gallery catch

This commit is contained in:
Erik Johnson 2021-01-07 10:40:33 +01:00 committed by GitHub
parent 825fc5da53
commit c40ee547b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -332,6 +332,9 @@ def matchWithDownloader(submission):
elif 'gifdeliverynetwork' in submission.domain:
return {'TYPE': 'gifdeliverynetwork'}
if 'reddit.com/gallery' in submission.url: #EBJ
return {'TYPE': 'gallery'}
elif submission.is_self and 'self' not in GLOBAL.arguments.skip:
return {'TYPE': 'self',
'CONTENT': submission.selftext}