07-01-2024, 04:51 PM | #1 |
Junior Member
Posts: 1
Karma: 10
Join Date: Jan 2023
Device: none
|
I'm trying to get some information from pdf file names
Here is what I started with: First_for_Women_-_April_8_2024.pdf I removed all the _ from the current file names and switched them with spaces and I added some numbers for the dates. So now I have First for Women - April 08 2024.pdf. I have changed all of the files for First for Women magazines there are over 100.
So what I'm trying to do is get all of the main magazines into there own folders such as follows. First for Women which is a folder name for the main magazines. And then there will be folders titled after years. Like 2017, 2018, 2019, 2020, 2021, 2022, 2023, and 2024. And I will have the organized by year. I plan to do the same with other magazines based on magazines by folder as well. So here is what I want to do I want to take the date from the file name and use them for tags as well as metadata for dates as well. I have month based on spelling such as April then there is a space with a date with double digits even for something like 3 its 03 and then I also have year as a 4 digit number. How do I take the date and keep it from file name and can I use the full dates. Or should it be changed to something like April,2024 or 04,2024. How should I do this. |
07-01-2024, 09:08 PM | #2 |
null operator (he/him)
Posts: 21,012
Karma: 27620706
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Please read the following and the links therein ==>> Want to change folder structure or file names in the Calibre library?
In essence the structure of the library subfolders is based on Author [first] and Title and the actual names of the folders and files are algorithmically determined. BR |
07-14-2024, 01:24 PM | #3 | |
Zealot
Posts: 112
Karma: 53342
Join Date: Jun 2013
Device: Sony PRS-600
|
Quote:
|
|
07-14-2024, 01:36 PM | #4 | |
Zealot
Posts: 112
Karma: 53342
Join Date: Jun 2013
Device: Sony PRS-600
|
Quote:
As BetterRed pointed out, calibre's file locations are managed by calibre. You can't change them. What you can do, though, and what I think you're trying to do, is parse the dates out of the file names (on load would be best/easiest, but you can get at them after the fact also) and put them in another field. The book's 'date' field is not a bad choice. (BTW, you don't need to remove underscores from file names, calibre does that already on loading.) In Preferences -> Adding Books, the regular expression Code:
(?P<title>.+) - (?P<published>[^_]+) Code:
Title: First for Women Published: 2024-04-08 Then when you load files these two columns will be automatically extracted and stored. You might later want to go back and edit the titles to do things such as
If you want to export the files and have them write out to custom paths, that also is something you can do... but I won't got into that right now. |
|
Tags |
dates, metadata |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
PDF Files; Metadata & File Names; Adding Physical Book Info | Thunder_Struck | Calibre | 4 | 02-14-2019 12:16 AM |
File names in File explorer | vvilmos | Onyx Boox | 5 | 10-05-2012 08:40 AM |
Adobe acrobat PDF file names | psionx | Sony Reader | 6 | 10-10-2009 09:02 PM |
PDF File Names | andyafro | Workshop | 1 | 10-31-2008 11:58 PM |
File System Information | Adam B. | iRex | 0 | 10-29-2008 09:46 AM |