2013-08-03, 10:37
Noob here, I have the Aeon Nox skin enabled but cannot see how I can access this feature?
(2013-03-11, 18:06)phil65 Wrote:(2013-03-11, 17:49)huviolan Wrote:(2013-03-09, 20:52)phil65 Wrote: i wrote a small script which uses JSON to manipulate the database info.
pretty much every database info can be edited.
only for movies atm, will probably extend it to episodes / etc
https://github.com/phil65/script.libraryeditor
Usage:
RunScript(script.libraryeditor,DBID=$INFO[ListItem.DBID])
that will open a popup where you can choose what to edit.
You´ll have to use " / " to seperate genres etc.
can be integrated into dialogvideoinfo and / or context menu.
cheers.
Hi Phil65
Thanks for the scripts! It is what I was looking for!!
But what it´s not so clear for me is the way of integrating it to the Aeon Nox skin (the one I am using, in the version 4.0.9)
Could you please give some more detailed idea about what you mean when you say "can be integrated into dialogvideoinfo and / or context menu" ??. How should I do that??
Sorry for my really basic question ( I suppose) but I am really new to the XBMC world, and I'll really apreciate your help on this, so I could use your script on it.
I´ll wait for your comments.
Regards and thanks in advance!
wait for the next version. it will be included then.
(2013-10-23, 16:17)japes Wrote:(2013-06-22, 16:43)tungmeister Wrote: Could Sort title please be added to the list of editable items for movies?
Please.
self._AddToList( xbmc.getLocalizedString(369),"title" )
self._AddToList( xbmc.getLocalizedString(20376),"originaltitle" )
self._AddToList( xbmc.getLocalizedString(345),"year" )
self._AddToList( xbmc.getLocalizedString(515),"genre" )
self._AddToList( xbmc.getLocalizedString(20417),"writer" )
self._AddToList( xbmc.getLocalizedString(20339),"director" )
self._AddToList( xbmc.getLocalizedString(202),"tagline" )
self._AddToList( xbmc.getLocalizedString(207),"plot" )
self._AddToList( xbmc.getLocalizedString(203),"plotoutline" )
self._AddToList( xbmc.getLocalizedString(13409),"top250" )
self._AddToList( xbmc.getLocalizedString(20457),"set" )
self._AddToList( xbmc.getLocalizedString(20459),"tag" )
self._AddToList( xbmc.getLocalizedString(21875),"country" )
self._AddToList( xbmc.getLocalizedString(572),"studio" )
self._AddToList( xbmc.getLocalizedString(20074),"mpaa" )
self._AddToList( xbmc.getLocalizedString(20410),"trailer" )
self._AddToList( xbmc.getLocalizedString(567),"playcount" )
self._AddToList( xbmc.getLocalizedString(563),"rating" )
(2015-07-26, 04:25)Steveb Wrote: Not sure it's needed in this script as edit title & sort title are available from within kodi.
Context menu>Manage>edit sort title.
All kodi's local strings should be in a addon package located in the kodi install dir /addons/resource.language.en_gb /resources/strings.po (default lang pack).
Sort title is '171'.
elif actionstring == "sorttitle" :
self._edit_db_string(xbmc.getInfoLabel('ListItem.xxxxx'),self.TYPE,"sorttitle")
elif actionstring == "sorttitle" :
self._edit_db_string("",self.TYPE,"sorttitle")
(2015-07-26, 05:32)Steveb Wrote: I just tried adding the line..
self._AddToList( xbmc.getLocalizedString(171),"sorttilte" ) . It didn't throw a error but it just goes into a select action loop.
That's because it's not that simple, you would also need to edit 'def _choose_action( self,actionstring ):' function.
PHP Code:elif actionstring == "sorttitle" :
self._edit_db_string(xbmc.getInfoLabel('ListItem.xxxxx'),self.TYPE,"sorttitle")
Unfortunally I dont think there is a InfoLabel for 'sorttitle' (listItem.xxxxx). I could be wrong
So I don't think its possible.
Edit got it working with..
PHP Code:elif actionstring == "sorttitle" :
self._edit_db_string("",self.TYPE,"sorttitle")
The sort title edit line is blank, but I can't find any ref to sorttitle infolabel.
here is the code
Pastebin code
Error Type: <type 'exceptions.IndentationError'>
Error Contents: ('unexpected indent', ('C:\\Users\\Dave\\AppData\\Roaming\\Kodi\\addons\\script.libraryeditor-master\\default.py', 45, 3, '\t\t\tself._AddToList( xbmc.getLocalizedString(171),"sorttilte" )\n'))
IndentationError: ('unexpected indent', ('C:\\Users\\Dave\\AppData\\Roaming\\Kodi\\addons\\script.libraryeditor-master\\default.py', 45, 3, '\t\t\tself._AddToList( xbmc.getLocalizedString(171),"sorttilte" )\n'))
-->End of Python script error report<--