Jump to content


Photo

Force Library Scan


  • Please log in to reply
17 replies to this topic

#1 eskimos20 OFFLINE  

eskimos20

    Newbie

  • Members
  • 3 posts
  • Local time: 04:26 AM

Posted 26 February 2019 - 08:10 AM

Hi! 

 

I am wondering if there is a way from terminal or a script that can force library scans at a given time, like every hour ? 

 

My problem is that I have Ubuntu and I am running "rar2fs" to make emby see my .mkv files inside my rar-files. 

 

And I am thinking it might be "rar2fs" that is causing my autoscanning of librarys not working. 

 

But when I run a manual update everything works, and YES i have checked the box for auto scanning on each share. :D

 

Can I force a scan with a linux command ? 

 

/Eskimos

 



#2 eskimos20 OFFLINE  

eskimos20

    Newbie

  • Members
  • 3 posts
  • Local time: 04:26 AM

Posted 26 February 2019 - 08:55 AM

Found scheduled tasks, did not see that earlier! 

 

Nevermind! :D



#3 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 153496 posts
  • Local time: 11:26 PM

Posted 26 February 2019 - 02:43 PM

You can also run a scan from the library setup screen. Thanks.



#4 mbc0 OFFLINE  

mbc0

    Advanced Member

  • Alpha Testers
  • 531 posts
  • Local time: 04:26 AM

Posted 23 February 2020 - 06:50 AM

Hi, 

 

Are there conditions that Emby will not scan a library? like if there is a stream/transcode, if so, is there a way to override it?

 

Thanks



#5 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 153496 posts
  • Local time: 11:26 PM

Posted 24 February 2020 - 12:02 AM

Hi, 

 

Are there conditions that Emby will not scan a library? like if there is a stream/transcode, if so, is there a way to override it?

 

Thanks

 

Hi, no, there aren't any conditions like that at this time.



#6 mbc0 OFFLINE  

mbc0

    Advanced Member

  • Alpha Testers
  • 531 posts
  • Local time: 04:26 AM

Posted 24 February 2020 - 05:02 PM

Hi Luke, 

 

Thanks for the reply, 

 

There have been quite a few instances where I have dropped in a Movie or something to watch (like on Sunday) and waited up to half an hour and nothing.  no tasks were running just my daughter watching a tv show.  I restarted emby and within 30 seconds what I dropped into the library appeared so wondering what holds it up?

 

Thank you



#7 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 153496 posts
  • Local time: 11:26 PM

Posted 25 February 2020 - 12:35 AM

Hi Luke, 

 

Thanks for the reply, 

 

There have been quite a few instances where I have dropped in a Movie or something to watch (like on Sunday) and waited up to half an hour and nothing.  no tasks were running just my daughter watching a tv show.  I restarted emby and within 30 seconds what I dropped into the library appeared so wondering what holds it up?

 

Thank you

 

Did you run a library scan?



#8 mbc0 OFFLINE  

mbc0

    Advanced Member

  • Alpha Testers
  • 531 posts
  • Local time: 04:26 AM

Posted 25 February 2020 - 06:30 AM

yes, specific library scan, in my last case on Sunday just my sport library.



#9 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 153496 posts
  • Local time: 11:26 PM

Posted 25 February 2020 - 11:39 AM

We'd have to go over a specific example. Thanks.

#10 mbc0 OFFLINE  

mbc0

    Advanced Member

  • Alpha Testers
  • 531 posts
  • Local time: 04:26 AM

Posted 25 February 2020 - 12:40 PM

I understand, next time I notice this I will send logs.

 

Thank you



#11 mastrmind11 OFFLINE  

mastrmind11

    Advanced Member

  • Members
  • 3018 posts
  • Local time: 11:26 PM
  • LocationLong Island, NY

Posted 25 February 2020 - 03:00 PM

 

 

Can I force a scan with a linux command ? 

 

/Eskimos

yes, look at the API docs, or search the forums, there are a couple of examples.  Basically create an admin user in emby, give the user an api key, and issue a curl command to emby.  You can schedule it via cron.



#12 mbc0 OFFLINE  

mbc0

    Advanced Member

  • Alpha Testers
  • 531 posts
  • Local time: 04:26 AM

Posted 05 March 2020 - 03:40 PM

We'd have to go over a specific example. Thanks.

 

Hi Luke, it has happened again today.

 

An episode was placed in the library 10 hours ago, the library is set to monitor, and emby has still not picked it up.

 

I have tried scanning the library a few times as well

 

I will pm you my logs.

 

Many Thanks!

 

5e6155a2b69dd_Annotation20200305193655.j


Edited by mbc0, 05 March 2020 - 03:42 PM.


#13 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 153496 posts
  • Local time: 11:26 PM

Posted 05 March 2020 - 03:44 PM

Why do you feel it wasn't picked up?



#14 mbc0 OFFLINE  

mbc0

    Advanced Member

  • Alpha Testers
  • 531 posts
  • Local time: 04:26 AM

Posted 05 March 2020 - 03:48 PM

because it is still not showing in emby and no nfo file has been created

 

5e61579846a3a_Annotation20200305194713.j



#15 mbc0 OFFLINE  

mbc0

    Advanced Member

  • Alpha Testers
  • 531 posts
  • Local time: 04:26 AM

Posted 05 March 2020 - 04:22 PM

ok, as you can see, after 11 hours emby detected the file (my scans are set to 5am so that's not the reason it was found now) also, on a sidenote, do you have any idea why episode 6 shows the series front cover and is not a screen cap like the other 6 episodes?

 

5e615f0013ada_Annotation20200305201542.j

 

5e615f7510231_Annotation20200305202151.j



#16 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 153496 posts
  • Local time: 11:26 PM

Posted 05 March 2020 - 04:23 PM

I don't know, sorry. Perhaps the log from when it was scanned in can tell us why an image wasn't downloaded.



#17 Happy2Play OFFLINE  

Happy2Play

    Trial and Error

  • Moderators
  • 18515 posts
  • Local time: 08:26 PM
  • LocationWashington State

Posted 05 March 2020 - 04:25 PM

I would assume the provider didn't have one when you added the episode.

 

that image was modified 3-3-2020  so the item would need to search for missing.

 

But is sounds like a normal library scan picked up your media, not RTM.  As you can see the 12 hour time difference in file and nfo.


Edited by Happy2Play, 05 March 2020 - 04:33 PM.


#18 mbc0 OFFLINE  

mbc0

    Advanced Member

  • Alpha Testers
  • 531 posts
  • Local time: 04:26 AM

Posted 05 March 2020 - 04:50 PM

I did a couple of manual library scans around 6pm (two hours before the file was detected) so maybe that was what did it? 

 

Hopefully the logs will show why it was not automatically detected?

 

Thank you






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users