Skip to content

Commit

Permalink
Pequeño cambio en el texto html.
Browse files Browse the repository at this point in the history
Salida del programa arreglada.
Ruta inicial por defecto corregida.
  • Loading branch information
forestrf committed Jun 19, 2014
1 parent b180575 commit 90ab739
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Project files/RTMP-Downloader/HTML.cs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public static class HTML
public static string cierraConJS(){
return "<html><body>"+
"La descarga ha sido agregada.<br>"+
"Ahora puedes cerrar esta ventana."+
"<a href='/'>Clica aquí para ver el progreso de las descargas.</a> o cierra esta pestaña."+
"</body></html>";
}

Expand Down Expand Up @@ -194,7 +194,7 @@ public static class HTML
{
if (d.IsReady == true)
{
respuesta += "<a href='/listadirs?ruta="+d.Name+"\\'>"+d.VolumeLabel+"</a> ";
respuesta += "<a href='/listadirs?ruta="+d.Name+"\\'>"+d.VolumeLabel+"</a> | ";
}
}

Expand Down
9 changes: 8 additions & 1 deletion Project files/RTMP-Downloader/MainClass.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public static class MainClass
public static int TempDescargasEnProcesoCantidad = 0;


public static bool forzarSalida = false;

public static Configs configs = new Configs();

Expand Down Expand Up @@ -65,7 +66,7 @@ public static void Main (string[] cmdLine)

configs = Utilidades.leerConfigs ();
if (configs.rutaDescargas == null || configs.rutaDescargas == "") {
configs.rutaDescargas = relativePath;
configs.rutaDescargas = relativePath.Replace(":\\",":\\\\");
Utilidades.escribirConfigs (configs);
}
Debug.WriteLine(Utilidades.WL("Ruta descargas: "+configs.rutaDescargas));
Expand Down Expand Up @@ -106,6 +107,10 @@ public static void Main (string[] cmdLine)
Process.Start("http://127.0.0.1:"+puerto+"/");

while(true) {
if (forzarSalida) {
return;
}

RespuestaServer respuestaServer = myServer.Escucha();
RespuestaHTTP GETurl = respuestaServer.respuestaHTTP;

Expand Down Expand Up @@ -286,6 +291,8 @@ public static void Main (string[] cmdLine)

myServer.Cierra();

forzarSalida = true;

return;
}

Expand Down

0 comments on commit 90ab739

Please sign in to comment.