This commit is contained in:
Kovid Goyal 2025-07-10 21:03:05 +05:30
parent 5889505d92
commit f2043877ac
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 3 additions and 2 deletions

View File

@ -173,8 +173,9 @@ class NoArticles(Exception):
def get_content(url_): def get_content(url_):
from calibre import browser
from mechanize import Request from mechanize import Request
from calibre import browser
headers = { headers = {
'User-Agent': 'TheEconomist-Liskov-android', 'User-Agent': 'TheEconomist-Liskov-android',
'accept': 'multipart/mixed; deferSpec=20220824, application/json', 'accept': 'multipart/mixed; deferSpec=20220824, application/json',

View File

@ -98,7 +98,7 @@ def create_tag_class(category, fm):
if ( if (
( (
( category == 'authors' or (category == 'authors' or
(cat['display'].get('is_names', False) and (cat['display'].get('is_names', False) and
cat['is_custom'] and cat['is_multiple'] and cat['is_custom'] and cat['is_multiple'] and
dt == 'text') dt == 'text')