View Single Post
Old 08-23-2010, 04:07 AM   #3
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 11,741
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by volkermord View Post
So here's my setup:
Alphabet Letter as parent folder,
Author as sub folder
ebooks (with the name structure of <Series> - <# in series> - <Title> =or= <Title>

So I want to know if it's possible to pull the Author from the folder name, the Series, # and Title from the filenames (and for those without a series get the Title in the right location, instead of trying to use the title as the series)
When importing books, check the option preferences -> adding books -> Read metadata only from file name, then use the regular expression
Code:
./(?P<author>.*)/((?P<series>.*) - (?P<series_index>.*) - )?(?P<title>.*)
The regexp matches correctly when tested with the file names
Code:
s/john smith/Some Series - 1 - Title.epub
and
Code:
s/john smith/Title.epub
chaley is offline   Reply With Quote