home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Plugins
My Recipes
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="SilentException" data-source="post: 612112" data-attributes="member: 83924"><p>I have configured powershell from the instructions in the script and configured cooksunited.co.uk account..</p><p>Opening the plugin i get empty screen, then i clicked on menu "Load" button, after short time MediaPortal was responsive again but nothing's changed on the plugin screen and i get this message in the log:</p><p></p><p>[CODE]System.InvalidOperationException: Process must exit before requested information can be determined.</p><p> at System.Diagnostics.Process.EnsureState(State state)</p><p> at System.Diagnostics.Process.get_ExitCode()</p><p> at GUIRecipes.GUIRecipes.loadDatabase()</p><p> at GUIRecipes.GUIRecipes.OnMessage(GUIMessage message)</p><p> at MediaPortal.GUI.Library.GUIWindowManager.SendMessage(GUIMessage message)[/CODE]</p><p></p><p></p><p>Edit: i tracked it down to process not terminating in the specified time frame (there is a 15 seconds limit set in the code).. Even so, there shouldn't be an error, and also user should be informed..</p><p></p><p>Edit2: After i increased the limit to 60 seconds, process terminated fine, and there was no error in the log. Still, I haven't been able to grab any of the recipes from CooksUnited (database was still blank - empty)..</p><p></p><p>Edit3: I think i know why database was left blank. It's because i havent added any recipes to my account.. I would be nice if it could download all the recipes..</p><p></p><p>Edit4: When i tried to start the script from the command prompt, some errors occured, this was the output:</p><p></p><p>[CODE]The term 'try' is not recognized as a cmdlet, function, operable program, or script file. Verify the term and try again.</p><p>At C:\Documents and Settings\All Users\Application Data\Team MediaPortal\MediaPortal\scripts\MyRecipes\get_my_recipes_from_chefkoch_or_cooksunited.ps1:62 char:4</p><p>+ try <<<< {</p><p>The term 'try' is not recognized as a cmdlet, function, operable program, or script file. Verify the term and try again.</p><p>At C:\Documents and Settings\All Users\Application Data\Team MediaPortal\MediaPortal\scripts\MyRecipes\get_my_recipes_from_chefkoch_or_cooksunited.ps1:111 char:4</p><p>+ try <<<< {</p><p>The term 'try' is not recognized as a cmdlet, function, operable program, or script file. Verify the term and try again.</p><p>At C:\Documents and Settings\All Users\Application Data\Team MediaPortal\MediaPortal\scripts\MyRecipes\get_my_recipes_from_chefkoch_or_cooksunited.ps1:117 char:4</p><p>+ try <<<< {</p><p>Property 'CommandText' cannot be found on this object; make sure it exists and is settable.</p><p>At C:\Documents and Settings\All Users\Application Data\Team MediaPortal\MediaPortal\scripts\MyRecipes\get_my_recipes_from_chefkoch_or_cooksunited.ps1:209 char:13</p><p>+ $sqlCmd.C <<<< ommandText = "INSERT INTO category (category_id, title, url, recipes) VALUES ($catId, '$catName', '$catURL', $recipe)"</p><p>You cannot call a method on a null-valued expression.</p><p>At C:\Documents and Settings\All Users\Application Data\Team MediaPortal\MediaPortal\scripts\MyRecipes\get_my_recipes_from_chefkoch_or_cooksunited.ps1:211 char:28</p><p>+ $sqlCmd.ExecuteNonQuery( <<<< ) | Out-Null</p><p>You cannot call a method on a null-valued expression.</p><p>At C:\Documents and Settings\All Users\Application Data\Team MediaPortal\MediaPortal\scripts\MyRecipes\get_my_recipes_from_chefkoch_or_cooksunited.ps1:327 char:14</p><p>+ $sqlCon.Close( <<<< )[/CODE]</p><p></p><p>I think you have enough data to look into what the problem might be <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /> Thanks in advance!</p></blockquote><p></p>
[QUOTE="SilentException, post: 612112, member: 83924"] I have configured powershell from the instructions in the script and configured cooksunited.co.uk account.. Opening the plugin i get empty screen, then i clicked on menu "Load" button, after short time MediaPortal was responsive again but nothing's changed on the plugin screen and i get this message in the log: [CODE]System.InvalidOperationException: Process must exit before requested information can be determined. at System.Diagnostics.Process.EnsureState(State state) at System.Diagnostics.Process.get_ExitCode() at GUIRecipes.GUIRecipes.loadDatabase() at GUIRecipes.GUIRecipes.OnMessage(GUIMessage message) at MediaPortal.GUI.Library.GUIWindowManager.SendMessage(GUIMessage message)[/CODE] Edit: i tracked it down to process not terminating in the specified time frame (there is a 15 seconds limit set in the code).. Even so, there shouldn't be an error, and also user should be informed.. Edit2: After i increased the limit to 60 seconds, process terminated fine, and there was no error in the log. Still, I haven't been able to grab any of the recipes from CooksUnited (database was still blank - empty).. Edit3: I think i know why database was left blank. It's because i havent added any recipes to my account.. I would be nice if it could download all the recipes.. Edit4: When i tried to start the script from the command prompt, some errors occured, this was the output: [CODE]The term 'try' is not recognized as a cmdlet, function, operable program, or script file. Verify the term and try again. At C:\Documents and Settings\All Users\Application Data\Team MediaPortal\MediaPortal\scripts\MyRecipes\get_my_recipes_from_chefkoch_or_cooksunited.ps1:62 char:4 + try <<<< { The term 'try' is not recognized as a cmdlet, function, operable program, or script file. Verify the term and try again. At C:\Documents and Settings\All Users\Application Data\Team MediaPortal\MediaPortal\scripts\MyRecipes\get_my_recipes_from_chefkoch_or_cooksunited.ps1:111 char:4 + try <<<< { The term 'try' is not recognized as a cmdlet, function, operable program, or script file. Verify the term and try again. At C:\Documents and Settings\All Users\Application Data\Team MediaPortal\MediaPortal\scripts\MyRecipes\get_my_recipes_from_chefkoch_or_cooksunited.ps1:117 char:4 + try <<<< { Property 'CommandText' cannot be found on this object; make sure it exists and is settable. At C:\Documents and Settings\All Users\Application Data\Team MediaPortal\MediaPortal\scripts\MyRecipes\get_my_recipes_from_chefkoch_or_cooksunited.ps1:209 char:13 + $sqlCmd.C <<<< ommandText = "INSERT INTO category (category_id, title, url, recipes) VALUES ($catId, '$catName', '$catURL', $recipe)" You cannot call a method on a null-valued expression. At C:\Documents and Settings\All Users\Application Data\Team MediaPortal\MediaPortal\scripts\MyRecipes\get_my_recipes_from_chefkoch_or_cooksunited.ps1:211 char:28 + $sqlCmd.ExecuteNonQuery( <<<< ) | Out-Null You cannot call a method on a null-valued expression. At C:\Documents and Settings\All Users\Application Data\Team MediaPortal\MediaPortal\scripts\MyRecipes\get_my_recipes_from_chefkoch_or_cooksunited.ps1:327 char:14 + $sqlCon.Close( <<<< )[/CODE] I think you have enough data to look into what the problem might be :) Thanks in advance! [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
My Recipes
Contact us
RSS
Top
Bottom