Jump to content
linuxserver.io

[Support] Linuxserver.io - Kodi-Headless

592 posts in this topic Last Reply

Recommended Posts

Krypton Support yet ?

 

Follow the link to the git repo in the OP and it's not that hard to set Krypton as a branch option

 

It's not default branch yet until the kodi dev in charge of their ppa comes back off holiday

 

Shot, worked like a charm.

Share this post


Link to post

Krypton is now the default branch for this.

 

anyone pulling a new latest that are still using jarvis, you will have to add :Jarvis to your Repository: line in the template.

Share this post


Link to post

My container/docker has a Version variable setting.  It's set to 16 which is what I need as all my devices are on Jarvis.  Today I see my container/docker is running 17 (Krypton).

 

1) Does the Version variable no longer work?

2) How do I get back to Jarvis ?

Share this post


Link to post

My container/docker has a Version variable setting.  It's set to 16 which is what I need as all my devices are on Jarvis.  Today I see my container/docker is running 17 (Krypton).

 

1) Does the Version variable no longer work?

2) How do I get back to Jarvis ?

 

by using

:Jarvis 

in the repository section of the template.

 

it's in the OP, admittedly without capitalisation of the first letter, but the github readme also documents it.

Share this post


Link to post

Thanks.  I rarely go back to an OP of a thread that I've been following for a while.

 

Does this mean the Version variable is redundant/deprecated?

Share this post


Link to post

Yep, has been for a long time

 

How does one get an updated docker that rejects that? I followed the instructions that are listed in the docker setup screen on Unraid which still mentions Version but no mention of the me method?

 

Do I need to delete the docker and recreate it, or is it something that can be pushed during a weekly update?

Share this post


Link to post

Delete your existing template and re-add it from CA

Share this post


Link to post

Is there a way to install Watchdog into kodi-headless?  I'm new to Docker in general but I think I have it running ok, here's my kodi.log:

 

http://pastebin.com/9UAPd9DV

 

I wasn't sure if there's something cooked in to trigger library updates, or if not how that's usually initiated.

Share this post


Link to post
10 hours ago, Scope666 said:

 

I wasn't sure if there's something cooked in to trigger library updates, or if not how that's usually initiated.

 

I just let sonarr and couchpotato update the library after adding a movie or show.

Share this post


Link to post
1 hour ago, eroz said:

 

I just let sonarr and couchpotato update the library after adding a movie or show.

 

I ended up figuring it out.  I copied the "service.watchdog" folder from another install into the Docker container, then went into the Web UI and flipped this button.  Seems to be working nicely:

 

http://prnt.sc/eco8mz

Share this post


Link to post

I have a lot of old content which no longer exists on disk but a Library Scan shows the following errors

http://10.0.0.20:8123/jsonrpc?request={%22jsonrpc%22:%222.0%22,%22method%22:%22VideoLibrary.Scan%22}

 

 

Quote

 

21:43:58.909 T:140086733698816 WARNING: Process directory 'smb://10.0.0.20/video/TV/Minority Report/' does not exist - skipping scan.

21:43:58.909 T:140086733698816 WARNING: Process directory 'smb://10.0.0.20/video/TV/Power.2014.S03E02.720p.HDTV.x264/' does not exist - skipping scan.

21:43:58.909 T:140086733698816 WARNING: Process directory 'smb://10.0.0.20/video/TV/The Following/' does not exist - skipping scan.

21:43:58.910 T:140086733698816 WARNING: Process directory 'smb://10.0.0.20/video/TV/The Millers/' does not exist - skipping scan.

21:43:58.910 T:140086733698816  NOTICE: VideoInfoScanner: Finished scan. Scanning for video info took 00:14

 

 

A Library Clean doesn't remove them

http://10.0.0.20:8123/jsonrpc?request={%22jsonrpc%22:%222.0%22,%22method%22:%22VideoLibrary.Clean%22}

 

I tried to start from scratch by first backing up my MySQL db and then Dropping all tables.
I already removed all existing files from  /userdata/Database

 

 

When I start the container, the tables get recreated but a Library Scan doesn't actually find anything new and the database shows nothing is added.

 

Am I missing something or does this docker container require an initial library scan be done on a different machine?

 

thanks.

Share this post


Link to post

I always do my initial scan on a different machine...

Share this post


Link to post
11 minutes ago, CHBMB said:

I always do my initial scan on a different machine...

 

