Icecast Streaming Media Server Forum Index Icecast Streaming Media Server
Icecast is a Xiph Foundation Project
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Modification du fichier Status.xsl

 
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Forum Francophone
View previous topic :: View next topic  
Author Message
Anonymous
Guest





PostPosted: Tue Nov 28, 2006 5:58 pm    Post subject: Modification du fichier Status.xsl Reply with quote

Bonjour a tous !

j'ai voulu modifier le template pour l'adapter a celui d'un forum

http://82.226.139.138:8000/status.xsl

donc la j'arrive a tout faire tourner mais ya un bug que je ne comprends pas après modification du template la source se connecte reste connectée mais le server ne la voie plus.

En fait quand je vais dans Icecast je vois bien une source xxxx.ogg mais il ne peux plus la lire Shocked

donc obliger de deco et reco et ca remerde a chaque fois, je pensais pas qu'une simple modification du template entrainerait une chose pareil.

Avez vous déjà eut ce bug ou savez vous comment y remedier ?
Back to top
jcr
Modérateur français
Modérateur français


Joined: 14 Apr 2006
Posts: 544
Location: France, Auvergne

PostPosted: Tue Nov 28, 2006 7:53 pm    Post subject: Reply with quote

un fichier xsl est un translateur xml, tu as du vrer une balise Smile vraisemblablement dans la boucle
Code:
<xsl:for-each select="source">


Regardes dans tes logs, quitte à passer au logging maximal, ce que raconte le système...
Il faut se souvenir que XML est très sensible à la casse et au jeu de caractères. Si tu édites un fichier sensé faire du UTF-8 avec un éditeur qui te sauve en ISO-8859-1, les balises peuvent être bouffées par les caractères accentués.
_________________
Epsilon Friends Radio Icecast Radio on CentovaCast admin panel. Icecast hosting
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Anonymous
Guest





PostPosted: Tue Nov 28, 2006 8:01 pm    Post subject: Reply with quote

Non en fait il est bien encore la mais il s'affiche puis disparait et deconnecte tout en laissant dans oddcast l'impression d'être connecté comme sur le server icecast

le code :

Code:
<xsl:stylesheet xmlns:xsl = "http://www.w3.org/1999/XSL/Transform" version = "1.0" >
<xsl:output omit-xml-declaration="no" method="xml" doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" indent="yes" encoding="UTF-8" />
<xsl:template match = "/icestats" >
<html>
<head>
<title>Tekitawa webradio</title>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0">
<table border="0" width="98%" cellspacing="0" cellpadding="0" align="center" class="tableau">
   <tr>
      <td>

<table border="0" width="60%" cellspacing="0" cellpadding="0" align="center">
   <tr>
      <td bgcolor="#656565"></td>
   </tr>
   <tr>
      <td><img src="/icecast.png" /></td>
   </tr>
   <tr>
      <td class="menu" align="center">      <a class="nav" href="admin/">Administration</a> |
      <a class="nav" href="status.xsl">Server Status</a> |
      <a class="nav" href="server_version.xsl">Version</a> |</td>

   </tr>
</table>
<br />
<br />
<!--end index header menu -->
<!--mount point stats-->
<xsl:for-each select="source">
<xsl:choose>
<xsl:when test="listeners">
<div class="roundcont">
<div class="roundtop">
</div>
<div class="newscontent">
<h3>
<xsl:choose>
<xsl:when test="authenticator">
<a href="/auth.xsl"><img border="0" src="/key.png"/></a>
</xsl:when>
<xsl:otherwise>
<a href="{@mount}.m3u"><img border="0" src="/tunein.png"/></a>
</xsl:otherwise>
</xsl:choose>
Mount Point : (<xsl:value-of select="@mount" />) :
<xsl:choose>
<xsl:when test="authenticator">
<a href="/auth.xsl">Click to Listen</a>
</xsl:when>
<xsl:otherwise>
<a href="{@mount}.m3u">Click to Listen</a>
</xsl:otherwise>
</xsl:choose>
</h3>

