26.3.2023, 20:39
YAWsP má právě tuto funkci. SCC se mi aktualizoval na v.1.15.0, sám Hledání ve Webshare nenabízí.
|
Hodnocení tématu:
Estuary Easy
|
Addon.SettingBool(addon_id,setting_id)Addon.SettingInt(addon_id,setting_id)Addon.SettingStr(addon_id,setting_id).
.
.
LANGUAGE_CINEMA = xbmcaddon.Addon('plugin.video.stream-cinema-2-release').getLocalizedString
.
.
.
keyboard = xbmc.Keyboard('', LANGUAGE_CINEMA(30207), False)
keyboard.doModal()
if (keyboard.isConfirmed()):
searchstring = keyboard.getText()
command='ActivateWindow(videos,plugin://plugin.video.stream-cinema-2-release/get_media/?media_type=%2A&render_type=search&url=%252Fapi%252Fmedia%252Ffilter%252Fv2%252Fsearch%253Fvalue%253D{0}%2526order%253Ddesc%2526sort%253Dscore%2526type%253D%25252A%2526size%253D50?,return)'.format(searchstring)
xbmc.executebuiltin(command)
.
.
..
.
.
LANGUAGE_CINEMA = xbmcaddon.Addon('plugin.video.stream-cinema-2-release').getLocalizedString
.
.
.
keyboard = xbmc.Keyboard('', LANGUAGE_CINEMA(30450), False)
keyboard.doModal()
if (keyboard.isConfirmed()):
searchstring = keyboard.getText()
command='ActivateWindow(videos,plugin://plugin.video.stream-cinema-2-release/search_webshare?search_value={0}?,return)'.format(searchstring)
xbmc.executebuiltin(command)
.
.
. <item> <!-- EASY* -->
<label>Stream Cinema Community</label>
<onclick>Dialog.Close(all)</onclick>
<onclick condition="Skin.HasSetting(skin_helper)">RunAddon($INFO[Skin.String(skin_id)],search)</onclick>
</item>
<item> <!-- EASY* -->
<label>Webshare</label>
<onclick>Dialog.Close(all)</onclick>
<onclick condition="Skin.HasSetting(skin_helper)">RunAddon($INFO[Skin.String(skin_id)],search_webshare)</onclick>
</item>(04.5.2023, 16:12)JiRo Napsal(a): @jojox Editaci definiční souboru skinu. Pochybuji, že možnost vypnout to v nastaveni skin má. Nedávalo by to smysl. A to chceš pro všechny stránky, nebo jen pro tuto? A pokud to vypneš, jak budeš ty stránky, identifikovat?Áno niekde v xml, ale neviem to nájsť.
(04.5.2023, 17:21)JiRo Napsal(a): @jojox Večer ti to můžu poslat. Z hlavy to nedám a jsem mimo PC. Mělo by to být include, neco jako topbar a breadcumb... Hledej asi v include.xml. Ale tak je to u originálu, tohle je nějaký mod...
Tak include se jmenuje TopBarLabels a je definované v Includes.xml.
<include name="MediaFlags"> <!-- EASY* -->
<param name="infolabel_prefix"></param>
<param name="resolution_var">$VAR[ResolutionFlagVar]</param>
<param name="visible_left">true</param>
<definition>
<control type="grouplist"> <!-- EASY+ Ratings amd Votes (from left) -->
<orientation>horizontal</orientation>
<left>20</left>
<top>0</top>
<height>70</height>
<align>left</align>
<itemgap>10</itemgap>
<width>1900</width>
<usecontrolcoords>true</usecontrolcoords>
<visible>$PARAM[visible_left]</visible>
<include content="MediaRating">
<param name="text" value="CSFD" />
<param name="source" value="csfd" />
</include>
<include content="MediaRating">
<param name="text" value="TMDB" />
<param name="source" value="tmdb" />
</include>
<include content="MediaRating">
<param name="text" value="Trakt" />
<param name="source" value="trakt" />
</include>
<include content="MediaRating">
<param name="text" value="TVDB" />
<param name="source" value="tvdb" />
</include>
<include content="MediaRating">
<param name="text" value="IMDB" />
<param name="source" value="imdb" />
</include>
<include content="MediaRating">
<param name="text" value="Metacritic" />
<param name="source" value="Metacritic" />
</include>
<include content="MediaRating">
<param name="text" value="Rotten Tomatoes" />
<param name="source" value="Rotten Tomatoes" />
</include>
</control>
<control type="grouplist">
<orientation>horizontal</orientation>
<right>20</right>
<top>0</top>
<height>70</height>
<align>right</align>
<itemgap>10</itemgap>
<width>1900</width>
<usecontrolcoords>true</usecontrolcoords>
<control type="group">
<width>150</width>
<visible>System.AddonIsEnabled(resource.images.studios.white) + !String.IsEmpty($PARAM[infolabel_prefix]ListItem.Studio)</visible>
<include content="MediaFlag">
<param name="texture" value="$INFO[$PARAM[infolabel_prefix]ListItem.Studio,resource://resource.images.studios.white/,.png]" />
</include>
</control>
<control type="group">
<top>10</top>
<width>200</width>
<visible>!String.IsEmpty($PARAM[infolabel_prefix]ListItem.Premiered)</visible>
<include content="InfoFlag">
<param name="icon" value="lists/year.png" />
<param name="label" value="$INFO[$PARAM[infolabel_prefix]ListItem.Premiered]" />
</include>
</control>
<control type="group"> <!-- EASY+ -->
<width>115</width>
<visible>!String.IsEmpty(ListItem.Trailer) + !String.Contains(ListItem.Trailer,video_url=None)</visible>
<control type="label">
<width>115</width>
<height>60</height>
<align>center</align>
<aligny>center</aligny>
<label>TRAILER</label>
<font>font_flag</font>
</control>
<include content="MediaFlag">
<param name="texture" value="flags/flag.png" />
</include>
</control>
<control type="group">
<width>115</width>
<visible>!String.IsEmpty($PARAM[infolabel_prefix]ListItem.Duration)</visible>
<control type="label">
<width>115</width>
<height>60</height>
<align>center</align>
<aligny>center</aligny>
<label>$INFO[$PARAM[infolabel_prefix]ListItem.Duration]</label>
<font>font_flag</font>
</control>
<include content="MediaFlag">
<param name="texture" value="flags/flag.png" />
</include>
</control>
<control type="group"> <!-- EASY+ EndTime -->
<width>115</width>
<visible>!String.IsEmpty(ListItem.Duration) + !String.IsEmpty(ListItem.EndTimeResume)</visible>
<control type="image">
<top>20</top>
<left>10</left>
<width>20</width>
<height>20</height>
<fadetime>0</fadetime>
<aspectratio aligny="center" align="center">keep</aspectratio>
<texture>icons/pvr/pvr-hastimer.png</texture>
</control>
<control type="label">
<left>20</left>
<width>95</width>
<height>60</height>
<align>center</align>
<aligny>center</aligny>
<label>$INFO[ListItem.EndTimeResume]</label>
<font>font_flag</font>
</control>
<include content="MediaFlag">
<param name="texture" value="flags/flag.png" />
</include>
</control>
<include content="MediaFlag">
<param name="texture" value="$INFO[ListItem.VideoCodec,flags/videocodec/,.png]" />
<param name="visible" value="!String.IsEmpty($PARAM[infolabel_prefix]ListItem.VideoCodec)" />
</include>
<include content="MediaFlag">
<param name="texture" value="$PARAM[resolution_var]" />
<param name="visible" value="!String.IsEmpty($PARAM[infolabel_prefix]ListItem.VideoResolution)" />
</include>
<include content="MediaFlag">
<param name="texture" value="$INFO[ListItem.HdrType,flags/videohdr/,.png]" />
<param name="visible" value="!String.IsEmpty($PARAM[infolabel_prefix]ListItem.HdrType)" />
</include>
<include content="MediaFlag">
<param name="texture" value="$INFO[ListItem.VideoAspect,flags/aspectratio/,.png]" />
<param name="visible" value="!String.IsEmpty($PARAM[infolabel_prefix]ListItem.VideoAspect)" />
</include>
<include content="MediaFlag">
<param name="texture" value="$INFO[$PARAM[infolabel_prefix]ListItem.AudioCodec,flags/audiocodec/,.png]" />
<param name="visible" value="!String.IsEmpty($PARAM[infolabel_prefix]ListItem.AudioCodec)" />
</include>
<include content="MediaFlag">
<param name="texture" value="$INFO[$PARAM[infolabel_prefix]ListItem.AudioChannels,flags/audiochannel/,.png]" />
<param name="visible" value="!String.IsEmpty($PARAM[infolabel_prefix]ListItem.AudioChannels)" />
</include>
</control>
</definition>
</include> <include name="MediaRating"> <!-- EASY+ -->
<param name="width">170</param>
<param name="visible">true</param>
<definition>
<control type="group">
<visible>!String.IsEmpty(ListItem.Rating($PARAM[source])) + $PARAM[visible]</visible>
<width>$PARAM[width]</width>
<control type="label">
<left>0</left>
<width>60</width>
<height>60</height>
<align>right</align>
<aligny>center</aligny>
<label>[B][COLOR grey]$PARAM[text][/COLOR][/B]</label>
<font>font_flag</font>
<visible>![String.IsEqual(ListItem.Rating($PARAM[source]),ListItem.Rating) + String.IsEqual(ListItem.Votes($PARAM[source]),ListItem.Votes)]</visible>
</control>
<control type="label">
<left>0</left>
<width>60</width>
<height>60</height>
<align>right</align>
<aligny>center</aligny>
<label>[B][COLOR button_focus]$PARAM[text][/COLOR][/B]</label>
<font>font_flag</font>
<visible>String.IsEqual(ListItem.Rating($PARAM[source]),ListItem.Rating) + String.IsEqual(ListItem.Votes($PARAM[source]),ListItem.Votes)</visible>
</control>
<control type="group">
<left>60</left>
<width>115</width>
<control type="label">
<left>10</left>
<width>95</width>
<height>60</height>
<align>center</align>
<aligny>center</aligny>
<label>$INFO[ListItem.Rating($PARAM[source])]$INFO[ListItem.Votes($PARAM[source]),/]</label>
<font>font_flag</font>
</control>
<include content="MediaFlag">
<param name="texture" value="flags/flag.png" />
</include>
</control>
</control>
</definition>
</include>