View Single Post
Old 04-08-2023, 04:57 AM   #2
Comfy.n
want to learn what I want
Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.
 
Posts: 1,615
Karma: 7891011
Join Date: Sep 2020
Device: none
Quote:
Originally Posted by Katja_hbg View Post
All my books downloaded from Amazon get the addition "(German Edition)" in the title. Currently I remove that by a search/replace.

But I would prefer to add such a rule in the Book-add function and in Metadata-download function like tags, author and publisher.
Hi, I just leave this option in screenshot below checked: "Read Metadata from file contents".

Click image for larger version

Name:	MWSnap 2023-04-08, 05_40_43.png
Views:	118
Size:	22.0 KB
ID:	200866

Otherwise I *think* you'll need to use a Regular Expression, such as the one I found in this post:

https://www.mobileread.com/forums/sh...6&postcount=14

Code:
^((?P<author>([^\-_0-9]+)(?=\s*-\s*)(?!\s*-\s*[0-9.]+)|\b))(\s*-\s*)?(\[?(?P<series>[^0-9\-]+) (- )?(?P<series_index>[0-9.]+)\]?\s*-\s*)?(?P<title>[a-zA-Z1-9 ]+).+
Look forward to see other members input, as I find regex so intriguing

edit: I think I wrongly presumed that the (German Edition) bit was originating from the filename...

Last edited by Comfy.n; 04-08-2023 at 06:58 AM.
Comfy.n is offline   Reply With Quote