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:
1 parent
ebe1608e98
commit
c867fc278a
4 files changed
+64
-48
No files matched your search
+8
-2
@@ -35,13 +35,19 @@ velocemente ai link fatti, e a quelli da fare
|
||||
- Update :: indica la data in cui eseguo l'ultimo update al record
|
||||
|
||||
|
||||
* TODO Vrs 0.1.5.2 :DONE:
|
||||
* DONE Vrs 0.1.5.3 :DONE:
|
||||
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.
|
||||
|
||||
|
||||
* DONE Vrs 0.1.5.2 :DONE:
|
||||
Modifica per:
|
||||
- Inserire l'importazione di link (solo Idx o Rac di A69) da file di testo
|
||||
- Correggere l'importazione ed esportazione degli elenchi dal DB
|
||||
|
||||
|
||||
* Vrs 0.1.5.1 :DONE:
|
||||
* Vrs 0.1.5.1 :DONE:
|
||||
Breve modifica per:
|
||||
- Corretto formato del numero di versione
|
||||
- Razionalizzato il messaggio di update dell'engine.
|
||||
|
||||
+41
-41
@@ -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
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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.
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
/*
|
||||
|
||||
Reference in new issue
Block a user