Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeGafert committed Jul 8, 2021
1 parent 2f8ed06 commit f8c3157
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 8 deletions.
1 change: 1 addition & 0 deletions PS5_Finder_GER/Extensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -266,5 +266,6 @@ public static void UrlDateiSchreiben(string urlFilePath, string UserURLsPath)
}
}
}

}
}
9 changes: 7 additions & 2 deletions PS5_Finder_GER/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -191,17 +191,21 @@ static async Task Main(string[] args)
// Eintrag des des fehlers in die errorlog.txt
Extensions.WriteErrorLog(WebseitenListe, errorLogtxtPath, i, ex);
Extensions.wait10SecForMMS(WebseitenListe, i);
Console.ForegroundColor = ConsoleColor.White;
continue;
}
catch (TaskCanceledException ex)
{
Console.ForegroundColor = ConsoleColor.Red;

Console.WriteLine(ex.Message);
// Eintrag des des fehlers in die errorlog.txt
Extensions.WriteErrorLog(WebseitenListe, errorLogtxtPath, i, ex);
Extensions.wait10SecForMMS(WebseitenListe, i);

Console.ForegroundColor = ConsoleColor.White;
continue;
}
Console.ForegroundColor = ConsoleColor.White;

// Den erhaltenen Inhalt der Webseite in eine txt Datei schrieben
Extensions.writeWebsiteToTxtFile(websiteCodePath, i, WebseitenListe, webData);
Expand Down Expand Up @@ -272,8 +276,9 @@ static async Task Main(string[] args)
// Eintrag des Ergebnisses für diese Webseite in die log.txt
Extensions.WriteLogfile(WebseitenListe, logtxtPath, i);

// Ausgabe des Ergebnisses dieser Webseite
// Ausgabe des Ergebnisses dieser Webseite
Console.WriteLine(WebseitenListe[i]);
Console.ForegroundColor = ConsoleColor.White;

Extensions.wait10SecForMMS(WebseitenListe, i);

Expand Down
3 changes: 2 additions & 1 deletion PS5_Finder_GER/Ressources/URLs.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,5 @@ aktiv,Media Markt,SONY PS5 + Returnal,https://www.mediamarkt.de/de/product/_sony
aktiv,Saturn,Demon Souls + Spider-Man Bundle,https://www.saturn.de/de/product/_sony-ps5-demon-souls-marvel-s-spider-man-miles-morales-2739307.html?utm_source=easymarketing&utm_medium=aff-content&utm_term=52525&utm_campaign=Deeplinkgenerator-AO&emid=60e30a8d519d2b60570a374b
aktiv,Saturn,Returnal + Spider-Man Bundle,https://www.saturn.de/de/product/_sony-ps5-returnal-marvel-s-spider-man-miles-morales-2739308.html?utm_source=easymarketing&utm_medium=aff-content&utm_term=52525&utm_campaign=Deeplinkgenerator-AO&emid=60e30a8c6374cb14542b32a8
aktiv,Saturn,R&C Bundle,https://www.saturn.de/de/product/_sony-ps5-ratchet-clank-rift-apart-2741442.html?utm_source=easymarketing&utm_medium=aff-content&utm_term=52325&utm_campaign=Deeplinkgenerator-AO&emid=60dad89993c65b1aa8424db0
aktiv,Media Markt,R&C Bundle,https://www.saturn.de/de/product/_sony-ps5-ratchet-clank-rift-apart-2741441.html?utm_source=easymarketing&utm_medium=aff-content&utm_term=52325&utm_campaign=Deeplinkgenerator-AO&emid=60e30a6c253843285a52236a
aktiv,Media Markt,R&C Bundle,https://www.saturn.de/de/product/_sony-ps5-ratchet-clank-rift-apart-2741441.html?utm_source=easymarketing&utm_medium=aff-content&utm_term=52325&utm_campaign=Deeplinkgenerator-AO&emid=60e30a6c253843285a52236a
aktiv,myBiotea,Mega Tea Bundle,https://mybiotea-gera.de/produkt/playstation5-ratchetclank-residentevil8/
17 changes: 12 additions & 5 deletions PS5_Finder_GER/Webseite.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
namespace PS5_Finder
using System;
using System.Threading.Tasks;

namespace PS5_Finder
{
public class Webseite
{
Expand All @@ -20,16 +23,20 @@ public Webseite(bool aktiv, string name, string modell, string url, bool verfueg
this.Modell = modell;
this.Url = url;
this.Verfuegbar = verfuegbar;
}
}

public override string ToString()
{
if (!Verfuegbar)
{
return $"Nein";
}
return $"JA!";
Console.ForegroundColor = ConsoleColor.Red;
return $"Nein\nURL: {Url}";
}
Console.ForegroundColor = ConsoleColor.Green;
return $"JA!\nURL: {Url}";
//return $"{Name} {Modell} {Url}";
}
}
}

// 29c189127442fa05a1cfad3708681769faf74938

0 comments on commit f8c3157

Please sign in to comment.