Commit 33f8fc61 authored by Jonathan Matthew's avatar Jonathan Matthew 🕳

podcast: set download progress to 0% when starting

Closes: #1822
parent 5c4a0ea3
Pipeline #216679 passed with stage
in 14 minutes and 44 seconds
......@@ -2073,12 +2073,17 @@ download_task (GTask *task, gpointer source_object, gpointer task_data, GCancell
}
}
/* set the download location for the episode */
/* set the download location for the episode, set progress to 0% */
g_value_init (&val, G_TYPE_STRING);
g_value_set_string (&val, sane_dl_uri);
set_download_location (pd->priv->db, download->entry, &val);
g_value_unset (&val);
g_value_init (&val, G_TYPE_ULONG);
g_value_set_ulong (&val, 0);
rhythmdb_entry_set (pd->priv->db, download->entry, RHYTHMDB_PROP_STATUS, &val);
g_value_unset (&val);
rhythmdb_commit (pd->priv->db);
/* check for an existing partial download */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment