Skip to content

Commit

Permalink
-
Browse files Browse the repository at this point in the history
  • Loading branch information
Belfagor2005 committed Oct 19, 2024
1 parent b966259 commit 440dedc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 138 deletions.
90 changes: 0 additions & 90 deletions usr/lib/enigma2/python/Plugins/Extensions/vavoo/html_conv.py

This file was deleted.

50 changes: 2 additions & 48 deletions usr/lib/enigma2/python/Plugins/Extensions/vavoo/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
from . import _
from . import vUtils
from .Console import Console
from . import html_conv
# Standard library imports
# Enigma2 components
from Components.AVSwitch import AVSwitch
Expand Down Expand Up @@ -194,8 +193,6 @@ def trace_error():
BakP.append((backName, backName))
except Exception as e:
print(e)


print('final folder back: ', BackPath)
# BakP = sorted(BakP, key=lambda x: x[1])

Expand Down Expand Up @@ -428,40 +425,6 @@ def loop_sig():
pass


def returnIMDB(text_clear):
TMDB = resolveFilename(SCOPE_PLUGINS, "Extensions/{}".format('TMDB'))
tmdb = resolveFilename(SCOPE_PLUGINS, "Extensions/{}".format('tmdb'))
IMDb = resolveFilename(SCOPE_PLUGINS, "Extensions/{}".format('IMDb'))
text = html_conv.html_unescape(text_clear)
if os.path.exists(TMDB):
try:
from Plugins.Extensions.TMBD.plugin import TMBD
_session.open(TMBD.tmdbScreen, text, 0)
except Exception as e:
print("[XCF] Tmdb: ", str(e))
return True

elif os.path.exists(tmdb):
try:
from Plugins.Extensions.tmdb.plugin import tmdb
_session.open(tmdb.tmdbScreen, text, 0)
except Exception as e:
print("[XCF] Tmdb: ", str(e))
return True

elif os.path.exists(IMDb):
try:
from Plugins.Extensions.IMDb.plugin import main as imdb
imdb(_session, text)
except Exception as e:
print("[XCF] imdb: ", str(e))
return True
else:
_session.open(MessageBox, text, MessageBox.TYPE_INFO)
return True
return False


# check server
def raises(url):
try:
Expand Down Expand Up @@ -1448,8 +1411,8 @@ def __init__(self, session, name, url, index, item, cat_list):
self.srefInit = self.session.nav.getCurrentlyPlayingServiceReference()
self['actions'] = ActionMap(['MoviePlayerActions', 'MovieSelectionActions', 'MediaPlayerActions', 'EPGSelectActions', 'OkCancelActions',
'InfobarShowHideActions', 'InfobarActions', 'DirectionActions', 'InfobarSeekActions'], {
'epg': self.showIMDB,
'info': self.showIMDB,
# 'epg': self.showIMDB,
# 'info': self.showIMDB,
'tv': self.cicleStreamType,
'stop': self.leavePlayer,
'cancel': self.cancel,
Expand Down Expand Up @@ -1562,15 +1525,6 @@ def showinfo(self):
pass
return

def showIMDB(self):
try:
text_clear = self.name
if returnIMDB(text_clear):
print('show imdb/tmdb')
except Exception as error:
trace_error()
print("Error: can't find Playstream2 in live_to_stream", str(error))

def openTest(self, servicetype, url):
sig = Sig()
app = '?n=1&b=5&vavoo_auth=' + str(sig) + '#User-Agent=VAVOO/2.6'
Expand Down

0 comments on commit 440dedc

Please sign in to comment.