Plug-ins and Extensibility Kodi has a built-in Python interpreter that allows users and developers to write their own scripts and plugins that run inside Kodi using it's own widgets and controls.
XMBC heeft een ingebouwde Python-interpreter die gebruikers en ontwikkelaars hun eigen scripts en plugins laat schrijven die binnen XMBC kunnen worden gebruikt met hun eigen widgets en bediening.
I didn't have the time to think through all the ways the API interactions could fail and update the script to be as robust as it could be, so instead I cheated a bit, by using launchd to poke the Python script periodically.
Ik had geen tijd om alle manieren te bedenken waarop API-interacties fout konden gaan en het script zo robuust te maken als maar mogelijk, dus daarom smokkelde ik een beetje, door launchd te gebruiken om het Pythonscript zo nu en dan wakker te schudden.
But essentially it boiled down to converting the document to plain text, splitting it into 140-character lines, and using a Python script to send out the tweets.
Maar het kwam in essentie wel neer op het omzetten van het document naar platte tekst, het opdelen in regels van 140 lettertekens en een Pythonscript gebruiken om de tweets te versturen.
I tested this script with Python 3.7.0 that was installed using OSGeo4W, but it probably also works in other versions of Python 3.
Ik heb dit script getest met Python 3.7.0 dat geïnstalleerd werd met behulp van OSGeo4W, maar het werkt waarschijnlijk ook in andere versies van Python 3.
Potentially sensitive or inappropriate content
Examples are used only to help you translate the word or expression searched in various contexts. They are not selected or validated by us and can contain inappropriate terms or ideas. Please report examples to be edited or not to be displayed. Potentially sensitive, inappropriate or colloquial translations are usually marked in red or in orange.