• Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below
  • Forum
  • Website
  • GitHub
  • Status
  • Translation
  • Features
  • Team
  • Rules
  • Help
  • Feeds
User Links
  • Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below

    Useful Links Forum Website GitHub Status Translation Features Team Rules Help Feeds
    Jellyfin Forum Support Troubleshooting Media Scanning & Identification One-click way to force a library rescan on a remote computer?

     
    • 0 Vote(s) - 0 Average

    One-click way to force a library rescan on a remote computer?

    thisisbommy
    Offline

    Junior Member

    Posts: 2
    Threads: 1
    Joined: 2025 Jan
    Reputation: 0
    Country:United Kingdom
    #1
    2025-01-27, 09:13 PM
    I run Jellyfin on a Mac mini with all my players running Infuse and accessing it remotely.

    When I need to force a library rescan (to find new content) I do this via the webUI.

    I wondered if there'd be a way to force a rescan with "one click" to make it more user-friendly for the others in my household.

    I'm one step away, with a bookmark to 
    http://192.168.1.100:8096/web/#/dashboard

    But I wondered if there might be a URL I could bookmark that effectively pushes the button for me and automatically launches the rescan command?
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #2
    2025-01-28, 03:30 PM
    If the disks are directly attached or are SMB shares, you can enable real time monitoring and it will just add new content immediately.

    If real time monitoring isn't an option (cloud storage or NFS share), bookmarks wouldn't be sufficient to "one click" refresh, since using the refresh endpoint requires an authorization header. You'd have to use a script to POST to the refresh endpoint with a valid authorization header.

    You can also increase the frequency that the library scan job runs. The default is every 12 hours. Dashboard > Scheduled Tasks > Scan Media Library.

    Change the interval to something smaller? Once an hour?
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    thisisbommy
    Offline

    Junior Member

    Posts: 2
    Threads: 1
    Joined: 2025 Jan
    Reputation: 0
    Country:United Kingdom
    #3
    2025-01-28, 03:35 PM
    Oh, I didn't realise that was an option! I've had a look but can't find it either. They're locally USB-connected APFS drives.
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #4
    2025-01-28, 04:11 PM
    The real time monitoring setting is in the config for each library.

       
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    BlueberryJelly
    Offline

    Junior Member

    Posts: 11
    Threads: 5
    Joined: 2024 Dec
    Reputation: 0
    Country:United States
    #5
    2025-04-08, 11:56 PM
    The real time monitoring does not appear to work in my environment. (I noticed the same thing with Emby before I moved to Jellyfin).

    In my newest setup, I have two WD Passport USB drives (one movies and one tv shows) hooked into the back of my Qnap NAS which is running Jellyfin 10.10.6.

    I move movies into the USB drive for movies and they do not appear unless I do a manual scan or the scheduled scan sometime later. Definitely not "it will just add new content immediately."

    I could I assume make the scheduled scan more frequent, but as I understand it, it scans everything again. Where an immediate scan on just the new items would be ideal.

    The same was true with Emby and my SMB shares with my other NAS drives.
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #6
    2025-04-09, 01:04 PM (This post was last modified: 2025-04-09, 01:04 PM by TheDreadPirate.)
    How well real time monitoring works over SMB depends on the device running SMB server. Each file being monitored over needs an individual inotify watcher process/thread and the host OS caps that number. 8196 is the default most of the time. That can be increased on plain Linux, but each inotify watcher uses a fixed amount of memory. If you have more files than the allowed number of inotify watchers, real time monitoring won't work for the remaining files.

    Because your SMB server is a QNAP NAS, I am not sure whether their OS will allow you to modify how many inotify watchers are allowed.
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    « Next Oldest | Next Newest »

    Users browsing this thread: 2 Guest(s)


    • View a Printable Version
    • Subscribe to this thread
    Forum Jump:

    Home · Team · Help · Contact
    © Designed by D&D - Powered by MyBB
    L


    Jellyfin

    The Free Software Media System

    Linear Mode
    Threaded Mode