mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
GwR changes for series sorting
This commit is contained in:
parent
cea60d5fd8
commit
e7c07ee25e
@ -80,7 +80,7 @@
|
|||||||
<widget class="QLabel" name="label_6">
|
<widget class="QLabel" name="label_6">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Regex tips:
|
<string>Regex tips:
|
||||||
- The default regex - \[[\w]*\] - excludes genre tags of the form [tag], e.g., [Amazon Freebie]
|
- The default regex - \[[\w ]*\] - excludes genre tags of the form [tag], e.g., [Amazon Freebie]
|
||||||
- A regex pattern of a single dot excludes all genre tags, generating no Genre Section</string>
|
- A regex pattern of a single dot excludes all genre tags, generating no Genre Section</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="wordWrap">
|
<property name="wordWrap">
|
||||||
|
@ -1009,7 +1009,7 @@ class EPUB_MOBI(CatalogPlugin):
|
|||||||
elif x['series'] < y['series']:
|
elif x['series'] < y['series']:
|
||||||
return -1
|
return -1
|
||||||
elif not x['series'] and not y['series']:
|
elif not x['series'] and not y['series']:
|
||||||
if x['title'] > y['title']:
|
if self.generateSortTitle(x['title']) > self.generateSortTitle(y['title']):
|
||||||
return 1
|
return 1
|
||||||
else:
|
else:
|
||||||
return -1
|
return -1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user