Jump to content

Recently Added Albums Issue


Recommended Posts

Posted

I love Emby.  I love Kodi.  I love Emby for Kodi...for movies and episodes.  Emby for Kodi for music makes me want to pull my hair out.

 

I have all of my music tagged with Musicbrainz Picard.  I have ensured that all of the embedded dates ("created", "modified", "accessed") are correct in the files.  I have ensured that the "Date Added" is correct for both albums and songs in the Emby Metadata Manager.  I have ensured that the NFO files (which I let Emby create) have the correct "Date Added".  I am so OCD about these things.  And yet...

 

I did a database reset today to attempt to solve a previously posted, and yet unsolved, issue (https://emby.media/community/index.php?/topic/42197-music-library-item-changing-spontaneously/) and when I returned to my Recently Albums widget in Kodi, I was left with, not the most recent albums in Emby, but the albums with artists starting with the letter "Z" which would be, based on scanning in alphabetical order, the most recent albums added to Kodi.

 

I have had so many battles with Kodi/Emby over recently added albums.

 

My question is, what do I need to do from a settings standpoint, from a scanning standpoint, from a media standpoint, from ANY standpoint, to actually get my Recently Added Albums to match between Kodi and Emby???

 

I am using the Titan skin if that is any help.

Angelblue05
Posted (edited)

@@marcelveldt Do you know about this? If I recall, we use datetime for last scraped. Should we use the last modified date returned by emby or do you know if there's a way to use the proper date. I believe it's an optional field. I can't get swagger-ui to work on my side, so if you can look into it (resources/objects/music.py and the kodi database queries go into /objects/_kodi_music.py). For general query that apply to multiple media type, they are in _kodi_common.py

 

Let me know what you think.

 

Sent from my iPhone using Tapatalk

Edited by Angelblue05
Posted

@@marcelveldt Do you know about this? If I recall, we use datetime for last scraped. Should we use the last modified date returned by emby or do you know if there's a way to use the proper date. I believe it's an optional field. I can't get swagger-ui to work on my side, so if you can look into it (resources/objects/music.py and the kodi database queries go into /objects/_kodi_music.py). For general query that apply to multiple media type, they are in _kodi_common.py

 

Let me know what you think.

 

Sent from my iPhone using Tapatalk

 

Not sure if its an option but the "Date Added" field in Emby would probably be the most accurate.  That is what Emby uses.

 

Thanks a bunch for looking into this.

  • Like 1
Posted

Can you give this build to try? You'll need to repair your music library so it updates the last scraped value with the date added value.

 

This did not seem to help.  Here is my workflow:

 

1.   Removed Recently Added and Random albums widgets

2.   Installed provided build

3.   Restarted Kodi

4.   Repaired music database

5.   Restarted Kodi

6.   Added Recently Added and Random albums widget

7.   Restarted Kodi

 

Recently added was still showing the most recent Kodi additions, not Emby.  I also thought it was interesting that the Random albums widget didn't seem to refresh as it showed the exact same albums as before removing and re-adding.  Related issue maybe?

Posted

I also thought it was interesting that the Random albums widget didn't seem to refresh as it showed the exact same albums as before removing and re-adding.  Related issue maybe?

This was a skin helper related issue. The recently added issue remains.

Angelblue05
Posted (edited)

This is going to be a PITA to fix. It seems Kodi doesn't really have "recently added" field in the database. It takes recently added from the order the albums are added to the database. I will look for a solution. Thanks for your patience.

Edited by Angelblue05
marcelveldt
Posted

@@marcelveldt Do you know about this? If I recall, we use datetime for last scraped. Should we use the last modified date returned by emby or do you know if there's a way to use the proper date. I believe it's an optional field. I can't get swagger-ui to work on my side, so if you can look into it (resources/objects/music.py and the kodi database queries go into /objects/_kodi_music.py). For general query that apply to multiple media type, they are in _kodi_common.py

 

Let me know what you think.

 

Sent from my iPhone using Tapatalk

Hmm, I will have to dig into the code. From what I recall we use the same logic for music as we do for videos but I can remember vaguely that Emby handles the scrape dates differently and uses the file timestamps (or it's a setting in Emby)

marcelveldt
Posted

This is going to be a PITA to fix. It seems Kodi doesn't really have "recently added" field in the database. It takes recently added from the order the albums are added to the database. I will look for a solution. Thanks for your patience.

 

Ah yes, that was it, now I remember :-)

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