Redo indexing mechanism (#16)

* Bumped up the line length because I fear no man

* Refactored indexing

Previously, indexing worked by collecting the video IDs of only videos
that matched indexing criteria. This new model instead stores ALL videos
for a given source, but will only _download_ videos that meet that criteria.
This lets us backfill without indexing, makes it easier to add in other
backends, lets us download one-off videos for a source that don't quite
meet criteria, you name it.

* Updated media finders to respect format filters; Added credo file
This commit is contained in:
Kieran
2024-02-09 13:23:37 -08:00
committed by GitHub
parent 89497c4c6b
commit dabec62e99
31 changed files with 646 additions and 385 deletions
@@ -0,0 +1,10 @@
defmodule Pinchflat.Repo.Migrations.AddIndexingAttributesToMediaItems do
use Ecto.Migration
def change do
alter table(:media_items) do
add :livestream, :boolean, default: false, null: false
add :original_url, :string, null: false
end
end
end