I needed quick and simple player for myself, the code is mostly taken from other plugins, I just put it together, press Help (more pages) to see the features, should be python3 compatible
[Plugin] VideoPlayerSimple
- mrvica
- Thread is marked as Resolved.
-
-
I hope you don't mind me adding some advice. But most plugins nowadays we trying and stick to pep8 formatting.
Its better to learn the correct way, not the old way.
I will delete this once you have read it.
Use 4 spaces instead of tabs nowadays.
inline comment should start with '# ' - basically always put a space after the #
at least two spaces before inline comment - blahblah[space][space]# blah
missing whitespace around arithmetic operator - add in spaces around plus signs: 1 + 1, ('loading... ' + self.whatPic)
unexpected spaces around keyword / parameter equals - opposite to above. no spaces for params
def __init__(self, session, whatPic=None, whatDir=None):
2 blank lines before a new class.
2 blank lines before a def not in a class
1 blank line before a def in a class.
multiple spaces before operator - delete accidental extra spaces.
comparison to True should be 'if cond is True:' or 'if cond:'
if config.plugins.videoplayersimple.iptvmovieplayer.value is True:
if config.plugins.videoplayersimple.iptvmovieplayer.value:
Here's your pep8 formatted plugin.py
Use winmerge to compare yours to mine. -
here the .ipk, still not pep8 formatted, sorry, I use EditPlus 2 and need to configure it
Participate now!
Don’t have an account yet? Register yourself now and be a part of our community!