Skip to content

Commit

Permalink
Support new web_links attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
lordwelch committed Mar 9, 2024
1 parent ca7a10f commit 027e6d2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions comicinfoxml.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def __init__(self, version: str) -> None:
'month',
'year',
'language',
'web_link',
'web_links',
'format',
'manga',
'black_and_white',
Expand Down Expand Up @@ -237,7 +237,7 @@ def assign(cr_entry: str, md_entry: Any) -> None:
assign('Month', md.month)
assign('Year', md.year)
assign('LanguageISO', md.language)
assign('Web', md.web_link)
assign('Web', ' '.join(u.url for u in md.web_links))
assign('Format', md.format)
assign('Manga', md.manga)
assign('BlackAndWhite', 'Yes' if md.black_and_white else None)
Expand Down Expand Up @@ -323,7 +323,7 @@ def get(name: str) -> str | None:
md.month = utils.xlate_int(get('Month'))
md.year = utils.xlate_int(get('Year'))
md.language = utils.xlate(get('LanguageISO'))
md.web_link = utils.xlate(get('Web'))
md.web_links = utils.split_urls(utils.xlate(get('Web')))
md.format = utils.xlate(get('Format'))
md.manga = utils.xlate(get('Manga'))
md.maturity_rating = utils.xlate(get('AgeRating'))
Expand Down

0 comments on commit 027e6d2

Please sign in to comment.