[script] Eggdrop RSS Syndication
#70
donc voila le code exact
TCL
proc ::rss-synd::feed_callback {feedlist args} {
	set token [lindex $args end]
	array set feed $feedlist
	upvar 0 $token state
 
	if {$state(status) != "ok"} {
		putlog "\002RSS HTTP Error\002: $state(url) (State: $state(status))"
		return 1
	}
 
	array set meta $state(meta)
 
	if {([::http::ncode $token] == 302) || ([::http::ncode $token] == 301)} {
		set feed(depth) [expr {$feed(depth) + 1 }]
 
		if {$feed(depth) < $feed(max-depth)} {
			catch {::http::geturl "$meta(Location)" -command "[namespace current]::feed_callback {$feedlist}" -timeout $feed(timeout) -headers $feed(headers)}
		} else {
			putlog "\002RSS HTTP Error\002: $state(url) (State: timeout, max refer limit reached)"
		}
 
		return 1
	} elseif {[::http::ncode $token] != 200} {
		putlog "\002RSS HTTP Error\002: $state(url) ($state(http))"
		return 1
	}
 
	set data [::http::data $token]
	encoding system iso8859-1
	set data [encoding convertfrom utf-8 $data]
 
......



il faudra aussi supprimer les fichiers .db présent dans ./databases
C'est en reconnaissant ses erreurs que l'on progresse Wink
Répondre Avertir


Messages dans ce sujet
[script] Eggdrop RSS Syndication - par CrazyCat - 21/02/2008, 18:14
RE: Eggdrop RSS Syndication - par Piepierre - 21/02/2008, 18:23
RE: Eggdrop RSS Syndication - par CrazyCat - 21/02/2008, 18:28
RE: Eggdrop RSS Syndication - par MenzAgitat - 22/02/2008, 02:17
RE: Eggdrop RSS Syndication - par titinio - 15/05/2008, 09:26
RE: Eggdrop RSS Syndication - par CrazyCat - 15/05/2008, 13:30
RE: Eggdrop RSS Syndication - par tr3nk1l - 15/06/2008, 23:27
RE: Eggdrop RSS Syndication - par Helias - 16/06/2008, 02:00
RE: Eggdrop RSS Syndication - par knx - 11/07/2008, 21:44
RE: Eggdrop RSS Syndication - par lepheniX - 21/07/2008, 03:52
RE: Eggdrop RSS Syndication - par lepheniX - 22/07/2008, 13:40
RE: Eggdrop RSS Syndication - par BdS - 23/07/2008, 12:53
RE: Eggdrop RSS Syndication - par knx - 25/07/2008, 07:28
RE: Eggdrop RSS Syndication - par MenzAgitat - 28/07/2008, 02:27
RE: Eggdrop RSS Syndication - par MenzAgitat - 28/07/2008, 16:29
RE: Eggdrop RSS Syndication - par Rikito - 04/09/2008, 13:52
RE: Eggdrop RSS Syndication - par CrazyCat - 04/09/2008, 21:28
RE: Eggdrop RSS Syndication - par Rikito - 04/09/2008, 22:19
RE: Eggdrop RSS Syndication - par CrazyCat - 05/09/2008, 20:14
RE: Eggdrop RSS Syndication - par MenzAgitat - 05/09/2008, 01:18
RE: Eggdrop RSS Syndication - par Rikito - 05/09/2008, 19:59
RE: Eggdrop RSS Syndication - par kipof - 22/02/2009, 17:30
RE: Eggdrop RSS Syndication - par CrazyCat - 22/02/2009, 22:48
RE: Eggdrop RSS Syndication - par kipof - 22/02/2009, 23:37
RE: Eggdrop RSS Syndication - par CrazyCat - 23/02/2009, 10:24
RE: [script] Eggdrop RSS Syndication - par Utas - 29/04/2010, 16:40
RE: [script] Eggdrop RSS Syndication - par Marc - 29/04/2010, 20:45
RE: [script] Eggdrop RSS Syndication - par Utas - 30/04/2010, 02:52
RE: [script] Eggdrop RSS Syndication - par Xima - 29/08/2010, 17:45
RE: [script] Eggdrop RSS Syndication - par uto - 25/06/2011, 19:30
RE: [script] Eggdrop RSS Syndication - par djkenny - 08/07/2011, 14:46
RE: [script] Eggdrop RSS Syndication - par Cain - 18/08/2011, 05:41
RE: [script] Eggdrop RSS Syndication - par Cain - 22/08/2011, 05:24
RE: [script] Eggdrop RSS Syndication - par Nosy - 21/12/2011, 08:53
RE: [script] Eggdrop RSS Syndication - par Nosy - 21/12/2011, 15:16
RE: [script] Eggdrop RSS Syndication - par Nosy - 21/12/2011, 16:32
RE: [script] Eggdrop RSS Syndication - par Nosy - 21/12/2011, 16:49
RE: [script] Eggdrop RSS Syndication - par Nosy - 21/12/2011, 17:08
RE: [script] Eggdrop RSS Syndication - par Nosy - 21/12/2011, 17:35
RE: [script] Eggdrop RSS Syndication - par Nosy - 21/12/2011, 17:49
RE: [script] Eggdrop RSS Syndication - par Nosy - 21/12/2011, 18:00
RE: [script] Eggdrop RSS Syndication - par Nosy - 21/12/2011, 18:28
RE: [script] Eggdrop RSS Syndication - par Nosy - 21/12/2011, 19:48
RE: [script] Eggdrop RSS Syndication - par Nosy - 21/12/2011, 20:21
RE: [script] Eggdrop RSS Syndication - par Nosy - 21/12/2011, 23:40
RE: [script] Eggdrop RSS Syndication - par Nosy - 22/12/2011, 13:29
RE: [script] Eggdrop RSS Syndication - par Nosy - 04/06/2012, 23:27
RE: [script] Eggdrop RSS Syndication - par Nosy - 05/06/2012, 22:27
RE: [script] Eggdrop RSS Syndication - par Nosy - 07/06/2012, 14:21
RE: [script] Eggdrop RSS Syndication - par T3nS - 25/10/2017, 12:01
RE: [script] Eggdrop RSS Syndication - par T3nS - 25/10/2017, 13:02
RE: [script] Eggdrop RSS Syndication - par T3nS - 25/10/2017, 17:18
RE: [script] Eggdrop RSS Syndication - par T3nS - 28/10/2017, 00:23
RE: [script] Eggdrop RSS Syndication - par T3nS - 29/10/2017, 16:19
RE: [script] Eggdrop RSS Syndication - par T3nS - 29/10/2017, 16:56
RE: [script] Eggdrop RSS Syndication - par T3nS - 29/10/2017, 17:11

Atteindre :


Utilisateur(s) parcourant ce sujet : 1 visiteur(s)
Tchat 100% gratuit -Discutez en toute liberté