Skip to content

Commit

Permalink
Merge pull request #151 from deldesir/deldesir-patch-25
Browse files Browse the repository at this point in the history
Enable subsequent [re]downloads of playlists
  • Loading branch information
holta authored May 31, 2024
2 parents 63ff431 + a793abe commit e35f629
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cps/tasks/metadata_extract.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ def run(self, worker_thread):
self._update_metadata(requested_urls)
self._calculate_views_per_day(requested_urls, conn)
requested_urls = self._sort_and_limit_requested_urls(requested_urls)
conn.execute("UPDATE playlists SET path = ? WHERE path = ?", (f"{self.media_url}&timestamp={int(datetime.now().timestamp())}", self.media_url))
else:
try:
extractor_id = conn.execute("SELECT extractor_id FROM media WHERE ? LIKE '%' || extractor_id || '%'", (self.media_url,)).fetchone()[0]
Expand Down

0 comments on commit e35f629

Please sign in to comment.