Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Recipes

Notices

Reply
 
Thread Tools Search this Thread
Old 08-21-2012, 04:10 AM   #1
poulardalber
Junior Member
poulardalber began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Aug 2012
Device: kindle 3
Wink Try to remove : This item was downloaded by caliber from .... and "Section Menu", "Ma

Hello,

I am new to this forum but reading you for long time, having a kindle 3 for 2 years.

I look at the recipes and your posts to understand, but it is good only when I have only to add rss url, it does not work very well, my ebooks are a bit rotten ...

I try to do a mobi (joins whith the post) without having at the end of each page;

This item was downloaded by caliber from .... and "Section Menu", "Main Menu", "Next", "Previous".

The recipe below and Attachment "TV Programs TNT_1050", it gives me a long recipe, with 40 additional pages that contain only:

This item was downloaded by caliber from .... and "Section Menu", "Main Menu", "Next", "Previous".

I would like to remove its blank pages to make an ebook cleaner and faster to read, but I can not.

I have been on: http://manual.calibre-ebook.com/news.html, but I did not succeed. (I have a hard time understanding English and serves me as google translate).

Can you help me, if it is possible to remove these pages easily ...


Thank you in advance

Merci beaucoup !
Attached Files
File Type: zip Programmes TV-TNT_1050.zip (515 Bytes, 44 views)

Last edited by poulardalber; 08-21-2012 at 05:28 AM.
poulardalber is offline   Reply With Quote
Old 08-21-2012, 05:53 AM   #2
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,552
Karma: 6021146
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
easy reference. no answer yet sorry.

For the next person who may be able to help

The recipe
Spoiler:

Quote:
class AdvancedUserRecipe1345200993(BasicNewsRecipe):
title = u'Programmes TV-TNT'
oldest_article = 1
max_articles_per_feed = 100
auto_cleanup = True

feeds = [(u'PROGRAMMES TV - Orange', u'http://programme-tv.orange.fr/rss/fluxRssProgrammeSoiree.xml?hl=fr')]

def preprocess_html(self, soup):
for alink in soup.findAll('a'):
if alink.string is not None:
tstr = alink.string
alink.replaceWith(tstr)
return soup

def get_cover_url(self):
cover_url = 'http://img98.imageshack.us/img98/7048/coverbqw.jpg'
return cover_url


And a peek at the likely data
Spoiler:

