Find videos to fetch based on cast instead of title
This commit is contained in:
parent
0094d52834
commit
97e7a8b8fc
@ -208,7 +208,7 @@ func (w *WebClient) FetchVideoMetadata(db *sql.DB) error {
|
|||||||
log.Printf("Fetching video metadata...")
|
log.Printf("Fetching video metadata...")
|
||||||
for {
|
for {
|
||||||
// Fetch the next record from the database
|
// Fetch the next record from the database
|
||||||
row := db.QueryRow("select id, url from videos where title is null limit 1")
|
row := db.QueryRow("select id, url from videos where cast is null limit 1")
|
||||||
var id int
|
var id int
|
||||||
var href string
|
var href string
|
||||||
err := row.Scan(&id, &href)
|
err := row.Scan(&id, &href)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user