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
-
small update, press help to see all the features, I am running it mostly on PLi but have tested it on ATV as well, on ATV only internal picture player works, external picture player crashes because of incompatible code PLi/ATV
-
small update, press help to see all the features, I am running it mostly on PLi but have tested it on ATV as well, on ATV only internal picture player works, external picture player crashes because of incompatible code PLi/ATV
moved on first post of topic
Attachments vs Filebase: Where Should Your Files Go? | LinuxSat-Support - Linux Satellite Support Community -
now pause works while playing IPTV services (nav.playService)
Your hub for Enigma2 multimedia plugins.
Discover top Enigma2 multimedia plugins. Access downloads and support for the latest media players, audio tools, and file management utilities.
