mirror of https://gitlab.com/bashrc2/epicyon
main
commit
dceea5eec1
|
@ -722,7 +722,7 @@ def _command_options() -> None:
|
||||||
default=None,
|
default=None,
|
||||||
help='Remove a filter on a particular word or phrase')
|
help='Remove a filter on a particular word or phrase')
|
||||||
parser.add_argument('--domainmax', dest='domain_max_posts_per_day',
|
parser.add_argument('--domainmax', dest='domain_max_posts_per_day',
|
||||||
type=int, default=8640,
|
type=int, default=16000,
|
||||||
help='Maximum number of received posts ' +
|
help='Maximum number of received posts ' +
|
||||||
'from a domain per day')
|
'from a domain per day')
|
||||||
parser.add_argument('--accountmax', dest='account_max_posts_per_day',
|
parser.add_argument('--accountmax', dest='account_max_posts_per_day',
|
||||||
|
|
|
@ -1292,7 +1292,7 @@ def get_post_attachments_as_html(base_dir: str,
|
||||||
gallery_str += '<div class="gallery">\n'
|
gallery_str += '<div class="gallery">\n'
|
||||||
if not is_muted:
|
if not is_muted:
|
||||||
gallery_str += ' <a href="' + image_url + '">\n'
|
gallery_str += ' <a href="' + image_url + '">\n'
|
||||||
if media_license or media_creator:
|
if media_license and media_creator:
|
||||||
gallery_str += ' <figure>\n'
|
gallery_str += ' <figure>\n'
|
||||||
gallery_str += \
|
gallery_str += \
|
||||||
' <img loading="lazy" ' + \
|
' <img loading="lazy" ' + \
|
||||||
|
@ -1300,7 +1300,7 @@ def get_post_attachments_as_html(base_dir: str,
|
||||||
image_url + '" alt="" title="">\n'
|
image_url + '" alt="" title="">\n'
|
||||||
gallery_str += ' </a>\n'
|
gallery_str += ' </a>\n'
|
||||||
license_str = ''
|
license_str = ''
|
||||||
if media_license:
|
if media_license and media_creator:
|
||||||
if '://' in media_license:
|
if '://' in media_license:
|
||||||
license_str += \
|
license_str += \
|
||||||
'<a href="' + media_license + \
|
'<a href="' + media_license + \
|
||||||
|
@ -1308,11 +1308,7 @@ def get_post_attachments_as_html(base_dir: str,
|
||||||
'rel="nofollow noopener noreferrer">©</a>'
|
'rel="nofollow noopener noreferrer">©</a>'
|
||||||
else:
|
else:
|
||||||
license_str += media_license
|
license_str += media_license
|
||||||
if media_creator:
|
license_str += ' ' + media_creator
|
||||||
if license_str:
|
|
||||||
license_str += ' '
|
|
||||||
license_str += media_creator
|
|
||||||
if media_license or media_creator:
|
|
||||||
gallery_str += \
|
gallery_str += \
|
||||||
' ' + license_str + \
|
' ' + license_str + \
|
||||||
'</figcaption></figure>\n'
|
'</figcaption></figure>\n'
|
||||||
|
@ -1378,17 +1374,16 @@ def get_post_attachments_as_html(base_dir: str,
|
||||||
'<div id="' + post_id + '">\n'
|
'<div id="' + post_id + '">\n'
|
||||||
|
|
||||||
attachment_str += '<a href="' + image_url + '" tabindex="10">'
|
attachment_str += '<a href="' + image_url + '" tabindex="10">'
|
||||||
if media_license or media_creator:
|
if media_license and media_creator:
|
||||||
attachment_str += '<figure>'
|
attachment_str += '<figure>'
|
||||||
attachment_str += \
|
attachment_str += \
|
||||||
'<img loading="lazy" decoding="async" ' + \
|
'<img loading="lazy" decoding="async" ' + \
|
||||||
'src="' + image_url + \
|
'src="' + image_url + \
|
||||||
'" alt="' + image_description + '" title="' + \
|
'" alt="' + image_description + '" title="' + \
|
||||||
image_description + '" class="attachment"></a>\n'
|
image_description + '" class="attachment"></a>\n'
|
||||||
if media_license or media_creator:
|
if media_license and media_creator:
|
||||||
attachment_str += '<figcaption>'
|
|
||||||
license_str = ''
|
license_str = ''
|
||||||
if media_license:
|
attachment_str += '<figcaption>'
|
||||||
if '://' in media_license:
|
if '://' in media_license:
|
||||||
license_str += \
|
license_str += \
|
||||||
'<a href="' + media_license + \
|
'<a href="' + media_license + \
|
||||||
|
@ -1396,11 +1391,7 @@ def get_post_attachments_as_html(base_dir: str,
|
||||||
'rel="nofollow noopener noreferrer">©</a>'
|
'rel="nofollow noopener noreferrer">©</a>'
|
||||||
else:
|
else:
|
||||||
license_str += media_license
|
license_str += media_license
|
||||||
if media_creator:
|
license_str += ' ' + media_creator
|
||||||
if license_str:
|
|
||||||
license_str += ' '
|
|
||||||
license_str += media_creator
|
|
||||||
if media_license or media_creator:
|
|
||||||
attachment_str += license_str + '</figcaption></figure>'
|
attachment_str += license_str + '</figcaption></figure>'
|
||||||
|
|
||||||
if minimize_images:
|
if minimize_images:
|
||||||
|
|
Loading…
Reference in New Issue