|  07-21-2013, 07:40 PM | #1546 | 
| Plugin Developer            Posts: 7,125 Karma: 5005503 Join Date: Dec 2011 Location: Midwest USA Device: Kobo Clara Colour running KOReader | 
			
			It looks like fanfiktion.de has changed the URLs they use for their own stories a little bit, adding the story name after the chapter number. Try the attached version, it should works better for you. UPDATE Jul 23, 2013 - Remove obsolete beta versions Last edited by JimmXinu; 07-23-2013 at 04:27 PM. Reason: Remove obsolete beta versions | 
|   | 
|  07-22-2013, 12:30 AM | #1547 | 
| Groupie            Posts: 164 Karma: 3100 Join Date: Sep 2011 Device: Kobo Auro H2O, PRS-T1 | 
			
			I have most of the coding done for my end tags, but I had a few questions. 1. In order to get the end tags to the end of a ship when there is more than one end tag, I had to duplicate a couple lines of code. Code: ships=> (\(Family\)|\(Friendship\))(.*?)$=>\2 \1 ships=> (\(Family\)|\(Friendship\))(.*?)$=>\2 \1 ships_LIST=>(\(Family\)|\(Friendship\))( )?(.*?),=>\3 \1, ships_LIST=>(\(Family\)|\(Friendship\))( )?(.*?),=>\3 \1, 2. When I put in code for putting the end tag at the end for the final ship in the list, I had to delete a space from the code to make it work. Code: ships_LIST=>,(.*?)( \(Family\)| \(Friendship\))/(.*?)$=>,\1/\3\2 ships_LIST=>,(.*?)(\(Family\)|\(Friendship\))/(.*?)$=>,\1/\3 \2 Code: ships_LIST=>,(.*?)(( )?\(Family\)|( )?\(Friendship\))/(.*?)$=>,\1/\3 \2 Is there a way I can streamline these two lines of code? 3. Finally, I used this code to separate end tags into different ships: Code: ships_LIST=>(.*?) \((.*?)\) \((.*?)\),=>\1 (\2), \1 (\3), ships_LIST=>,(.*?) \((.*?)\) \((.*?)\)$=>,\1 (\2), \1 (\3) The second line, however, deleted the second end tag. 'C/D (Friend) (Family)' became: 'C/D (Friend)'. I'm not sure why it deleted the second end tag. I also tested '\1 (\3), \1 (\2)' and still had the second tag deleted. I'm not really sure how to fix the last line to get the last ship in the list fixed. Any help would be appreciated. | 
|   | 
|  07-22-2013, 12:54 AM | #1548 | |||
| Plugin Developer            Posts: 7,125 Karma: 5005503 Join Date: Dec 2011 Location: Midwest USA Device: Kobo Clara Colour running KOReader | Quote: 
 Since you're matching the rest of the entry too, I suspect multiple lines may be as good as it gets. Quote: 
 As for streamlining, instead of two lines, one ending in ", " and one with "$", try "(, |$)". Quote: 
 | |||
|   | 
|  07-22-2013, 04:15 AM | #1549 | 
| Occassional Beta Tester            Posts: 284 Karma: 3516 Join Date: Nov 2010 Location: Hungary Device: none | |
|   | 
|  07-22-2013, 07:36 PM | #1550 | ||
| Groupie            Posts: 164 Karma: 3100 Join Date: Sep 2011 Device: Kobo Auro H2O, PRS-T1 | Quote: 
 Quote: 
 The first line of code works for all other ships. It looks for a word in parenthesis and then places it at the end of the ship. Code: ships_LIST=>\((.*?)\)( )?(.*?),=>\3 (\1), ships_LIST=>\((.*?)\)( )?(.*?)$=>\3 (\1) Is there a reason that the last line of code is moving the tag I want, but is not deleting it from the original position? | ||
|   | 
|  07-22-2013, 09:31 PM | #1551 | |
| Plugin Developer            Posts: 7,125 Karma: 5005503 Join Date: Dec 2011 Location: Midwest USA Device: Kobo Clara Colour running KOReader | Quote: 
 (.*?) matches (non-greedy) anything--including additional (something) strings. I'd experiment with using something like ([^\(]*?)--match (non-greedy) anything except open paren. Frankly, there's a lot of trial and error in using complex regular expressions, even for experienced users. | |
|   | 
|  07-23-2013, 04:01 PM | #1552 | |
| Member  Posts: 10 Karma: 10 Join Date: Jul 2013 Device: kindle fire and other android | Quote: 
 Hi Jimm, thank you for help.  Perfect!! Last edited by JOJO1; 07-23-2013 at 04:09 PM. | |
