mirror of
https://github.com/mm201/pkmn-classic-framework.git
synced 2026-09-09 02:35:13 -05:00
Store videos in the database even if present on disk.
This commit is contained in:
@@ -196,12 +196,6 @@ namespace bvCrawler4
|
||||
String formatted = FormatVideoId(id);
|
||||
String filename = String.Format("videos\\{0}.bin", formatted);
|
||||
|
||||
if (File.Exists(filename))
|
||||
{
|
||||
Console.WriteLine("Skipped video {0}. Already present on disk.", formatted);
|
||||
return;
|
||||
}
|
||||
|
||||
using (MySqlTransaction tran = db.BeginTransaction())
|
||||
{
|
||||
long count = (long)tran.ExecuteScalar("SELECT Count(*) FROM BattleVideoCrawlQueue WHERE SerialNumber = @serial_number", new MySqlParameter("@serial_number", id));
|
||||
|
||||
Reference in New Issue
Block a user