20 Nov 2019 - TVDB Scraper v3.2.0 is now available which reinstates scraping. TVDB are still in the process of fixing a number of bugs so there may still be further breakages. See this post. 2901570 (post)

WIP Ember Media Manager 1.4.8.0 ALPHA - Discussion Thread
(2017-08-22, 11:58)DanCooper Wrote:
(2017-08-22, 01:45)dr-oopie Wrote: yes the path is correct i actually went in the sources too to check that like 2 days ago. that exact path works fine in ember with say "nfs://MediaServer/TV_Shows-2/Breaking.Bad/"

to add to your first post edit, i only noticed this because on season 03, i tried to get the sync state from kodi to ember since it wasnt updating thats when i realized of this error. so even tho kodi has them as watched, ember cant update it. i also tried to see season 02 and even tho all that season is watched on kodi and in the nfo file, ember wont sync if i reload or edit it. i tried removing the series completely from both kodi and ember and first tried to update in kodi, kodi worked fine but ember didnt sync to kodi. i again removed the series from both and used ember to sync. once again, it shows on kodi but gives me the sync fail even tho it does update kodi. so i have to manually click on each episode and to mark them as watched so it updates the nfo. just was bugging me of how some work and some dont.

If the tv show is listed in Ember and Kodi and the sync does not work than the next step is to check what Kodi is doing while syncing:

  1. enable Debug logging in Kodi (Settings => System => Logging => enable debug logging
  2. enable component-specific logging
  3. enable verbose logging for JSON-RPC requests (Settings => System => Logging => Specify compontent-specified logging...))
  4. run a sync from Ember
  5. open the Kodi log and search for the sync sequence

Code:
11:21:04.682 T:14468   DEBUG: CWebServer[8090]: request received for /jsonrpc
11:21:04.687 T:21424   DEBUG: Previous line repeats 1 times.
11:21:04.687 T:21424   DEBUG: JSONRPC: Incoming request: {

                                              "jsonrpc": "2.0",

                                              "method": "JSONRPC.Ping",

                                              "params": {},

                                              "id": 0

                                            }
11:21:04.819 T:21424   DEBUG: CWebServer[8090]: request received for /jsonrpc
11:21:04.820 T:12608   DEBUG: Previous line repeats 1 times.
11:21:04.820 T:12608   DEBUG: JSONRPC: Incoming request: {

                                              "jsonrpc": "2.0",

                                              "method": "VideoLibrary.GetTVShows",

                                              "params": {

                                                "filter": {

                                                  "or": [

                                                    {

                                                      "field": "path",

                                                      "operator": "is",

                                                      "value": "D:\\Projekte VisualStudio\\Ember Test\\Serien\\Family Guy\\"

                                                    }

                                                  ]

                                                }

                                              },

                                              "id": 1

                                            }
