Jump to content

Kodi Script Error - Debug Log


Recommended Posts

Angelblue05
Posted (edited)

You should try it out, in case, because we write directly to database maybe something old remained around even after the reset and is causing this to happen. The way the API is read for Kodi is if the item is played in Emby, then write Emby playcount to the database. If it's unplayed, then playcount is zero.

 

@@cw-kid

Edit: If it still happens, can you post your log of the sync? - don't forget to set the log level to info before the sync starts! Thanks :)

Edited by Angelblue05
cw-kid
Posted

OK will do.

 

I am right in thinking at this stage the Kodi nfo files have nothing to do with it, now I have all my content imported in to Emby? 

 

I just looked at the "2 Guns" nfo file and it looks wrong:

 

<playcount>0</playcount>
  <watched>true</watched>
 
The <watched> tag I added with the Notepad++ find and replace process earlier. The <playcount> tag, not sure if Kodi or Emby has put that back in there.
cw-kid
Posted (edited)

This is interesting, if in the Emby web GUI I mark "2 Guns" as not watched, then the nfo file has changed to this:

 

<playcount>0</playcount>
  <watched>false</watched>
 
If I then mark it as watched again in the Emby web GUI now the nfo file has changed to this:
 
<playcount>1</playcount>
  <watched>true</watched>
 
So I wonder why playcount was initially set as zero even when "2 Guns" was initially marked as watched. 
Edited by cw-kid
Angelblue05
Posted

Really odd, I will add a something for this then. Thanks :) I didn't think there was a scenario where playcount could be 0 and the item played, but it seems it can happen.

cw-kid
Posted

"16 Blocks" is another title that is marked as watched in Emby web GUI but is showing as unwatched in Kodi. If I look at its nfo file it also looks wrong:

 

<playcount>0</playcount>
  <watched>true</watched>
Angelblue05
Posted

@@cw-kid can you try the github version to see if it fixes the problem? https://github.com/MediaBrowser/Emby.Kodi

 

All you need to do is import from scratch again. But before doing that, download the github zip. Go to %appdata/Roaming/Kodi/addons/plugin.video.emby and replace everything with the content from the zip. Start Kodi and let the initial scan run and let me know if those problematic titles are ok now. Thanks :)

cw-kid
Posted

When you say import from scratch, you mean I just do a local DB reset again in Kodi (and delete DB file), but first updating the add-ons files ? 

 

Cheers

Angelblue05
Posted

Oops, yes this is correct

 

 

Sent from my iPhone using Tapatalk

cw-kid
Posted

OK I deleted the DB and updated the add-on and its doing a full sync now, should take some hours to complete.

Angelblue05
Posted

Hours? Just how big is your library exactly??

 

 

Sent from my iPhone using Tapatalk

cw-kid
Posted

Scan started at 11:30am its now 6pm and the scan has only just completed!

Angelblue05
Posted

Seriously :( well hopefully this is the last time! I added a playcount fix following the scenario where item is played but playcount is zero. It should display your problem movies as watched, now. *fingers crossed*

 

 

Sent from my iPhone using Tapatalk

  • Like 1
cw-kid
Posted

Initial quick look at the movies and the watch flags appear to be correct now  :D

 

THANK YOU!

  • Like 1
Angelblue05
Posted

Thank you for your patience, :) I'm just glad we were able to solve this!

 

 

Sent from my iPhone using Tapatalk

cw-kid
Posted

No worries, I am going to look at the mediainfo icons next a bit more closely, see what's affected with that issue exactly? 

 

Did you see the other new thread about albums with multi discs and sorting in Kodi? Can you replicate that issue?

 

Cheers

cw-kid
Posted (edited)

Hours? Just how big is your library exactly??

 

 

Sent from my iPhone using Tapatalk

Edited by cw-kid
cw-kid
Posted

Out of interest I just added a new movie title and Emby creates a new nfo file, inside is:

 

<playcount>0</playcount>
  <watched>false</watched>
 
So looks like Emby is creating both those tags for new titles. 
Angelblue05
Posted (edited)

You still have the wrong icons reflecting? It should not affect anything. When you play something the correct information is detected automatically when the path is given to Kodi.

 

The best way to test might be to try and replace an item in quality and see if the icon changes to reflect the new mediainfo.

 

Yes I've seen your other post. However music is really Marcelveldt's area. He will come back to you on this, as soon as he has a chance, I'm sure :)

 

 

Sent from my iPhone using Tapatalk

Edited by Angelblue05
cw-kid
Posted

Yes for those two .MOV files we were talking about in the other thread, they are actually SD but in Kodi it has a 1080P flag still. If I start to play one and then stop it, the flag is still wrong when viewing the movie information page. 

 

