Skip to content
This repository has been archived by the owner on Nov 7, 2024. It is now read-only.

Commit

Permalink
✨ Add new discover dialog id=1175 shortcut for searching TMDb discove…
Browse files Browse the repository at this point in the history
…r in dialog
  • Loading branch information
jurialmunkey committed Aug 25, 2024
1 parent c6348e6 commit 43702e2
Show file tree
Hide file tree
Showing 10 changed files with 229 additions and 4 deletions.
171 changes: 171 additions & 0 deletions 1080i/Custom_1175_Dialog_Discover.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,171 @@
<?xml version="1.0" encoding="UTF-8"?>
<window type="dialog" id="1175">
<defaultcontrol always="true">8000</defaultcontrol>
<onload condition="!Skin.String(Discover.TMDbType,movie) + !Skin.String(Discover.TMDbType,tv)">Skin.SetString(Discover.TMDbType,movie)</onload>
<controls>

<control type="group">
<include>Dimension_DialogHugeMenu</include>
<include>Animation_Right_Delay</include>

<visible>!$EXP[Exp_InfoDialogs]</visible>
<visible>!Window.IsVisible(1113)</visible>

<include content="Dialog_Dim_Side">
<param name="slide_condition">True</param>
</include>

<!-- Bottom Layer -->
<include content="Dialog_Background_Side">
<param name="slide_condition">True</param>
<param name="dialog_size">Dimension_DialogHugeMenu</param>
<!-- Side Buttons -->
<control type="group">
<include>Dimension_Dialog_Body</include>
<control type="grouplist" id="9000">
<include>Dialog_Side_Grouplist_Def</include>
<onleft>Close</onleft>
<onright>8000</onright>
<include content="Dialog_Side_Button">
<param name="id">01</param>
<param name="label">$LOCALIZE[15067]</param>
<param name="icon">special://skin/extras/icons/circle-xmark.png</param>
<param name="visible">true</param>
<onclick>Action(Close)</onclick>
</include>
<include content="Dialog_Side_Button">
<param name="id">02</param>
<param name="label">$LOCALIZE[1024]</param>
<param name="icon">special://skin/extras/icons/folder.png</param>
<param name="visible">true</param>
<onclick>Dialog.Close(1175,force)</onclick>
<onclick>ActivateWindow(videos,$INFO[window(home).property(tmdbhelper.userdiscover.folderpath)]$INFO[Control.GetLabel(9099).index(1),&amp;with_text_query=,],return)</onclick>
</include>
<include content="Dialog_Side_Button">
<param name="id">03</param>
<param name="baseid">4</param>
<param name="label">$VAR[Label_Discover_TMDbType]</param>
<param name="icon">$VAR[Image_Discover_TMDbType]</param>
<param name="visible">true</param>
<onclick condition="Skin.String(Discover.TMDbType,movie)">Skin.SetString(Discover.TMDbType,tv)</onclick>
<onclick condition="!Skin.String(Discover.TMDbType,movie)">Skin.SetString(Discover.TMDbType,movie)</onclick>
<onclick>RunPlugin(plugin://plugin.video.themoviedb.helper/?info=user_discover&amp;tmdb_type=tv&amp;method=clear)</onclick>
</include>
<include content="Dialog_Side_Button">
<param name="id">04</param>
<param name="label">$LOCALIZE[192]</param>
<param name="icon">special://skin/extras/icons/triangle-exclamation.png</param>
<param name="visible">true</param>
<onclick>RunScript(script.skinvariables,set_editcontrol=9099,window_id=1175,setfocus=9004)</onclick>
<onclick>RunPlugin(plugin://plugin.video.themoviedb.helper/?info=user_discover&amp;tmdb_type=tv&amp;method=clear)</onclick>
</include>
</control>
</control>
</include>

<include content="Dialog_Foreground_Side">
<param name="dialog_size">Dimension_DialogHugeMenu</param>
<param name="slide_condition">True</param>
<param name="lines_right">800</param>

<!-- Header -->
<include content="Dialog_Head">
<param name="label">$LOCALIZE[31066]</param>
<param name="sublabel">TMDbHelper</param>
<param name="sublabel_include">true</param>
</include>
<include>Dialog_Head_CloseButton</include>

<!-- Content -->
<control type="group">
<include>Dimension_Dialog_Body</include>

<control type="group">
<width>480</width>

<control type="group">
<include>Dimension_Dialog_Body_Group</include>

<include content="Settings_Button">
<param name="dialog">true</param>
<param name="id">9099</param>
<param name="control">edit</param>
<label>$LOCALIZE[31553]</label>
<onup>SetFocus(8000,99999,absolute)</onup>
<ondown>SetFocus(8000,0,absolute)</ondown>

<onleft>9000</onleft>
<onright>7000</onright>
</include>

<include content="List_DialogSelect">
<param name="id">8000</param>
<param name="textcolor">dialog_fg</param>
<param name="itemlayout_include">Layout_MenuList</param>
<param name="detailed">true</param>

<onup>9099</onup>
<ondown>9099</ondown>

<onleft>9000</onleft>
<onright>7000</onright>

<top>80</top>

<content>plugin://plugin.video.themoviedb.helper/?info=user_discover&amp;tmdb_type=$INFO[Skin.String(Discover.TMDbType)]&amp;method=skip$INFO[Window(Home).Property(TMDbHelper.UserDiscover.ParamsDict),&amp;reload=,]</content>

<onclick>RunPlugin($INFO[Container(8000).ListItem.FolderPath])</onclick>

</include>
</control>

</control>

<include content="Dialog_Outline_InnerBox">
<left>480</left>
<right>40</right>
<!-- <height>708</height>
<bottom>0</bottom> -->

<include content="List_Poster_Wall">
<param name="id">7000</param>
<param name="detailed">String.IsEqual(ListItem.Label,$LOCALIZE[31046])</param>

<include content="Animation_ConditionalFade">
<param name="condition">Container(7000).IsUpdating</param>
</include>

<pagecontrol>61</pagecontrol>

<onleft>8000</onleft>
<onright>61</onright>
<content>
<item>
<label>$LOCALIZE[31046]</label>
<icon>fallback/no-results.png</icon>
<visible>Integer.IsEqual(Container(7000).NumItems,0) | [Integer.IsEqual(Container(7000).NumItems,1) + String.IsEqual(Container(7000).ListItemAbsolute(0).Label,$LOCALIZE[31046])]</visible>
</item>
</content>

<content browse="$VAR[Defs_BrowseLimitedLists]" target="videos">$INFO[window(home).property(tmdbhelper.userdiscover.folderpath)]$INFO[Control.GetLabel(9099).index(1),&amp;with_text_query=,]</content>
</include>

<control type="group">
<right>-40</right>
<include content="Object_BusySpinner">
<param name="colordiffuse">dialog_fg</param>
<visible>Container(7000).IsUpdating</visible>
</include>
</control>

</include>

<include content="Dialog_Scrollbar">
<param name="id">61</param>
<onleft>7000</onleft>
</include>
</control>
</include>
</control>
</controls>
</window>
5 changes: 5 additions & 0 deletions 1080i/Includes_Images.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@
<value condition="Skin.String(VideoOSD.PersonCredits.WidgetInfo,shows)">special://skin/extras/icons/tv.png</value>
</variable>

<variable name="Image_Discover_TMDbType">
<value condition="Skin.String(Discover.TMDbType,movie)">special://skin/extras/icons/film.png</value>
<value condition="Skin.String(Discover.TMDbType,tv)">special://skin/extras/icons/tv.png</value>
</variable>

<variable name="Image_SkinVariables_FilterPath">
<value condition="String.IsEqual(Window(Home).Property(Shortcuts.Category),Global)">special://skin/extras/icons/world.png</value>
<value condition="String.StartsWith(Window(Home).Property(Shortcuts.Category),guid-)">$INFO[Container(29303).Listitem.Icon]</value>
Expand Down
5 changes: 5 additions & 0 deletions 1080i/Includes_Labels.xml
Original file line number Diff line number Diff line change
Expand Up @@ -568,6 +568,11 @@
<value>$LOCALIZE[208]</value>
</variable>

<variable name="Label_Discover_TMDbType">
<value condition="Skin.String(Discover.TMDbType,movie)">$LOCALIZE[20342]</value>
<value condition="Skin.String(Discover.TMDbType,tv)">$LOCALIZE[20343]</value>
</variable>

<variable name="Label_Setting_SeekbarPauseBehaviour">
<value condition="Skin.HasSetting(OSD.AutoHideOnPause)">$LOCALIZE[31162]</value>
<value condition="Skin.HasSetting(OSD.AutoInfoOnPause)">$LOCALIZE[29915]</value>
Expand Down
27 changes: 27 additions & 0 deletions 1080i/Includes_Lists.xml
Original file line number Diff line number Diff line change
Expand Up @@ -545,6 +545,33 @@
</definition>
</include>

<include name="List_Poster_Wall">
<param name="focusedlayout_special">false</param>
<definition>
<include content="List_Core">
<param name="orientation">vertical</param>
<param name="control">panel</param>
<param name="id">$PARAM[id]</param>
<param name="item_w">view_poster_item_w</param>
<param name="item_h">view_poster_item_h</param>
<param name="itemlayout_w">view_poster_itemlayout_w</param>
<param name="itemlayout_h">view_poster_itemlayout_h</param>
<param name="itemlayout_include">Layout_Poster</param>
<param name="focusedlayout_special">$PARAM[focusedlayout_special]</param>
<param name="offset_x">40</param>
<param name="offset_y">40</param>
<!-- <param name="offset_y">106</param> -->
<param name="icon">$PARAM[icon]</param>
<param name="detailed">$PARAM[detailed]</param>
<param name="hidden_button_enabled">$PARAM[hidden_button_enabled]</param>
<param name="hidden_button">$PARAM[hidden_button]</param>
<preloaditems>0</preloaditems>
<nested />
</include>
</definition>
</include>


<include name="List_Overview_Row">
<param name="focusedlayout_special">false</param>
<definition>
Expand Down
4 changes: 2 additions & 2 deletions 1080i/Includes_Search_Filter.xml
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@

<include name="Search_Filter_Selector_ContentItems">
<item>
<label>$LOCALIZE[342] &amp; $LOCALIZE[20343] (TMDb)</label>
<label>$LOCALIZE[21475] (TMDb)</label>
<property name="target">videos</property>
<property name="guid">guid-discoverall</property>
<property name="listid">$NUMBER[52]</property>
Expand All @@ -142,7 +142,7 @@
<property name="discover">true</property>
</item>
<item>
<label>$LOCALIZE[342] &amp; $LOCALIZE[20343] ($LOCALIZE[14022])</label>
<label>$LOCALIZE[21475] ($LOCALIZE[14022])</label>
<property name="target">videos</property>
<property name="guid">guid-libraryall</property>
<property name="listid">$NUMBER[52]</property>
Expand Down
5 changes: 5 additions & 0 deletions 1080i/MyVideoNav.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,10 @@

<include>Defs_TMDbHelper_Loader</include>
<include>View_Main</include>

<include content="Object_Hidden_List">
<param name="id">9901</param>
<content>plugin://script.skinvariables/?info=get_dbitem_movie_details&amp;dbid=$INFO[ListItem.DBID]&amp;reload=$INFO[ListItem.Title]</content>
</include>
</controls>
</window>
1 change: 1 addition & 0 deletions 1080i/VideoFullScreen.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<window>
<include>Animation_OSD_Fullscreen_Change</include>
<onload>ClearProperty(OSDRelaunchFullscreen,Home)</onload>
<onload>Dialog.Close(1175,force)</onload>
<controls>
<include content="Background_Notification_Overlay" condition="!Skin.HasSetting(ToastNotifications.Tabbed)">
<param name="colordiffuse">panel_bg_70</param>
Expand Down
4 changes: 2 additions & 2 deletions addon.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<addon id="skin.arctic.fuse" name="Arctic Fuse" provider-name="jurialmunkey" version="0.7.37~omega">
<addon id="skin.arctic.fuse" name="Arctic Fuse" provider-name="jurialmunkey" version="0.7.38~omega">
<requires>
<import addon="xbmc.gui" version="5.17.0" />
<import addon="script.skinvariables" version="2.1.14" />
<import addon="script.texturemaker" version="0.2.9" />
<import addon="plugin.video.themoviedb.helper" version="5.2.27" />
<import addon="plugin.video.themoviedb.helper" version="5.2.31" />
<import addon="resource.images.weathericons.white" version="0.0.1" />
<import addon="resource.images.studios.coloured" version="0.0.1" />
<import addon="resource.font.robotocjksc" version="0.0.1" />
Expand Down
5 changes: 5 additions & 0 deletions language/resource.language.en_gb/strings.po
Original file line number Diff line number Diff line change
Expand Up @@ -2637,3 +2637,8 @@ msgstr ""
msgctxt "#31552"
msgid "Widgets for $INFO[Window.Property(hub_prefix)] hub"
msgstr ""

#: /1080i/Custom_1175_Dialog_Discover.xml
msgctxt "#31553"
msgid "Query"
msgstr ""
6 changes: 6 additions & 0 deletions shortcuts/skinvariables-shortcut-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -999,6 +999,12 @@
"icon": "special://skin/extras/icons/binoculars.png",
"link": "true"
},
{
"name": "Discover (Dialog)",
"path": "ActivateWindow(1175)",
"icon": "special://skin/extras/icons/binoculars.png",
"link": "true"
},
{
"name": "Movies Hub",
"path": "ActivateWindow(1101)",
Expand Down

0 comments on commit 43702e2

Please sign in to comment.