11:21:04.824 T:12608   DEBUG: CVideoDatabase::RunQuery took 1 ms for 0 items query: SELECT * FROM tvshow_view  WHERE ((tvshow_view.strPath LIKE 'D:\Projekte VisualStudio\Ember Test\Serien\Family Guy\'))
11:21:04.850 T:12608   DEBUG: CWebServer[8090]: request received for /jsonrpc
11:21:04.851 T:24264   DEBUG: Previous line repeats 1 times.
11:21:04.851 T:24264   DEBUG: JSONRPC: Incoming request: {

                                              "jsonrpc": "2.0",

                                              "method": "VideoLibrary.Scan",

                                              "params": {

                                                "directory": "D:\\Projekte VisualStudio\\Ember Test\\Serien\\Family Guy\\"

                                              },

                                              "id": 2

                                            }
11:21:04.860 T:24264   DEBUG: CWebServer[8090]: request received for /jsonrpc
11:21:04.861 T:24548   DEBUG: Previous line repeats 1 times.
11:21:04.861 T:24548   DEBUG: JSONRPC: Incoming request: {

                                              "jsonrpc": "2.0",

                                              "method": "XBMC.GetInfoBooleans",

                                              "params": {

                                                "booleans": [

                                                  "Library.IsScanningVideo"

                                                ]

                                              },

                                              "id": 3

                                            }
11:21:04.873 T:15348   DEBUG: ------ Window Init (DialogExtendedProgressBar.xml) ------
11:21:04.876 T:14520  NOTICE: VideoInfoScanner: Starting scan ..
11:21:04.911 T:14520   DEBUG: VideoInfoScanner: Found matching full NFO file: D:\Projekte VisualStudio\Ember Test\Serien\Family Guy\tvshow.nfo
11:21:04.914 T:14520   DEBUG: VideoInfoScanner: Adding new item to tvshows:D:\Projekte VisualStudio\Ember Test\Serien\Family Guy\
11:21:04.971 T:14520   DEBUG: VideoInfoScanner: Scanning dir 'D:\Projekte VisualStudio\Ember Test\Serien\Family Guy\' as not in the database
11:21:04.972 T:14520   DEBUG: VideoInfoScanner: Found episode match D:\Projekte VisualStudio\Ember Test\Serien\Family Guy\Season 00\Family Guy - S00E12 - Stewie & Brian Live at the Emmy's.mp4 (s0e12) [s([0-9]+)[ ._x-]*e([0-9]+(?:(?:[a-i]|\.[1-9])(?![0-9]))?)([^\\/]*)$]
11:21:04.994 T:14520   DEBUG: VideoInfoScanner: Found matching full NFO file: D:\Projekte VisualStudio\Ember Test\Serien\Family Guy\Season 00\Family Guy - S00E12 - Stewie & Brian Live at the Emmy's.nfo
11:21:04.997 T:14520   DEBUG: VideoInfoScanner: Adding new item to tvshows:D:\Projekte VisualStudio\Ember Test\Serien\Family Guy\Season 00\Family Guy - S00E12 - Stewie & Brian Live at the Emmy's.mp4
11:21:05.889 T:4480   DEBUG: JSONRPC: Incoming request: {

                                              "jsonrpc": "2.0",

                                              "method": "XBMC.GetInfoBooleans",

                                              "params": {

                                                "booleans": [

                                                  "Library.IsScanningVideo"

                                                ]

                                              },

                                              "id": 4

                                            }
11:21:06.156 T:14520  NOTICE: VideoInfoScanner: Finished scan. Scanning for video info took 00:01
11:21:06.893 T:4480   DEBUG: CWebServer[8090]: request received for /jsonrpc
11:21:06.894 T:2932   DEBUG: Previous line repeats 1 times.
11:21:06.894 T:2932   DEBUG: JSONRPC: Incoming request: {

                                              "jsonrpc": "2.0",

                                              "method": "XBMC.GetInfoBooleans",

                                              "params": {

                                                "booleans": [

                                                  "Library.IsScanningVideo"

                                                ]

                                              },

                                              "id": 5

                                            }
11:21:06.911 T:2932   DEBUG: CWebServer[8090]: request received for /jsonrpc
11:21:06.913 T:24008   DEBUG: Previous line repeats 1 times.
11:21:06.913 T:24008   DEBUG: JSONRPC: Incoming request: {

                                              "jsonrpc": "2.0",

                                              "method": "VideoLibrary.GetTVShows",

                                              "params": {

                                                "filter": {

                                                  "or": [

                                                    {

                                                      "field": "path",

                                                      "operator": "is",

                                                      "value": "D:\\Projekte VisualStudio\\Ember Test\\Serien\\Family Guy\\"

                                                    }

                                                  ]

                                                }

                                              },

                                              "id": 6

                                            }
11:21:06.917 T:24008   DEBUG: CVideoDatabase::RunQuery took 1 ms for 1 items query: SELECT * FROM tvshow_view  WHERE ((tvshow_view.strPath LIKE 'D:\Projekte VisualStudio\Ember Test\Serien\Family Guy\'))

FYI: I've removed some lines in my log that are not important to find you issue.

  1. First you should see is a Ping and, depending on Ember version, a GetHostJSONVersion request.
  2. After that Ember run a request to get the tv show ID. In this request you can see the path that will be searched in Kodis database. Double \\ or // is correct at this point. Please check if the path is correct.
  3. One of the next lines should be the SQL query that Kodi use to search the tv show in the database (in my case SELECT * FROM tvshow_view WHERE ((tvshow_view.strPath LIKE 'D:\Projekte VisualStudio\Ember Test\Serien\Family Guy\'))). Copy that one and past it in a new document for later use!
  4. If Kodi can't find the tv show, Ember starts a scan of this directory. The submitted path should be the same as in the GetShows request.
  5. The IsScanningVideo is a repeating request that Ember sends all second the check if Kodi is done with the directory scanning.
  6. Now you should see a VideoInfoScanner: Starting scan entry. The next lines are very important. You should see some useful information about folders, episodes and nfos. Please check this lines if Kodi log some errors or something other.
  7. The scan has been done if you can see the line VideoInfoScanner: Finished scan.
  8. Ember again try to get the tv show ID for the path. If Ember does not get an ID at this point you have to open the MySQL database from Kodi and look into the view "tvshow_view" or use the copied SQL query from the new document. Try to find out what's wrong with the query and post it here.

P.S.: As you can see the first query get "RunQuery took 1 ms for 0 items", the second one after scanning get "RunQuery took 1 ms for 1 items"
tried what you said and here is the log from kodi but i am not sure...
https://pastebin.com/vcLb4TV4

i went in to the database and could it be some ghosting database entries? i went and tried the clean video library but i dont think its deleting. im going to try to remove the tv show content type to none and i think it should ask me to clean the database which ill click yes, then i will check the sql again to see if the database gets cleaned up.

Image http://imgur.com/TztUcYE

edit: it looks like it was ghosting entries in the database causing issues. i went in and just cleared the paths of the shows causing the problems then updated the library in kody. the sync is working now. i am not sure if it has old files are still in the database since the kody didnt clean any of the tvshow content but it is at least syncing perfect now. think this will also fix the recently watched tv show that would jump you to the next episode from the main menu since it wouldnt load anything.
Reply
 
Thread Rating:
  • 2 Vote(s) - 5 Average


Messages In This Thread
nfo file status? - by NightMyst - 2017-06-21, 07:24
RE: Ember Media Manager 1.4.8.0 ALPHA - Discussion Thread - by dr-oopie - 2017-08-25, 21:24
Audio metadata error - by Doomnie - 2017-11-04, 08:16
EmberMM Import Poster.jpg - by MePoEmberMM - 2018-02-06, 01:27
User rating sync - by fred_gaou - 2018-04-28, 22:25
database is locked - by gorb - 2019-08-19, 11:41


Logout Mark Read Team Forum Stats Members Help
Ember Media Manager 1.4.8.0 ALPHA - Discussion Thread52