-
Notifications
You must be signed in to change notification settings - Fork 314
[script.service.kodi.callbacks] 0.9.9 #70
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
Conversation
for path in paths: | ||
if not os.path.isdir(path): | ||
try: | ||
os.mkdir(path) |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
please use a x.y.z addon version. |
No problem. Version changed. Pull request updated. |
except threading.ThreadError as e: | ||
log(msg=_('Error aborting: %s - Error: %s') % (str(p), str(e))) | ||
dispatcher.abort() | ||
xbmc.sleep(1000) |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
tamland: I took your advice to heart and removed all sleep from shutdown. Any needed potential wait time is done via joins with timeouts. Currently passing testing on Windows and emulated/VM on OSX, Android and Linux. |
I updated my commit to include some added functionality with http verbs and content-type for http tasks and to emit additional info during playback events as was requested by users on the forum. Edit: Also, looking through comments on other pull requests(@learningit), I renamed any variables using |
Include build number, correct addon.xml to use library extension point
Hello, I also noted only recently that perhaps I should have submitted this to the Isengard branch since the wiki states that helix is not accepting new addons (http://kodi.wiki/view/Submitting_Add-ons#Allowed_submissions)? Github seems to offer different information and perhaps the PR needs to go to Jarvis (https://github.com/xbmc/repo-scripts/tree/isengard)? Thanks. |
This PR has been discussed among a few us for some time. What I explain below is my personal opinion: |
@learningit Thank you for your comments. I understand your point of view. If I may, I would like to offer an alternative way of possibly looking at things. I am not trying to be argumentative or defensive. I know that the Kodi team takes great pride and responsibility in the application. I hope that any replies to the comments below would be in the tone of a healthy, open discussion. The submitted addon only simplifies things that anyone can do if they understand python and the built-in python addon interface. It allows users who do not wish to go through the process of understanding that interface to be able to run simple tasks in response to Kodi events, similar to the smartphone app IFTTT. I might argue that anyone sophisticated enough to write malicious code to be used via this addon is likely also sophisticated enough to write a full blown addon. Parenthetically, if it is the 'plugin' architecture interface (http://kodi.wiki/view/Add-on:Kodi_Callbacks#Create_your_own_custom_task) that is included in the addon that is a major cause for concern, that can be easily removed. As best as I can tell from the forums (http://forum.kodi.tv/showthread.php?tid=256170 and http://forum.kodi.tv/showthread.php?tid=151011&page=7), the majority of people are using it to automate ambient lighting solutions, run library updates or external scrapers. Users can damage their Kodi installs or OS's with or without the addon and perhaps the addon may make that less likely than if they attempt to do that by writing an addon on their own. Regarding this addon running scripts, the only scripts that are included in the distro are example scripts to demonstrate how the user can have a script run after Kodi exits or run a script that requires sudo. They are not configured to do anything on their own. I can eliminate them and show that example code in the wiki, if desired. The only scripts that the addon does run are ones that the user themselves writes. Perhaps a statement such as 'User assumes all risks and responsibilities associated with running their own tasks' or similar in a popup each time the settings are saved may be appropriate. If any of the Kodi team members feel that I can 'cripple' the addon by eliminating certain portions of it to make it suitable for the official repo, I would be willing to entertain doing that. In any case, I will, of course, accept your final decision. My intent is only to expose as many users as I can to the possibilities of what the addon can do for them to make their Kodi experience the best that it can be. |
Thx for such a balanced response, we have seen much worse here. :) |
i haven't reviewed the code, so couldn't give you a balanced opinion ;-) if the addon doesn't write/overwrite stuff to places it shouldn't go i agree script examples would be better fitted in the wiki yeah. |
Ok. so if there aren't any more comments, I say we add this to the repo. The PR needs to change to at least Isengard as we are not accepting new add-ons into Helix any longer. The example scripts should be moved to the wiki. Once that's done, I'll do the merge. |
OK. Thank all for your time and consideration. The above changes have been made and a new PR for isengard has been made: https://github.com/xbmc/repo-scripts/pull/120 |
I don't think isendgard is supposed to accepts new addons? see https://github.com/xbmc/repo-scripts/tree/isengard#status |
@razzeee please see @learniGIT 's comment above. The wiki page and the GitHub page have conflicting info about which branches are accepting new PR's. |
Wiki wasn't up to date, I just changed that. Thanks for pointing it out. |
I'm closing this PR as PR#120 supersedes this one (I hope). |
Please disregard mailing list pull request. Downloading from github removed as requested.
ken.vives@gmail.com