Fallenbagel / jellyseerr

Fork of overseerr for jellyfin support.
https://docs.jellyseerr.dev/
MIT License
3.51k stars 218 forks source link

"Jellyfin Recently Added Scan" doesn't add latest episodes but "Jellyfin Full Library Scan" does #177

Closed canoziia closed 2 years ago

canoziia commented 2 years ago

Description

"Jellyfin Recently Added Scan" doesn't add latest episodes but "Jellyfin Full Library Scan" does

Version

Jellyseerr:1.1.1 Jellyfin:10.8.1

Steps to Reproduce

  1. request a serie on jellyseerr
  2. new episodes have been added to jellyfin
  3. jellyseerr runs "Jellyfin Recently Added Scan"
  4. result: jellyseerr doesn't add latest episodes

Screenshots

No response

Logs

No response

Platform

desktop

Device

lenovo PC

Operating System

windows 11

Browser

Chrome

Additional Context

I tracked "Recently Added" items from the jellyfin api, all items are still in there until this line filters out items with item.Type==="Episode". if change } else if (item.Type === 'Series') { to } else if (item.Type === 'Series' || item.Type === 'Episode') {, it works fine.

Code of Conduct

Fallenbagel commented 2 years ago

There is a planned upcoming episode feature which will add this functionality

canoziia commented 2 years ago

There is a planned upcoming episode feature which will add this functionality

Thanks!

zeroquinc commented 2 years ago

This also happens with movies. The recently added scan in Jellyseerr doesn't pick up the new movie, but a Full Library Scan does.

Fallenbagel commented 2 years ago

This also happens with movies. The recently added scan in Jellyseerr doesn't pick up the new movie, but a Full Library Scan does.

What's weird is I cannot reproduce this. I have jellyseerr running and everytime i add a movie or show, it gets picked up right away (through a recently added scan) 🤔

zeroquinc commented 2 years ago

This also happens with movies. The recently added scan in Jellyseerr doesn't pick up the new movie, but a Full Library Scan does.

What's weird is I cannot reproduce this. I have jellyseerr running and everytime i add a movie or show, it gets picked up right away (through a recently added scan) 🤔

Ah that's a bummer, well I'm glad it works for you tho. So it's probably a config thingy. In Overseerr it works correctly tho. I have Discord notifications set up and Overseerr is instantly, but with Jellyseerr I have to wait on the hourly full scan for me to get the notification. Also checked the UI but it marks it as available after I manually press Full Scan.

Fallenbagel commented 2 years ago

Have you tried to purge the config+container and recreate and then try the develop tag. (For testing purposes I recommend not running a full scan when you first setup on develop tag and then do an aggressive recently added scan)

zeroquinc commented 2 years ago

Have you tried to purge the config+container and recreate and then try the develop tag. (For testing purposes I recommend not running a full scan when you first setup on develop tag and then do an aggressive recently added scan)

Just did exactly what you said but sadly didn't fix it for me. I haven't pressed a manual scan once, it sees my current library but after a request and the 5m wait for a Recently Added Scan it doesn't pick up the movie.

canoziia commented 2 years ago

Have you tried to purge the config+container and recreate and then try the develop tag. (For testing purposes I recommend not running a full scan when you first setup on develop tag and then do an aggressive recently added scan)

Just did exactly what you said but sadly didn't fix it for me. I haven't pressed a manual scan once, it sees my current library but after a request and the 5m wait for a Recently Added Scan it doesn't pick up the movie.

You can try to print var item at /server/job/jellyfinsync/index.ts#L483 and /server/job/jellyfinsync/index.ts#L485 and see if there is a difference between them.

zeroquinc commented 2 years ago

Have you tried to purge the config+container and recreate and then try the develop tag. (For testing purposes I recommend not running a full scan when you first setup on develop tag and then do an aggressive recently added scan)

Just did exactly what you said but sadly didn't fix it for me. I haven't pressed a manual scan once, it sees my current library but after a request and the 5m wait for a Recently Added Scan it doesn't pick up the movie.

You can try to print var item at /server/job/jellyfinsync/index.ts#L483 and /server/job/jellyfinsync/index.ts#L485 and see if there is a difference between them.

I don't know what you mean by that sadly

zeroquinc commented 2 years ago

Any updates on this? it still happens. it runs a full library scan every day at 3AM and thats the only moment Jellyseer recognizes the media. While Jellyfin itself notices it right away.

Discord_SYuL2BcaJk

EDIT: I enabled this setting and now it seems to work again. msedge_uznRC2Oq6x

EDIT2: and it stopped working again. Movie doesnt get picked up again by the Recent scan, Overseerr works fine.

EDIT3: I think I know whats happening. In Jellyfin you have a section called "Latest movie's", I think thats what Jellyseerr scans. But my newly downloaded movie doesn't get added to "Latest movie's" somehow..

EDIT4: ok so I fixed it. I noticed that my Latest movie section in Jellyfin didn't get updated. So I checked the metadata and saw that alot of movies had a wrong "added" date. msedge_7mmvwLDJW2

So I went into Jellyfin and changed this setting at my library:

msedge_yuW50USOog

Before it was set to: Use file creation date.

Now it finally picks up my latest movie's correctly and Jellyseerr finds it with a Recently added scan! Hurray! Discord_s1KBWqhVgu

Sorry for the long message, hope that anyone that has the same problem can use this info.

Fallenbagel commented 2 years ago

@zeroquinc it was the metadata date problem?

zeroquinc commented 2 years ago

@Fallenbagel Yes, since I changed the Jellyfin setting Date added behavior for new content to Use data scanned into library the issue is solved. The metadata for Date added in Jellyfin was wrong for all movies. I manually fixed my existing movies since I don't have a huge library and my new movies are getting the right metadata now. I also fixed the issue that my newest movies didn't got categorized in the Latest movies section in Jellyfin, which probably is the category that Jellyseerr scans when running a Recently added scan.

Fallenbagel commented 2 years ago

Alright I'm closing this issue then c; Glad you worked it out!