Fix movie ingestion

This commit is contained in:
2023-06-14 19:27:32 +10:00
parent f4b0cd304f
commit edd7812e5c

View File

@@ -9,9 +9,9 @@ module Admin
def call(movie)
repo = Adamantium::Container["repos.movie_repo"]
return if repo.by_title_and_year(title: title, year: activity.year)
return if repo.by_title_and_year(title: movie[:title], year: movie[:year])
page = Down.download(activity.film_link)
page = Down.download(movie[:url])
match = page.read.match(/href=".+title\/(tt\d+)\/maindetails"/)
imdb_id = match[1]