Which is why I was going to check all the various video formats to see what flags they are showing and if they are correct or not?

  • Like 1
Angelblue05
Posted (edited)

 

Hours? Just how big is your library exactly??

 

 

Sent from my iPhone using Tapatalk

Well that's not normal, I think :/ Other than movies (which should be fast to process) your library is not as large as I thought.

 

 

Sent from my iPhone using Tapatalk

Edited by Angelblue05
cw-kid
Posted

There is a flag missing as well, "AVC1"

 

555cc6aaae359_MediaInfoFlags1.png

 

Media Info, the flags should be saying SD 480p

 

Complete name                            : \\whs\Kids Movies\Apple\Anastasia (1997)\Anastasia.mov
Format                                   : MPEG-4
Format profile                           : QuickTime
Codec ID                                 : qt  
File size                                : 1.05 GiB
Duration                                 : 1h 34mn
Overall bit rate mode                    : Variable
Overall bit rate                         : 1 593 Kbps
Movie name                               : Anastasia (1997)
Performer                                : Gary Goldman & Don Bluth
Genre                                    : Kids & Family
ContentType                              : Short Film
Description                              : A spellbinding mix of adventure, comedy, romance and music, this acclaimed animated spectacular tells the thrilling story of the lost Russian princess Anastasia and her quest to find her true identity. When the shadow of revolution falls across Russia, th
Recorded date                            : UTC 1999-11-16 08:00:00
Encoded date                             : UTC 2011-02-11 02:38:05
Tagged date                              : UTC 2011-02-11 02:51:47
Writing library                          : Apple QuickTime
Copyright                                : © 1997 Twentieth Century Fox Film Corporation.
Cover                                    : Yes
 
Video
ID                                       : 2
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : Main@L2.2
Format settings, CABAC                   : No
Format settings, ReFrames                : 2 frames
Format settings, GOP                     : M=2, N=24
Codec ID                                 : avc1
Codec ID/Info                            : Advanced Video Coding
Duration                                 : 1h 34mn
Duration_LastFrame                       : -8ms
Bit rate                                 : 1 460 Kbps
Width                                    : 540 pixels
Height                                   : 376 pixels
Display aspect ratio                     : 1.915
Original display aspect ratio            : 1.436
Frame rate mode                          : Constant
Frame rate                               : 23.976 fps
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.300
Stream size                              : 983 MiB (92%)
Language                                 : English
Encoded date                             : UTC 2011-02-11 02:38:05
Tagged date                              : UTC 2011-02-11 02:51:47
Color primaries                          : BT.601 NTSC
Transfer characteristics                 : BT.709
Matrix coefficients                      : BT.601
 
Audio
ID                                       : 1
Format                                   : AAC
Format/Info                              : Advanced Audio Codec
Format profile                           : LC
Duration                                 : 1h 34mn
Bit rate mode                            : Variable
Bit rate                                 : 126 Kbps
Channel(s)                               : 2 channels
Channel positions                        : Front: L R
Sampling rate                            : 44.1 KHz
Compression mode                         : Lossy
Stream size                              : 84.7 MiB (8%)
Language                                 : English
Encoded date                             : UTC 2011-02-11 02:38:05
Tagged date                              : UTC 2011-02-11 02:51:47
 
Here is the same movie in Kodi still connected to MySQL
 
555cc7728391f_MediaInfoFlags2.png
cw-kid
Posted (edited)

Well that's not normal, I think :/ Other than movies (which should be fast to process) your library is not as large as I thought.

 

 

Sent from my iPhone using Tapatalk

 

Its only the first scan that takes that long, other scans after that take I dunno 10 minutes at a guess maybe less?

Edited by cw-kid
Angelblue05
Posted

Yea but even then, I'm trying to think... I have less movies but same amount of tv shows and it takes me 2-3minutes for the initial sync... My brother has triple the tv shows, less movies and it only takes 30minutes. Even start up sync should be 1-2 seconds, not 10 minutes. I wonder what could explain this...

 

 

Sent from my iPhone using Tapatalk

Angelblue05
Posted

@@cw-kid would you say all your media info tags are incorrect or just your quick time content?

 

 

Sent from my iPhone using Tapatalk

cw-kid
Posted

@@cw-kid would you say all your media info tags are incorrect or just your quick time content?

 

 

Sent from my iPhone using Tapatalk

 

I couldn't say for sure now, which is why I will check each format type properly and make a list of what's what. 

  • Like 1
Guest
This topic is now closed to further replies.
×
×
  • Create New...