|   | 
|  07-23-2013, 04:24 PM | #1553 | 
| Plugin Developer            Posts: 7,125 Karma: 5005503 Join Date: Dec 2011 Location: Midwest USA Device: Kobo Clara Colour running KOReader | 
			
			Version 1.7.32 - 23 Jul 2013 
 | 
|   | 
|  07-24-2013, 11:07 AM | #1554 | 
| Plugin Developer            Posts: 7,125 Karma: 5005503 Join Date: Dec 2011 Location: Midwest USA Device: Kobo Clara Colour running KOReader | 
			
			Latest version has a bug with saving plugin settings on calibre prior to 0.9.39.  This version corrects it. UPDATE Jul 28, 2013 - Remove obsolete beta versions Last edited by JimmXinu; 07-28-2013 at 06:02 PM. Reason: Remove obsolete beta versions | 
|   | 
|  07-24-2013, 04:09 PM | #1555 | |
| Member  Posts: 10 Karma: 10 Join Date: Jul 2013 Device: kindle fire and other android | 
				
				FanFiktion.de - wrong Metadatas
			 Quote: 
 now there is another problem with "fanfiktion.de". The downloader add the right Story, bud the Metadatas are every time from the first Story of the author. I think i need your help again. | |
|   | 
|  07-24-2013, 05:46 PM | #1556 | |
| Plugin Developer            Posts: 7,125 Karma: 5005503 Join Date: Dec 2011 Location: Midwest USA Device: Kobo Clara Colour running KOReader | Quote: 
 This is another problem caused by fanfiktion.de changing their URLs to include story name. The attached version should fix it. UPDATE Jul 28, 2013 - Remove obsolete beta versions Last edited by JimmXinu; 07-28-2013 at 06:02 PM. Reason: Remove obsolete beta versions | |
|   | 
|  07-24-2013, 06:40 PM | #1557 | |
| Member  Posts: 10 Karma: 10 Join Date: Jul 2013 Device: kindle fire and other android | Quote: 
  It works perfekt. Greetings from Germany Thank You | |
|   | 
|  07-25-2013, 06:16 PM | #1558 | 
| Enthusiast  Posts: 28 Karma: 10 Join Date: Aug 2010 Device: Kobo GloHD | 
			
			I'm having problems with a couple of stories from Stories of Arda (http://www.storiesofarda.com), both by the same author. http://www.storiesofarda.com/chapter...w.asp?SID=4018 comes up with the error message - 'NoneType' object has no attribute 'find' whereas http://www.storiesofarda.com/chapter...w.asp?SID=5046 seems to add okay, and you get the book structure with the chapter headings, but no actual text of the story. I tried http://www.storiesofarda.com/chapter...w.asp?SID=6731 by another author, and it worked fine. Is it a problem with the website, or is there anything I can do to fix it? Thank you for any help you can give. | 
|   | 
|  07-25-2013, 09:47 PM | #1559 | ||
| Plugin Developer            Posts: 7,125 Karma: 5005503 Join Date: Dec 2011 Location: Midwest USA Device: Kobo Clara Colour running KOReader | Quote: 
 However, for that particular story, that only gets us as far as the next issue: Quote: 
 However, I need you to test several stories by other authors on storiesofarda.com to make sure it didn't break any of them. (I don't read storiesofarda.com.) Attached is a test version with fixes. UPDATE Jul 28, 2013 - Remove obsolete beta versions Last edited by JimmXinu; 07-28-2013 at 09:42 PM. | ||
|   | 
|  07-26-2013, 03:27 PM | #1560 | 
| Enthusiast  Posts: 28 Karma: 10 Join Date: Aug 2010 Device: Kobo GloHD | 
			
			Thank you very much for getting on it so promptly. I've tried your version with the stories I already listed, and several others from the archive by different authors, and they all seem to be fine. (I haven't read every word, but I've scrolled through them and not seen any errors.)
		 | 
|   | 
|  | 
| Thread Tools | Search this Thread | 
| 
 | 
|  Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| [GUI Plugin] Count Pages | kiwidude | Plugins | 1874 | 10-17-2025 03:22 PM | 
| [GUI Plugin] Resize Cover | kiwidude | Plugins | 100 | 07-10-2025 08:50 AM | 
| [GUI Plugin] Find Duplicates | kiwidude | Plugins | 1124 | 04-18-2025 09:19 AM | 
| [GUI Plugin] Open With | kiwidude | Plugins | 404 | 02-21-2025 05:42 AM | 
| [GUI Plugin] Plugin Updater **Deprecated** | kiwidude | Plugins | 159 | 06-19-2011 12:27 PM |