Skip to content

Commit

Permalink
seeker pro sc2, uprava skinu, preklad
Browse files Browse the repository at this point in the history
  • Loading branch information
misanov committed Jun 20, 2020
1 parent 384ed8b commit 7248182
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 6 deletions.
6 changes: 3 additions & 3 deletions build/plugin/po/cs.po
Original file line number Diff line number Diff line change
Expand Up @@ -779,15 +779,15 @@ msgstr "Adresa videa neexistuje"

#: gui/info.py:192
msgid "Genre: "
msgstr "Žánr:"
msgstr "Žánr: "

#: gui/info.py:193
msgid "Year: "
msgstr "Rok:"
msgstr "Rok: "

#: gui/info.py:194
msgid "Rating: "
msgstr "Hodnocení:"
msgstr "Hodnocení: "

#: gui/info.py:246
msgid "Install GStreamer plugins"
Expand Down
6 changes: 3 additions & 3 deletions build/plugin/po/sk.po
Original file line number Diff line number Diff line change
Expand Up @@ -764,15 +764,15 @@ msgstr "Video adresa, ktorú chcete prehrať neexistuje."

#: gui/info.py:192
msgid "Genre: "
msgstr "Žáner:"
msgstr "Žáner: "

#: gui/info.py:193
msgid "Year: "
msgstr "Rok:"
msgstr "Rok: "

#: gui/info.py:194
msgid "Rating: "
msgstr "Hodnotenie:"
msgstr "Hodnotenie: "