<table border="0" cellpadding="4">
<xsl:if test="server_name">
<tr><td>Stream Title:</td><td class="streamdata"> <xsl:value-of select="server_name" /></td></tr>
</xsl:if>
<xsl:if test="server_description">
<tr><td>Stream Description:</td><td class="streamdata"> <xsl:value-of select="server_description" /></td></tr>
</xsl:if>
<tr><td>Content Type:</td><td class="streamdata"><xsl:value-of select="server_type" /></td></tr>
<tr><td>Mount Uptime:</td><td class="streamdata"><xsl:value-of select="stream_start" /></td></tr>
<xsl:if test="bitrate">
<tr><td>Bitrate:</td><td class="streamdata"> <xsl:value-of select="bitrate" /></td></tr>
</xsl:if>
<xsl:if test="quality">
<tr><td>Quality:</td><td class="streamdata"> <xsl:value-of select="quality" /></td></tr>
</xsl:if>
<xsl:if test="video_quality">
<tr><td>Video Quality:</td><td class="streamdata"> <xsl:value-of select="video_quality" /></td></tr>
</xsl:if>
<xsl:if test="frame_size">
<tr><td>Framesize:</td><td class="streamdata"> <xsl:value-of select="frame_size" /></td></tr>
</xsl:if>
<xsl:if test="frame_rate">
<tr><td>Framerate:</td><td class="streamdata"> <xsl:value-of select="frame_rate" /></td></tr>
</xsl:if>
<xsl:if test="listeners">
<tr><td>Current Listeners:</td><td class="streamdata"> <xsl:value-of select="listeners" /></td></tr>
</xsl:if>
<xsl:if test="listener_peak">
<tr><td>Peak Listeners:</td><td class="streamdata"> <xsl:value-of select="listener_peak" /></td></tr>
</xsl:if>
<xsl:if test="genre">
<tr><td>Stream Genre:</td><td class="streamdata"> <xsl:value-of select="genre" /></td></tr>
</xsl:if>
<xsl:if test="server_url">
<tr><td>Stream URL:</td><td class="streamdata"> <a target="_blank" href="{server_url}"><xsl:value-of select="server_url" /></a></td></tr>
</xsl:if>
<tr><td>Current Song:</td><td class="streamdata">
<xsl:if test="artist"><xsl:value-of select="artist" /> - </xsl:if><xsl:value-of select="title" /></td></tr>
</table>
</div>
<div class="roundbottom">
</div>
</div>

<br />
<br />
</xsl:when>
<xsl:otherwise>
<h3><xsl:value-of select="@mount" /> - Not Connected</h3>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
<xsl:text disable-output-escaping="yes">&amp;</xsl:text>nbsp;
</td>
</tr>
</table>
<div class="poster">Rejoignez notre forum  <a class="nav" target="_blank" href="http://www.tekitawa.probb.fr">Tekitawa !</a></div>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
Back to top
jcr
Modérateur français
Modérateur français


Joined: 14 Apr 2006
Posts: 544
Location: France, Auvergne

PostPosted: Tue Nov 28, 2006 8:04 pm    Post subject: Reply with quote

Et que donne le log ?
_________________
Epsilon Friends Radio Icecast Radio on CentovaCast admin panel. Icecast hosting
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Anonymous
Guest





PostPosted: Tue Nov 28, 2006 8:09 pm    Post subject: Reply with quote

