tumblr_downloader: ignore backfill ads for post queries

addresses issue #4379
This commit is contained in:
bog_4t 2022-02-05 00:37:05 -05:00
parent ec1581926f
commit ff96316bef
1 changed files with 1 additions and 1 deletions

View File

@ -113,7 +113,7 @@ class TumblrAPI(object):
if self.cw and not self.cw.alive:
break
data = self.call(path, qs, default_qs=default_qs)
for post in data['posts']:
for post in (post for post in data['posts'] if post['object_type'] != 'backfill_ad'):
id_ = post['id']
if id_ in ids:
self.print_('duplicate: {}'.format(id_))