mirror of
https://github.com/evilhero/mylar
synced 2024-12-22 07:42:24 +00:00
FIX:(#2355) Fix for incorrectly identifying some series as One-Shot instead of Print
This commit is contained in:
parent
32bacb4e30
commit
356ecf0dca
1 changed files with 3 additions and 3 deletions
|
@ -344,7 +344,7 @@ def GetComicInfo(comicid, dom, safechk=None):
|
||||||
comic['Type'] = 'Print'
|
comic['Type'] = 'Print'
|
||||||
|
|
||||||
if comic_desc != 'None' and comic['Type'] == 'None':
|
if comic_desc != 'None' and comic['Type'] == 'None':
|
||||||
if 'print' in comic_desc[:60].lower() and all(['print edition can be found' not in comic_desc.lower(), 'reprints' not in comic_desc.lower()]):
|
if 'print' in comic_desc[:60].lower() and all(['for the printed edition' not in comic_desc.lower(), 'print edition can be found' not in comic_desc.lower(), 'reprints' not in comic_desc.lower()]):
|
||||||
comic['Type'] = 'Print'
|
comic['Type'] = 'Print'
|
||||||
elif 'digital' in comic_desc[:60].lower() and 'digital edition can be found' not in comic_desc.lower():
|
elif 'digital' in comic_desc[:60].lower() and 'digital edition can be found' not in comic_desc.lower():
|
||||||
comic['Type'] = 'Digital'
|
comic['Type'] = 'Digital'
|
||||||
|
@ -352,10 +352,10 @@ def GetComicInfo(comicid, dom, safechk=None):
|
||||||
comic['Type'] = 'TPB'
|
comic['Type'] = 'TPB'
|
||||||
elif 'hardcover' in comic_desc[:60].lower() and 'hardcover can be found' not in comic_desc.lower():
|
elif 'hardcover' in comic_desc[:60].lower() and 'hardcover can be found' not in comic_desc.lower():
|
||||||
comic['Type'] = 'HC'
|
comic['Type'] = 'HC'
|
||||||
elif any(['one-shot' in comic_desc[:60].lower(), 'one shot' in comic_desc[:60].lower()]) and any(['can be found' not in comic_desc.lower(), 'following the' not in comic_desc.lower()]):
|
elif any(['one-shot' in comic_desc[:60].lower(), 'one shot' in comic_desc[:60].lower()]) and any(['can be found' not in comic_desc.lower(), 'following the' not in comic_desc.lower(), 'after the' not in comic_desc.lower()]):
|
||||||
i = 0
|
i = 0
|
||||||
comic['Type'] = 'One-Shot'
|
comic['Type'] = 'One-Shot'
|
||||||
avoidwords = ['preceding', 'after the special', 'following the']
|
avoidwords = ['preceding', 'after the', 'following the']
|
||||||
while i < 2:
|
while i < 2:
|
||||||
if i == 0:
|
if i == 0:
|
||||||
cbd = 'one-shot'
|
cbd = 'one-shot'
|
||||||
|
|
Loading…
Reference in a new issue