letterboxd-list-radarr icon indicating copy to clipboard operation
letterboxd-list-radarr copied to clipboard

https://letterboxd.com/films/popular/

Open azumukupoe opened this issue 4 years ago • 3 comments

Could you make it work?

azumukupoe avatar Dec 02 '20 08:12 azumukupoe

I'm afraid i cannot fetch the whole list, as it contains over half a million movies. That would probably take forever. I could make the list work with a hard pagecount-limit, so you could fetch the first 50 pages or something.

Calculating the runtime for /films/popular is pretty easy:

  • 12 * 6 = 72 Movies per Page
  • 564.035 Movies = 7834 Pages
  • Average Letterboxd response-time: 200ms/Request

Accumulated response-time: ((564035 + 7834) * 200) = 114373800ms ~= 32h

If you can run 10 requests in parallel, that would get down to maybe 5h.

But i'm afraid that something along the way will get broken. The http-request might timeout, your redis might eat all of your memory, radarr will be unable to handle such a large amount of movies. This is not really feasible.

screeny05 avatar Dec 02 '20 09:12 screeny05

Maybe fetch only the first 5 pages?

azumukupoe avatar Dec 02 '20 09:12 azumukupoe

That would be possible. Maybe let the User adjust the limit with an optional parameter.

screeny05 avatar Dec 02 '20 09:12 screeny05

Is there a limit parameter, or a perPage parameter like in the API?

I would be happy with just the top 5 results from https://letterboxd.com/films/popular/this/week/

nathanbirrell avatar Nov 29 '22 03:11 nathanbirrell

Can now be done. I've added a limit-parameter so you can fetch only the amount of movies you want to.

But there's a catch: letterboxd.com only allows us to fetch /films/popular/. Nothing else. No filters, no time, no genre, etc. See https://letterboxd.com/robots.txt

screeny05 avatar Aug 07 '23 09:08 screeny05