Quote:
<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<channel>
<title>Au programme ce soir sur les grandes chaines /TNT</title>
<link>http://programme-tv.orange.fr/</link>
<description><![CDATA[Retrouvez tous les programmes TV des grandes chaînes et de la TNT]]></description>
<language>fr</language>
<copyright>Orange</copyright>
<pubDate>Tue, 21 Aug 2012 01:16:24 +0200</pubDate>
<item>
<title><![CDATA[TF 1 - 20:50 - Arthur et la vengeance de Maltazard]]></title>
<category><![CDATA[Film D'aventures]]></category>
<enclosure url="http://media.programme-tv.orange.fr/Images/Programme/95x74/13937496.jpg" type="image/jpeg" length="10325" />
<link>http://programme-tv.orange.fr/programme/tf-1/2012-08-21/arthur-et-la-vengeance-de-maltazard-68170133.html</link>
<description><![CDATA[<img src="http://media.programme-tv.orange.fr/Images/Programme/95x74/13937496.jpg" width="95" height="74" align="left" border="0">&nbsp;Arthur peut enfin redescendre dans le monde des Minimoys. Il reçoit un message étrange sur un grain de riz, qui lui fait penser que Sélénia est en danger.]]></description>
<pubDate>Tue, 21 Aug 2012 20:50:00 +0200</pubDate>
</item>
<item>
<title><![CDATA[TF 1 - 22:35 - New York unité spéciale]]></title>
<category><![CDATA[Série policière]]></category>
<enclosure url="http://media.programme-tv.orange.fr/Images/Programme/95x74/36906338.jpg" type="image/jpeg" length="9469" />
<link>http://programme-tv.orange.fr/programme/tf-1/2012-08-21/new-york-unite-speciale-68170134.html</link>
<description><![CDATA[<img src="http://media.programme-tv.orange.fr/Images/Programme/95x74/36906338.jpg" width="95" height="74" align="left" border="0">&nbsp;Une jeune fille est violée chez elle par un homme rencontré un soir dans l'ascenseur de son immeuble. Quelques jours plus tard, elle le revoit dans son quartier.]]></description>
<pubDate>Tue, 21 Aug 2012 22:35:00 +0200</pubDate>
</item>
<item>
<title><![CDATA[France 2 - 20:35 - Secrets d'histoire]]></title>
<category><![CDATA[Magazine historique]]></category>
<enclosure url="http://media.programme-tv.orange.fr/Images/Programme/95x74/40569343.jpg" type="image/jpeg" length="8818" />
<link>http://programme-tv.orange.fr/programme/france-2/2012-08-21/secrets-d-histoire-68170677.html</link>
<description><![CDATA[<img src="http://media.programme-tv.orange.fr/Images/Programme/95x74/40569343.jpg" width="95" height="74" align="left" border="0">&nbsp;Le sultan Soliman a régné durant 46 ans sur l'empire ottoman, de 1520 à 1566. Il en a assuré l'expansion territoriale, au Moyen-Orient et en Europe, n'arrêtant ses armées qu'aux portes de Vienne. Il a donné à son empire un code civil et une armature législative qui devaient lui survivre à travers les siècles.]]></description>
<pubDate>Tue, 21 Aug 2012 20:35:00 +0200</pubDate>
</item>
<item>
<title><![CDATA[France 2 - 22:20 - Le vilain]]></title>
<category><![CDATA[Film Comédie]]></category>
<enclosure url="http://media.programme-tv.orange.fr/Images/Programme/95x74/13937527.jpg" type="image/jpeg" length="8835" />
<link>http://programme-tv.orange.fr/programme/france-2/2012-08-21/le-vilain-68170679.html</link>
<description><![CDATA[<img src="http://media.programme-tv.orange.fr/Images/Programme/95x74/13937527.jpg" width="95" height="74" align="left" border="0">&nbsp;Un gangster n'a pas d'autre choix que de se réfugier chez sa mère, qu'il n'a pas vue depuis vingt ans, et qui décide de le ramener dans le droit chemin.]]></description>
<pubDate>Tue, 21 Aug 2012 22:20:00 +0200</pubDate>
</item>
<item>
<title><![CDATA[France 3 - 20:35 - Jeu de dames]]></title>
<category><![CDATA[Série humoristique]]></category>
<enclosure url="http://media.programme-tv.orange.fr/Images/Programme/95x74/40737126.jpg" type="image/jpeg" length="11084" />
<link>http://programme-tv.orange.fr/programme/france-3/2012-08-21/jeu-de-dames-68171324.html</link>
<description><![CDATA[<img src="http://media.programme-tv.orange.fr/Images/Programme/95x74/40737126.jpg" width="95" height="74" align="left" border="0">&nbsp;Quatre femmes, qui ne se connaissent pas, se rencontrent lorsque leurs maris et le frère de l'une d'elles disparaissent mystérieusement. Elles décident d'enquêter.]]></description>
<pubDate>Tue, 21 Aug 2012 20:35:00 +0200</pubDate>
</item>
<item>
<title><![CDATA[France 3 - 23:45 - Hilarmonic Show]]></title>
<category><![CDATA[Spectacle Humour]]></category>
<enclosure url="http://media.programme-tv.orange.fr/Images/Programme/95x74/40980157.jpg" type="image/jpeg" length="9508" />
<link>http://programme-tv.orange.fr/programme/france-3/2012-08-21/hilarmonic-show-68171328.html</link>
<description><![CDATA[<img src="http://media.programme-tv.orange.fr/Images/Programme/95x74/40980157.jpg" width="95" height="74" align="left" border="0">&nbsp;Le Paris Symphonic Orchestra]]></description>
<pubDate>Tue, 21 Aug 2012 23:45:00 +0200</pubDate>
</item>
<item>
<title><![CDATA[Canal+ - 20:50 - Omar m'a tuer]]></title>
<category><![CDATA[Film Thriller]]></category>
<enclosure url="http://media.programme-tv.orange.fr/Images/Programme/95x74/25711794.jpg" type="image/jpeg" length="8382" />
<link>http://programme-tv.orange.fr/programme/canal/2012-08-21/omar-m-a-tuer-67101674.html</link>
<description><![CDATA[<img src="http://media.programme-tv.orange.fr/Images/Programme/95x74/25711794.jpg" width="95" height="74" align="left" border="0">&nbsp;Omar Raddad, un jardinier, est arrêté et condamné en 1994 pour le meurtre de sa patronne, commis en 1991. Il a toujours clamé son innocence, mais en vain.]]></description>
<pubDate>Tue, 21 Aug 2012 20:50:00 +0200</pubDate>
</item>

Perhaps Kovid can have a look if he gets a chance.

Last edited by twobob; 08-21-2012 at 06:03 AM.
twobob is offline   Reply With Quote
 
Advertisement
Old 08-21-2012, 06:01 AM   #3
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,552
Karma: 6021146
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
Did you try

oldest_article = 5
max_articles_per_feed = 5
auto_cleanup = True

??
twobob is offline   Reply With Quote
Old 08-21-2012, 06:16 AM   #4
poulardalber
Junior Member
poulardalber began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Aug 2012
Device: kindle 3
Hello,

Thinks a lot to respond.

For what you tell me :
And a peek at the likely data

I can't because it seems to do this everytime and will be to long.

I prefer by calibre downolading feeds once day.


I've not try :
oldest_article = 5
max_articles_per_feed = 5
auto_cleanup = True


because tv programmes are each day and there is more than 40 feeds in the feed...
poulardalber is offline   Reply With Quote
Old 08-21-2012, 06:23 AM   #5
poulardalber
Junior Member
poulardalber began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Aug 2012
Device: kindle 3
I would like to know how to remove epressions like :

I would like to know how to remove epressions like :

Section Menu
Main Menu
Next
Previous
This article was downloaded by
calibre
from

and to remove each adress of " this article was download by calibre" after this.

ore more simple, how to remove all hyper links
poulardalber is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to remove "Fully read" books from "Last Open" list? pjeanetta PocketBook 4 12-08-2010 11:30 AM
Convert "Section Menu" in "Main Menu" zeener Recipes 2 11-23-2010 11:33 AM
Creator taking control of the "first page" link in the "content" menu cyberbaffled Kindle Formats 2 07-11-2010 05:21 PM
"Menu" and "Mark" keys does not work murad Sony Reader 4 07-11-2009 01:35 PM


All times are GMT -4. The time now is 11:14 AM.


MobileRead.com is a privately owned, operated and funded community.