#: gui/info.py:246
msgid "Install GStreamer plugins"
Expand Down
11 changes: 11 additions & 0 deletions build/plugin/src/client/seeker.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ def getCapabilities():
"""
list = []
#list.append((_('Search in') + ' ' + 'OnlineFiles', 'plugin.video.online-files', 'all'))
list.append((_('Search in') + ' ' + 'Stream Cinema 2.0', 'plugin.video.sc2', 'all'))
list.append((_('Search in') + ' ' + 'Stream Cinema', 'plugin.video.stream-cinema', 'all'))
list.append((_('Search in') + ' ' + 'Sosac', 'plugin.video.sosac.ph', 'all'))
list.append((_('Search in') + ' ' + 'CSFD', 'csfd', 'all'))
Expand Down Expand Up @@ -189,6 +190,8 @@ def getSearcher(session, addon_name, archivczsk, succ_cb, err_cb):
return SosacSearch(session, archivczsk, succ_cb, err_cb)
elif addon_name == 'plugin.video.stream-cinema':
return StreamCinemaSearch(session, archivczsk, succ_cb, err_cb)
elif addon_name == 'plugin.video.sc2':
return StreamCinema20Search(session, archivczsk, succ_cb, err_cb)
else:
return None

Expand Down Expand Up @@ -285,6 +288,14 @@ class StreamCinemaSearch(Search):
def search(self, search_exp, mode='all'):
params = {'search':search_exp, 'search-no-history':True}
self.provider.get_content(self.session, params, self.succ_cb, self.err_cb)

class StreamCinema20Search(Search):
addon_id = 'plugin.video.sc2'

def search(self, search_exp, mode='all'):
params = {'url': '?action=search&history=0&action_value='+search_exp}
self.provider.get_content(self.session, params, self.succ_cb, self.err_cb)

class CsfdSearch():
def showCSFDInfo(self, session, searchExp):
try:
Expand Down
8 changes: 8 additions & 0 deletions build/plugin/src/gui/skins/default_fhd.xml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,14 @@
<widget font="Regular;23" foregroundColor="white" halign="left" name="tip_label" position="70,704" size="633,32" transparent="1" valign="center" zPosition="2" />
</screen>

<screen name="ArchivCZSKItemInfoScreen" position="center,100" size="1200,925" title="Info" >
<widget name="genre" position="505,50" size="600,36" font="Regular;30" transparent="1" foregroundColor="yellow" />
<widget name="year" position="505,110" size="600,36" font="Regular;30" transparent="1" foregroundColor="yellow" />
<widget name="rating" position="505,170" size="600,36" font="Regular;30" transparent="1" foregroundColor="yellow" />
<widget name="plot" position="10,510" size="1180,402" font="Regular;30" transparent="1" foregroundColor="white" />
<widget name="img" position="10,0" zPosition="2" size="480,480" alphatest="on"/>
</screen>

<screen name="ArchivCZSKVideoPlayerInfoScreen" position="center,center" size="1157,739" title="ContentScreen">
<widget backgroundColor="#9f1313" font="Regular;25" halign="center" name="key_red" position="10,6" shadowColor="black" shadowOffset="-2,-2" size="276,57" valign="center" zPosition="1" />
<widget backgroundColor="#1f771f" font="Regular;25" halign="center" name="key_green" position="296,6" shadowColor="black" shadowOffset="-2,-2" size="276,57" valign="center" zPosition="1" />
Expand Down
8 changes: 8 additions & 0 deletions build/plugin/src/gui/skins/default_hd.xml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,14 @@
<widget font="Regular;18" foregroundColor="white" halign="left" name="tip_label" position="55,589" size="493,25" transparent="1" valign="center" zPosition="2" />
</screen>

<screen name="ArchivCZSKItemInfoScreen" position="center,80" size="800,617" title="Info" >
<widget name="genre" position="337,33" size="400,24" font="Regular;20" transparent="1" foregroundColor="yellow" />
<widget name="year" position="337,73" size="400,24" font="Regular;20" transparent="1" foregroundColor="yellow" />
<widget name="rating" position="337,113" size="400,24" font="Regular;20" transparent="1" foregroundColor="yellow" />
<widget name="plot" position="7,340" size="787,257" font="Regular;20" transparent="1" foregroundColor="white" />
<widget name="img" position="7,0" zPosition="2" size="320,320" alphatest="on"/>
</screen>

<screen name="ArchivCZSKVideoPlayerInfoScreen" position="center,center" size="900,575" title="ContentScreen">
<widget backgroundColor="#9f1313" font="Regular;20" halign="center" name="key_red" position="8,5" shadowColor="black" shadowOffset="-2,-2" size="215,45" valign="center" zPosition="1" />
<widget backgroundColor="#1f771f" font="Regular;20" halign="center" name="key_green" position="231,5" shadowColor="black" shadowOffset="-2,-2" size="215,45" valign="center" zPosition="1" />
Expand Down
8 changes: 8 additions & 0 deletions build/plugin/src/gui/skins/default_uhd.xml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,14 @@
<widget font="Regular;46" foregroundColor="white" halign="left" name="tip_label" position="140,1408" size="1266,64" transparent="1" valign="center" zPosition="2" />
</screen>

<screen name="ArchivCZSKItemInfoScreen" position="center,220" size="2400,1850" title="Info" >
<widget name="genre" position="1010,100" size="1200,72" font="Regular;60" transparent="1" foregroundColor="yellow" />
<widget name="year" position="1010,220" size="1200,72" font="Regular;60" transparent="1" foregroundColor="yellow" />
<widget name="rating" position="1010,340" size="1200,72" font="Regular;60" transparent="1" foregroundColor="yellow" />
<widget name="plot" position="20,1020" size="2360,770" font="Regular;60" transparent="1" foregroundColor="white" />
<widget name="img" position="20,0" zPosition="2" size="960,960" alphatest="on"/>
</screen>

<screen name="ArchivCZSKVideoPlayerInfoScreen" position="center,center" size="2314,1478" title="ContentScreen">
<widget backgroundColor="#9f1313" font="Regular;50" halign="center" name="key_red" position="20,12" shadowColor="black" shadowOffset="-2,-2" size="552,114" valign="center" zPosition="1" />
<widget backgroundColor="#1f771f" font="Regular;50" halign="center" name="key_green" position="592,12" shadowColor="black" shadowOffset="-2,-2" size="552,114" valign="center" zPosition="1" />
Expand Down

0 comments on commit 7248182

Please sign in to comment.