Vrs 0.1.5.3

Compilata da CSiCoAlm il 2021/10/29
- Corretto salvataggio dei file di racconti, per evitare l'errore del formato (lettere accentate e caratteri particolari).
- Fatto anche dei test di salvataggio dei testi per trovare il corretto formato dell'encode.
This commit is contained in:
CSiCoAlm committed 2021-10-29 09:16:08 +02:00
1 parent ebe1608e98
commit c867fc278a
4 files changed
+64 -48

No files matched your search

+41 -41
View File
@@ -12,60 +12,60 @@ namespace A69WD {
public static A69WD.DBTools DB = null;
///// <summary>
///// The main entry point for the application.
///// </summary>
//[STAThread]
//static void Main(string[] args) {
// try {
// // Common settings:
// Application.EnableVisualStyles();
// Application.SetCompatibleTextRenderingDefault(false);
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main(string[] args) {
try {
// Common settings:
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
// if ((args != null) && (args.Length > 0)) Retrive = false;
// else Retrive = true;
if ((args != null) && (args.Length > 0)) Retrive = false;
else Retrive = true;
// // Configura il logger dell'applicazione:
// Logger.Configure(Cfg.Settings.PathFileLogs, Cfg.Settings.LogsFileSizeLimitKB, Cfg.Settings.LogsWinLoggerRef);
// Configura il logger dell'applicazione:
Logger.Configure(Cfg.Settings.PathFileLogs, Cfg.Settings.LogsFileSizeLimitKB, Cfg.Settings.LogsWinLoggerRef);
// // Configura il DB dell'applicazione
// DB = new A69WD.DBTools();
// Configura il DB dell'applicazione
DB = new A69WD.DBTools();
// // Start application:
// Logger.Information(" - - - START Application - - - ");
// if (DB.DB_ok) {
// Application.Run(new frmDownloader());
// Start application:
Logger.Information(" - - - START Application - - - ");
if (DB.DB_ok) {
Application.Run(new frmDownloader());
// Logger.Information(" - - - STOP Application - - - ");
Logger.Information(" - - - STOP Application - - - ");
// while (Logger.LogMissing() > 0) {
// System.Threading.Thread.Sleep(25);
// }
while (Logger.LogMissing() > 0) {
System.Threading.Thread.Sleep(25);
}
// // MRK: TODO rivedere la chiusura precedente per farla funzionare senza il tempo ma con il controllo totale dei thread.
// MRK: TODO rivedere la chiusura precedente per farla funzionare senza il tempo ma con il controllo totale dei thread.
// } else {
// Logger.Error("Collegamento al DB non riuscito");
// MessageBox.Show("Applicazione abortita perchè non riesco ad aprire il DB", "Error");
// }
} else {
Logger.Error("Collegamento al DB non riuscito");
MessageBox.Show("Applicazione abortita perchè non riesco ad aprire il DB", "Error");
}
// } catch (Exception ex) {
// Logger.Log(new object[] { "Error Code: ER00000", "Errore in Main()", ex });
// } finally {
// // Chiudo DB in memoria riportando sul DB di sistema le modifiche occorse:
// if (DB != null) {
// DB.Dispose();
// DB = null;
// }
// // Attesa per svuotamento logger:
// while (Logger.LogMissing() > 0) { System.Threading.Thread.Sleep(100); }
// }
//}
} catch (Exception ex) {
Logger.Log(new object[] { "Error Code: ER00000", "Errore in Main()", ex });
} finally {
// Chiudo DB in memoria riportando sul DB di sistema le modifiche occorse:
if (DB != null) {
DB.Dispose();
DB = null;
}
// Attesa per svuotamento logger:
while (Logger.LogMissing() > 0) { System.Threading.Thread.Sleep(100); }
}
}
}//class App
+2 -3
View File
@@ -210,10 +210,9 @@ namespace A69WD {
// Se pagina è un racconto, lo salvo
if (IsRacLink(link)) {
sb = new StringBuilder();
sb.Append(wb.DocumentText);
sb.Append(wb.Document.Body.InnerHtml);
string fn = Path.Combine(Cfg.Settings.PathAnalizadedRaccFile, GetFileName(link));
cTools.WriteTextFile(fn, sb, Encoding.GetEncoding(wb.Document.Encoding));
fn = Path.Combine(Cfg.Settings.PathAnalizadedRaccFile, "UTF8_" +GetFileName(link));
//cTools.WriteTextFile(fn, sb, Encoding.GetEncoding(wb.Document.Encoding));
cTools.WriteTextFile(fn, sb);
}
+13 -2
View File
@@ -32,8 +32,19 @@ using System.Runtime.InteropServices;
// È possibile specificare tutti i valori oppure impostare valori predefiniti per i numeri relativi alla revisione e alla build
// usando l'asterisco '*' come illustrato di seguito:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("0.1.5.2")]
[assembly: AssemblyFileVersion("0.1.5.2")]
[assembly: AssemblyVersion("0.1.5.3")]
[assembly: AssemblyFileVersion("0.1.5.3")]
/*
*
* Vrs 0.1.5.3
*
* Compilata da CSiCoAlm il 2021/10/29
* - Corretto salvataggio dei file di racconti, per evitare l'errore del formato (lettere accentate e caratteri particolari).
* - Fatto anche dei test di salvataggio dei testi per trovare il corretto formato dell'encode.
*
*/
/*