Same here ... usually I go into a FILE - LIST view, and can tell pretty quickly that way what was scraped in and what needs a little "help"  (manual refresh, sometimes changing the title that's searched)

Share this post


Link to post

Where is the Media type stored?

 

I tried a media scan from a different machine and reverted it back to a fresh install..

 

Same method as above

 

First backing up my MySQL db and then Dropping all tables.
Removed all existing files from  /userdata/Database

 

I initiated a Library Scan but it didn't find anything.

 

I then went to  Library / Videos / TV / (Context Menu)  / Edit Sources /  "This directory contains" was blank so I set it to   "TV Shows"

I did the same for Movies.

 

Now a Library Scan finds everything.

 

thx

Share this post


Link to post
17 minutes ago, surge919 said:

I then went to  Library / Videos / TV / (Context Menu)  / Edit Sources /  "This directory contains" was blank so I set it to   "TV Shows"

I did the same for Movies.

This happens on all Kodi's whether headless or not.  What's happening is that the initial scan and/or settings for the library is using a different scraper than the current instance.  Kodi headless will only use the default scraper unless you jump through major hoops to install manually the different scrapers.  Why I tend to prefer a VM just for background media scanning purposes.

Share this post


Link to post
1 minute ago, Squid said:

This happens on all Kodi's whether headless or not.  What's happening is that the initial scan and/or settings for the library is using a different scraper than the current instance.  Kodi headless will only use the default scraper unless you jump through major hoops to install manually the different scrapers.  Why I tend to prefer a VM just for background media scanning purposes.

 

What do you mean about your comment about leaving a VM for background scanning?

 

Once my initial scan is done will all future scans be handled correctly with just the headless running?

Share this post


Link to post
Just now, surge919 said:

 

What do you mean about your comment about leaving a VM for background scanning?

 

Once my initial scan is done will all future scans be handled correctly with just the headless running?

Absolutely.  I just personally hate the default scraper so I run a VM with Kodi just to handle it.

Share this post


Link to post

The Media type information is stored in the Table called "path"

 

I have a Library Scan working without first having to run the scan on a different machine.

 

Here are the steps with everything wiped.

 

First backing up the  MySQL dbs (MyMusic* and MyVideos*)  and then Dropping all tables.
Removed all existing files from  /userdata/Database

 

Start up Kodi Headless docker so the DBs are created (MyMusic60 and MyVideos107)

 

In PhpMyAdmin (or whatever your choose), go to the MyVideos107 DB and run the following SQL  (replacing with the IP address and path of your files)

 

Quote

 

INSERT INTO `path` (`idPath`, `strPath`, `strContent`, `strScraper`, `strHash`, `scanRecursive`, `useFolderNames`, `strSettings`, `noUpdate`, `exclude`, `dateAdded`, `idParentPath`) VALUES

(1, 'smb://10.0.0.20/video/Movies/', 'movies', 'metadata.themoviedb.org', NULL, 2147483647, 1, '<settings><setting id="RatingS" value="TMDb" /><setting id="certprefix" value="Rated " /><setting id="fanart" value="true" /><setting id="keeporiginaltitle" value="false" /><setting id="language" value="en" /><setting id="tmdbcertcountry" value="us" /><setting id="trailer" value="true" /></settings>', 0, 0, NULL, NULL),

(2, 'smb://10.0.0.20/video/TV/', 'tvshows', 'metadata.tvdb.com', NULL, 0, 0, '<settings><setting id="RatingS" value="TheTVDB" /><setting id="absolutenumber" value="false" /><setting id="dvdorder" value="false" /><setting id="fallback" value="true" /><setting id="fanart" value="true" /><setting id="language" value="en" /></settings>', 0, 0, NULL, NULL);

 

 

kick off the Library Update

http://10.0.0.20:8123/jsonrpc?request={%22jsonrpc%22:%222.0%22,%22method%22:%22VideoLibrary.Scan%22}

 

I wiped everything and repeated this a few times and it worked everytime.. YMMV

 

Share this post


Link to post

I currently have Kodi-Headless installed.  It's only function is to be running 24/7 to receive notifications to update the library if something has completed through another media downloading docker.

 

Recently, Kodi-Headless has been having issues scanning and updating when a movie is added to the source folder.

 

If I go to http://192.168.1.3:8080/#browser/ to view my source files, I can see the folder containing the movies including the new ones which have yet to be added/scraped.

 

Here is the log file:

https://pastebin.com/raw/57H84sGk

 

 

Share this post


Link to post

I turned on debug log and noticed that it IS searching through the tv shows directory:

04:02:12.584 T:47275985876736  NOTICE: VideoInfoScanner: Starting scan ..
04:02:12.584 T:47275981596416   DEBUG: CAnnouncementManager - Announcement: OnScanStarted from xbmc
04:02:12.650 T:47275985876736   DEBUG: VideoInfoScanner: Skipping dir 'smb://TOWER/tv/Cosmos/' due to no change
...
...
04:02:12.986 T:47275985876736  NOTICE: VideoInfoScanner: Finished scan. Scanning for video info took 00:00
04:02:12.986 T:47275981596416   DEBUG: CAnnouncementManager - Announcement: OnScanFinished from xbmc


For some reason it is not scanning through the movies directory.

I tripled checked the sources.xml file as well as the web interface:

 

sources.xml
f93f874350df48d089cfa483a0da002f.png

 

Web Interface
f45d6889f00046119763773a20901b9e.png

 

As is seen in the above, the source has been added.  And upon clicking, the movies are visible.

From the digging I've done, I should be good to go.  But for some reason, the movie library is being overlooked.

Edited by Living Legend

Share this post


Link to post

Scratch the above.

 

After following the log for a few minutes, I noticed it actually was running through this source.  It seems to lag behind the other by a few minutes, and runs after the tv source is scanned for a second time, but it did finally come up.

Share this post


Link to post

 The movie being overlooked has been a bug for a while.  I let CP handle that or fire up kodi on my pc and run a manual update. 

Share this post


Link to post

How can CP handle a Kodi database scrape and update?

 

I see how I can send a notification to Kodi so Kodi performs the scrape.  But how can CP actually perform its own scrape and DB update?

 

And without this working, what other reason do you have to run a headless Kodi?

Edited by Living Legend

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.