CyferShepard / Jellystat

Jellystat is a free and open source Statistics App for Jellyfin
MIT License
887 stars 30 forks source link

Jellystat does not pull/sync libraries that are "Photos" type. #129

Open Istria1704 opened 7 months ago

Istria1704 commented 7 months ago

Describe the bug In the library tab, my libraries that are of the "Photos" type ("Mixed" in Jellystat) are not synced. The libraries of "Movies" and "TV Shows" type are synced properly. See screenshot. I use the "Photos" type library for regular videos (non-Movies) like homevideos or screenrecordings.

Environment Details (please complete the following information):

To Reproduce Steps to reproduce the behavior:

  1. Install clean jellystat docker container
  2. Connect to jellyfin server with API key.
  3. Wait for the initial scan to finish.
  4. Watch a video from a "Photos" type library.
  5. Do a second manual scan (just in case).
  6. Check the "Activity" page. The view will be shown.
  7. Check the "Library" page. Everything is "0" or "N/A" and the view count is still 0.

Expected behavior "Photos" Libraries should also be scanned/imported.

Screenshots image image

Task Logs

Syncing... 1/4
Beginning Library Item Sync
0 Rows Inserted. 296 Rows Updated.
0 Library Items Archived.
Item Sync Complete
Syncing... 2/4
Beginning Seasons and Episode sync
Seasons: 0 Rows Inserted. 108 Rows Updated.
Episodes: 0 Rows Inserted. 1513 Rows Updated.
Sync Complete
Syncing... 3/4
Beginning File Info Sync
0 Item Info inserted. 251 Item Info Updated
0 Episodes Info inserted. 1513 Episodes Info Updated
Info Sync Complete
Syncing... 4/4
Removing Orphaned FileInfo/Episode/Season Records
Orphaned FileInfo/Episode/Season Removed.
Sync Complete
Updating Library Stats
Library Stats Updated.

Container Logs ---Will add logs as soon as I find where they are stored---

Istria1704 commented 7 months ago

Added Full Scan log.

What catches the eye is that it is scanning 4 libraries, while I have 7 of them in total:

It seems like it only scans the Movies and Series type libraries and not the Photos/Mixed type. All 7 libraries do show up in the "Library Settings" page and all 7 are marked as "Tracked".

EDIT: I just came across this post: https://github.com/CyferShepard/Jellystat/issues/66#issuecomment-1830483779 It seems other types of libraries share the same problem. In the case of this post, the Music-Video library is not synced. Could it be the sync is only coded to scan for Movies and Series type libraries?