Update wsj.recipe

mag on Saturday
This commit is contained in:
unkn0w7n 2024-09-02 17:52:18 +05:30
parent 039d37ff68
commit a4aa8f7780

View File

@ -179,7 +179,7 @@ class WSJ(BasicNewsRecipe):
if '-pages_' in k: if '-pages_' in k:
section = k.split('-pages_')[0].replace('_', ' ') section = k.split('-pages_')[0].replace('_', ' ')
if 'MAGAZINE' in section: if 'MAGAZINE' in section:
if not dt.day == 1: if not (dt.day in {1, 2, 3, 4, 5, 6, 7} and dt.weekday() == 5):
continue continue
self.log('Loading Magazine section') self.log('Loading Magazine section')
self.log(section) self.log(section)