Kodi Community Forum
Beta Metadata Editor - Update library + .nfo informations - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Program Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=151)
+---- Thread: Beta Metadata Editor - Update library + .nfo informations (/showthread.php?tid=349035)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14


RE: Metadata Editor - Update library + .nfo informations - sualfred - 2020-01-13

So it's working fine? Had no feedback yet.


RE: Metadata Editor - Update library + .nfo informations - bobrap - 2020-01-13

Working great for me!  Most stuff is originally set using Media Companion.  Only thing I missed was auto updating the nfo watched status.  Not anymore Big Grin.  Haven't tried a lot of the other options yet.  If I find any problems, you'll be the first to know.  Wink


RE: Metadata Editor - Update library + .nfo informations - firewater - 2020-01-16

(2020-01-05, 12:11)sualfred Wrote: @Karellen 
I've reworked 50% of the addon. Could you run a test before I push it to the repo?

@firewater 
I've also added your request for a keymap:
RunScript(script.metadata.editor,action=setuserrating)
Or do you want it in the context menu?

https://github.com/sualfred/script.metadata.editor/tree/rework
Thank you so much!!! The lack of this feature has been the bane of my existence... I haven't been able to test it yet, but I'll report back how it goes when I can free up some time. Again, thanks a lot.


RE: Metadata Editor - Update library + .nfo informations - sualfred - 2020-01-16

@firewater 
Np. Also take a look at the settings for "Added dialog to add your own user rating after a playback has 100% ended (disabled by default)"


RE: Metadata Editor - Update library + .nfo informations - nessus - 2020-01-31

@sualfred
It looks like there is a bug with the Artist information. If you edit any Artist info then the standard Kodi Albums list (id=50) inside the MusicInformation dialog, it shows only the albums in your database.

Example artist: Bad Company. Before editing any info with Metadata Editor, the list in MusicInformation dialog it shows 16 albums. After editing it shows only those (4 items) that are in my library.

Using the latest github 2.0.5

Cheers
Nessus


RE: Metadata Editor - Update library + .nfo informations - sualfred - 2020-01-31

? The music db does not store albums that aren't available in the database


RE: Metadata Editor - Update library + .nfo informations - nessus - 2020-01-31

I am not follow. The Universal Artist Scraper has scraped all artist's albums and they showing fine in MusicInformation dialog under Kodi's standard albums list (id=50). This was working like this in all Kodi versions so far. Now, when you edit any data with Metadata Editor, the script clears that list and leaves only whatever albums are in database. IMHO this is not a proper behavior. The addon is supposed to edit some data without changing any other data.


Thanks
Nessus


RE: Metadata Editor - Update library + .nfo informations - Karellen - 2020-01-31

I think you are referring to the discography table in the MyMusic database.

When scraping an artist, a number of their albums are also scraped, even though you do not have them in your collection. All that is scraped is the album title and release year and it is displayed on the Artist Information Page in Estuary.

Sounds like the addon is clearing that data?


RE: Metadata Editor - Update library + .nfo informations - sualfred - 2020-01-31

I only update the fields that have been edited.

@DaveBlake 
Could this be a JSON issue?


RE: Metadata Editor - Update library + .nfo informations - DaveBlake - 2020-02-01

Yeap, you are doing a well overdue shakedown of the JSON AudioLibrary.SetXXXDetails @sualfred Smile
It is one of the dark and dusty old areas, implemented long before me and never used seriously.

The API does not provide a means to set the discography of an artist (a list of album names released by that artist returned by the scrapers, nothing to do with what albums the user has in their library), but editing the artist via JSON clears any existing discography.

So two three things are needed,
1) API addition to allow an artist discography to be set via JSON
2) Any existing values need preserving when JSON does not edit the discography
3) API addition to get the artist discography via JSON
Not hard, volunterring? Smile


RE: Metadata Editor - Update library + .nfo informations - sualfred - 2020-02-01

I think you overestimate me Smile
I understand the root of the problem, but no idea what has to be done in detail.


RE: Metadata Editor - Update library + .nfo informations - DaveBlake - 2020-02-01

Dawl... OK @sualfred then raise lack of access and clearing of discography as an issue with JSON API AudioLibrary.SetArtistDetails and GetArtistDetails please. Otherwise I'm bound to forget it!!


RE: Metadata Editor - Update library + .nfo informations - sualfred - 2020-02-01

@nessus 

My music data is not rich enough. Can you enable the loggin of the addon + debug log to capture it? I wanna attach it to the issue.


RE: Metadata Editor - Update library + .nfo informations - firewater - 2020-02-16

Sorry to keep you waiting on feedback, I requested a feature some posts back. I'm trying the script just now for the first time. I've installed the plugin with "Install from ZIP" and the "script.metadata.editor-2.0.6.zip" file on github. I've then modified my keymaps to <p>RunScript(script.metadata.editor,dbid=$INFO[ListItem.DBID],type=$INFO[ListItem.DBType])</p>, to test it out. When I focus a movie and press p, I'm then immediately prompted with an error telling me to check the log, where the relevant part says:

xml:
2020-02-16 00:19:15.515 T:123145502113792   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.AttributeError'>
                                            Error Contents: 'Database' object has no attribute '$INFO[ListItem.DBType]'
                                            Traceback (most recent call last):
                                              File "/Users/username/Library/Application Support/Kodi/addons/script.metadata.editor/default.py", line 98, in <module>
                                                Main()
                                              File "/Users/username/Library/Application Support/Kodi/addons/script.metadata.editor/default.py", line 68, in __init__
                                                self._editor()
                                              File "/Users/username/Library/Application Support/Kodi/addons/script.metadata.editor/default.py", line 89, in _editor
                                                editor = EditDialog(dbid=self.dbid, dbtype=self.dbtype)
                                              File "/Users/username/Library/Application Support/Kodi/addons/script.metadata.editor/resources/lib/editor.py", line 23, in __init__
                                                self.get_details()
                                              File "/Users/username/Library/Application Support/Kodi/addons/script.metadata.editor/resources/lib/editor.py", line 26, in get_details
                                                getattr(self.db, self.dbtype)()
                                            AttributeError: 'Database' object has no attribute '$INFO[ListItem.DBType]'
                                            -->End of Python script error report<--



RE: Metadata Editor - Update library + .nfo informations - sualfred - 2020-02-16

Info labels do not work on a keymap.


This forum uses Lukasz Tkacz MyBB addons.