Remove another type of gallery from output

This commit is contained in:
Tadej 2022-02-13 01:17:53 +01:00 committed by GitHub
parent a04033e2e7
commit ba06dedeb4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,6 +16,7 @@ class MMCRTV(BasicNewsRecipe):
no_stylesheets = True
use_embedded_content = False
encoding = 'utf-8'
publication_type = 'newspaper'
cover_url = 'https://img.rtvslo.si/_static/novi/logo/tvmmc-light-bg.png'
@ -25,6 +26,7 @@ class MMCRTV(BasicNewsRecipe):
]
remove_tags=[
dict(name='div', attrs={'class':'gallery-grid'}),
dict(name='div', attrs={'class':'gallery'}),
dict(name='div', attrs={'class':'exposed-article'}),
dict(name='div', attrs={'class':'d-lg-none'}),
dict(name='div', attrs={'class':'section-heading'}),