Adds a method for retrying stuck jobs (#112)

This commit is contained in:
Kieran authored and GitHub committed 2024-03-24 09:21:01 -07:00
1 parent ecc73d25a5
commit d0f7338f42
2 files changed
+8 -28

No files matched your search

-28
View File
@@ -21,31 +21,3 @@ alias Pinchflat.FastIndexing.YoutubeRss
alias Pinchflat.Metadata.MetadataFileHelpers
alias Pinchflat.SlowIndexing.FileFollowerServer
defmodule IexHelpers do
def last_media_item do
Repo.one(from m in MediaItem, limit: 1)
end
def details(type) do
source =
case type do
:playlist -> playlist_url()
:channel -> channel_url()
end
YtDlpCollection.get_source_details(source)
end
def ids(type) do
source =
case type do
:playlist -> playlist_url()
:channel -> channel_url()
end
YtDlpCollection.get_media_attributes_for_collection(source)
end
end
import IexHelpers