|  01-25-2015, 11:18 PM | #16 | |
| Ex-Helpdesk Junkie            Posts: 19,421 Karma: 85400180 Join Date: Nov 2012 Location: The Beaten Path, USA, Roundworld, This Side of Infinity Device: Kindle Touch fw5.3.7 (Wifi only) | Quote: 
 Meanwhile I do it by hand. | |
|   |   | 
|  01-26-2015, 10:04 AM | #17 | |
| Grand Sorcerer            Posts: 6,686 Karma: 12595249 Join Date: Jun 2009 Location: Madrid, Spain Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2 | Quote: 
 | |
|   |   | 
|  01-26-2015, 10:49 AM | #18 | 
| Ex-Helpdesk Junkie            Posts: 19,421 Karma: 85400180 Join Date: Nov 2012 Location: The Beaten Path, USA, Roundworld, This Side of Infinity Device: Kindle Touch fw5.3.7 (Wifi only) | 
			
			I don't think that hook makes the original filename (from the add folder) available. Someday I might want to rewrite the add_book code to handle custom metadata types and allow keeping the original metadata but overriding with filename-regex metadata. | 
|   |   | 
|  01-26-2015, 10:56 AM | #19 | |
| null operator (he/him)            Posts: 22,009 Karma: 30277294 Join Date: Mar 2012 Location: Sydney Australia Device: none | Quote: 
 One question though - is the path_to_ebook that the onPostImport method gets the path to the file being added or the path to the file that's now in the library -- i.e is it \downloads\ebooks\fred_1234A54.epub or is it \library\author\book (428)\book - author.epub. My impression is that it's the latter. I should download the source, not so I can run from it or modify it - merely to look at it. I'd rather look at it locally than via a browser. BR | |
|   |   | 
|  01-26-2015, 10:58 AM | #20 | 
| Ex-Helpdesk Junkie            Posts: 19,421 Karma: 85400180 Join Date: Nov 2012 Location: The Beaten Path, USA, Roundworld, This Side of Infinity Device: Kindle Touch fw5.3.7 (Wifi only) | 
			
			Exactly -- I believe it is the path to the book in the library. i.e. after a book is imported, you can auto-run things on the new entry.
		 | 
|   |   | 
|  01-26-2015, 11:03 AM | #21 | |
| Grand Sorcerer            Posts: 6,686 Karma: 12595249 Join Date: Jun 2009 Location: Madrid, Spain Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2 | Quote: 
  I'll make some tests and, if yo're right, I'll try to do a "both parts" plugin... | |
|   |   | 
|  01-26-2015, 11:17 AM | #22 | 
| null operator (he/him)            Posts: 22,009 Karma: 30277294 Join Date: Mar 2012 Location: Sydney Australia Device: none | 
			
			The 'logical' time to get the path to the file being imported would be in a before_import method, which would squirrel it away for use by a post_import method.  Sorry about the terminology, but I'm in time warp between smalltalk and ada   BR | 
|   |   | 
|  01-26-2015, 11:19 AM | #23 | 
| Grand Sorcerer            Posts: 6,686 Karma: 12595249 Join Date: Jun 2009 Location: Madrid, Spain Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2 | 
			
			I totally agree with you, but I'm not sure I can make it to run and postimport at the same time   . Ada, what a nice old times   Last edited by Terisa de morgan; 01-26-2015 at 11:22 AM. | 
|   |   | 
|  01-26-2015, 01:48 PM | #24 | 
| Groupie  Posts: 171 Karma: 10 Join Date: Dec 2008 Device: Likebook Mars | |
|   |   | 
|  | 
| Thread Tools | Search this Thread | 
| 
 | 
|  Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| Manage Saved Searchs not working | HFC3 | Library Management | 4 | 07-07-2013 05:28 PM |