-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Python API cleanup #17456
Python API cleanup #17456
Conversation
Looks good ronie. Was about what i saw when i looked at it yesterday. The only change i picked up that may be worth doing was in xbmc/xbmc/interfaces/legacy/Player.cpp Line 34 in fe33ea8
I removed the int _playerCore completely, and also removed it in definition of Player in Player.h header, as it no longer has any use. xbmc/xbmc/interfaces/legacy/Player.h Line 78 in fe33ea8
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should never remove history. If the methods get changed we need to know when a certain argument got deprecated (reviews). If we remove methods, we need to add that to history too.
Thanks for tackling this one
It would be nice to have someone looking into the abortRequested stuff
"", | ||
<b>xbmc.monitor().onAbortRequested()</b> function was removed completely. | ||
} | ||
\python_removed_class{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
python_removed_class
doesn't exist. Those are doxy ALIAS that translate to html:
xbmc/docs/doxygen/Doxyfile.doxy
Line 252 in 388ff63
"python_removed_function{3}=\htmlonly <dl class=\"reflist\"><dt>Member <a class=\"el\" href=\"\2\">\1</a> (...)</dt><dd>\3</dd></dl>\endhtmlonly" \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would it be as simple as adding a new python_removed_class
line there?
i'm hardly familiar with doxygen code...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably add the 3 functions instead of the class, result is pretty much the same. And python classes are not deleted everyday :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, updated
Just a question about the line1,line2 thing: https://forum.kodi.tv/showthread.php?tid=209948&pid=2931138#pid2931138 EDIT: Thx for the forum reply, solution is to use:
|
@jimfcarroll any insights into if the onabortrequested change is ok? any problems you can think of if we removed that from xbmc/interfaces/legacy/Monitor.*? |
jenkins build this please |
After this PR, Consequently, I'm guessing because The following sample code:
never reaches the Consequently, kodi kills the service (
Full log: http://ix.io/2f6d - kodi.bin starts shutting down at 00:27:51.266 Compare with the same Python code, but using a build with this PR reverted: http://ix.io/2f6j - note the |
Python API cleanup
as discussed internally, we'll use the python 3 migration as an opportunity to clean up our python api.
this pr will remove deprecated classes / functions / parameters from our python api.
note:
dialogs that previously used the
line1, line2, line3
parameters to specify the text will now use themessage
parameter.@jimfcarroll could you please (at least) review the onAbortRequested() removal from the Monitor class?