mirror of
https://github.com/mm201/pkmn-classic-framework.git
synced 2026-04-25 08:04:27 -05:00
Store videos in the database even if present on disk.
This commit is contained in:
parent
bc0e14beb2
commit
15bbba55db
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user