[2006-11-28 21:05:23] DBUG stats/stats.c update node file_connections (879)
[2006-11-28 21:05:23] DBUG stats/stats.c update node clients (1)
[2006-11-28 21:05:23] DBUG stats/stats.c update node clients (0)
[2006-11-28 21:05:58] DBUG slave/slave.c checking master stream list
[2006-11-28 21:05:59] DBUG slave/slave.c checking master stream list
[2006-11-28 21:06:46] DBUG stats/stats.c update node clients (1)
[2006-11-28 21:06:46] DBUG stats/stats.c update node connections (1058)
[2006-11-28 21:06:46] DBUG connection/connection.c Stats request, sending XSL transformed stats
[2006-11-28 21:06:46] DBUG xslt/xslt.c Using cached sheet 1
[2006-11-28 21:06:46] DBUG fserve/fserve.c Adding client to file serving engine
[2006-11-28 21:06:46] DBUG stats/stats.c update node client_connections (1051)
[2006-11-28 21:06:46] DBUG stats/stats.c update node clients (0)
[2006-11-28 21:06:46] DBUG stats/stats.c update node clients (1)
[2006-11-28 21:06:46] DBUG stats/stats.c update node connections (1059)
[2006-11-28 21:06:46] INFO fserve/fserve.c checking for file /style.css (./web/style.css)
[2006-11-28 21:06:46] DBUG fserve/fserve.c Adding client to file serving engine
[2006-11-28 21:06:47] DBUG stats/stats.c update node client_connections (1052)
[2006-11-28 21:06:47] DBUG stats/stats.c update node file_connections (880)
[2006-11-28 21:06:47] DBUG stats/stats.c update node clients (0)
[2006-11-28 21:06:47] INFO fserve/fserve.c checking for file /wallpaper.gif (./web/wallpaper.gif)
[2006-11-28 21:06:47] DBUG fserve/fserve.c Adding client to file serving engine
[2006-11-28 21:06:47] INFO fserve/fserve.c checking for file /icecast.png (./web/icecast.png)
[2006-11-28 21:06:47] DBUG fserve/fserve.c Adding client to file serving engine
[2006-11-28 21:06:47] DBUG stats/stats.c update node clients (1)
[2006-11-28 21:06:47] DBUG stats/stats.c update node connections (1060)
[2006-11-28 21:06:47] DBUG stats/stats.c update node clients (2)
[2006-11-28 21:06:47] DBUG stats/stats.c update node connections (1061)
[2006-11-28 21:06:47] DBUG stats/stats.c update node client_connections (1053)
[2006-11-28 21:06:47] DBUG stats/stats.c update node file_connections (881)
[2006-11-28 21:06:47] DBUG stats/stats.c update node client_connections (1054)
[2006-11-28 21:06:47] DBUG stats/stats.c update node file_connections (882)
[2006-11-28 21:06:47] DBUG stats/stats.c update node clients (1)
[2006-11-28 21:06:48] INFO fserve/fserve.c checking for file /bgallaa7.gif (./web/bgallaa7.gif)
[2006-11-28 21:06:48] DBUG fserve/fserve.c Adding client to file serving engine
[2006-11-28 21:06:48] DBUG stats/stats.c update node clients (2)
[2006-11-28 21:06:48] DBUG stats/stats.c update node connections (1062)
[2006-11-28 21:06:48] DBUG stats/stats.c update node client_connections (1055)
[2006-11-28 21:06:48] DBUG stats/stats.c update node file_connections (883)
[2006-11-28 21:06:48] DBUG stats/stats.c update node clients (1)
[2006-11-28 21:06:48] INFO fserve/fserve.c checking for file /fond_categorie_g.gif (./web/fond_categorie_g.gif)
[2006-11-28 21:06:48] DBUG fserve/fserve.c Adding client to file serving engine
[2006-11-28 21:06:48] DBUG stats/stats.c update node clients (2)
[2006-11-28 21:06:48] DBUG stats/stats.c update node connections (1063)
[2006-11-28 21:06:48] DBUG stats/stats.c update node client_connections (1056)
[2006-11-28 21:06:48] DBUG stats/stats.c update node file_connections (884)
[2006-11-28 21:06:49] DBUG stats/stats.c update node clients (1)
[2006-11-28 21:06:49] DBUG stats/stats.c update node clients (0)
[2006-11-28 21:07:58] DBUG slave/slave.c checking master stream list
[2006-11-28 21:07:59] DBUG slave/slave.c checking master stream list
Back to top
Anonymous
Guest





PostPosted: Tue Nov 28, 2006 8:10 pm    Post subject: Reply with quote

Pour bien expliquer le deroulement :

1) Je connecte oddcast
2) Je regarde a mon url en :8000
3) je vois bien le mount point !
4) je refresh la page
5) hop ca disparait !
6) dans le server Icecast il vois le mountpoint mais pas les info
7) dans oddcast il reste connecté

donc certainement une erreur d'affichage ou de log je comprends pas je m'arrache les cheveux
Back to top
jcr
Modérateur français
Modérateur français


Joined: 14 Apr 2006
Posts: 544
Location: France, Auvergne

PostPosted: Tue Nov 28, 2006 8:29 pm    Post subject: Reply with quote

Ca me paraît assez bizarre, oui...
_________________
Epsilon Friends Radio Icecast Radio on CentovaCast admin panel. Icecast hosting
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Anonymous
Guest





PostPosted: Tue Nov 28, 2006 8:34 pm    Post subject: Reply with quote

Rolling Eyes

et ya pas de solutions ? :/
Back to top
jcr
Modérateur français
Modérateur français


Joined: 14 Apr 2006
Posts: 544
Location: France, Auvergne

PostPosted: Tue Nov 28, 2006 8:45 pm    Post subject: Reply with quote

Commences par remettre l'original, et fais tes modifs par petites touches... Tu finiras par tomber sur l'erreur
_________________
Epsilon Friends Radio Icecast Radio on CentovaCast admin panel. Icecast hosting
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Forum Francophone All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group
subRebel style by ktauber