NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 43 44 45 46 47 … 93 Next »
Update notification.

 
  • 0 Vote(s) - 0 Average
Update notification.
Fatman_do
Offline

Posting Freak

Posts: 3,482
Threads: 95
Joined: Nov 2005
#1
2007-05-24, 10:37 PM
It would be slick if there were a plugin or something that can check the wiki page of a skin or plugin for updates. I know McBainUK has a method for some of his plugins, but it would be great if this was user configurable for those that don't have this feature. Lets say I want to be notified if Sassari is updated, Weather Plugin, or GB-PVR itself.
Fatman_do
[SIZE="1"]
HTPC: AMD XP+2500, 512MB DDR (400) ~ Capture Device: Hauppage PVR-150
Storage: 30GB OS & Recording, 160GB Post Processing & Archive
Video Output: HD 32" TV via eVGA Geforce 6200le 256MB AGP DVI-HDMI cable out
Audio Output: Turtle Beach Riviera S/PDIF Optic Output (Digital pass thru only) to Home Theater Receiver[/SIZE]

[SIZE="2"]
Moderator | Tutorials | Community Skin | CommunitySkin-SVN[/SIZE]
KingArgyle
Offline

Posting Freak

Posts: 1,271
Threads: 95
Joined: Nov 2004
#2
2007-05-24, 11:32 PM
You may want to check out this old thread:

http://forums.nextpvr.com/showthread.php...gin+update

It provided an XML format that plugins could use and host on the Wiki, and then it would require a plugin to be able to poll the wiki to check for updates.

It can also be found on the Wiki at:

http://gbpvr.com/pmwiki/pmwiki.php/Devel...AutoUpdate


It would be a basis to start from. Hey maybe a good Google Summer of Code project? sub any thoughts of GBPVR participating in that??
Jeff
Offline

Posting Freak

Posts: 1,933
Threads: 69
Joined: Oct 2004
#3
2007-05-24, 11:41 PM
Neat idea. I've added this to the next video archive version and will build it into the weather plug-in as well.

Jeff
Jeff
Offline

Posting Freak

Posts: 1,933
Threads: 69
Joined: Oct 2004
#4
2007-05-24, 11:45 PM
My mechanism, by the way, was pretty simple. I have just added a text file to my plug-in's wiki page that has the version number of the plug-in assembly. The plug-in downloads this file once a day and compares it to its own assembly version number to see if a new version is available.

Code:
private void CheckForUpdate() { // Only show the notice once if (updateNoticeShown) return; try { System.Net.WebRequest objRequest = System.Net.WebRequest.Create("http://gbpvr.com/pmwiki/uploads/Plugin/VAVersion.txt"); //The WebResponse object gets the Request's response (the HTML) System.Net.WebResponse objResponse = objRequest.GetResponse(); //Now dump the contents of our HTML in the Response object to a //Stream reader StreamReader oSR = new StreamReader(objResponse.GetResponseStream()); //And dump the StreamReader into a string... string webStr = oSR.ReadToEnd(); string[] webVersion = webStr.Split('.'); Assembly asm = Assembly.GetExecutingAssembly(); string myStr = asm.GetName().Version.ToString(); string[] myVersion = myStr.Split('.'); // See if the web version is newer than my version bool updateAvailable = false; for (int i=0; i<myVersion.Length && i<webVersion.Length && !updateAvailable; i++) { int webLevel = Convert.ToInt32(webVersion[i]); int myLevel = Convert.ToInt32(myVersion[i]); updateAvailable = (myLevel < webLevel); } if (updateAvailable) { errorDialog.SetParams("Update Available", "A new version of the Video Archive plug-in is available on the wiki site. You are running version "+myStr+". The wiki site has version "+webStr+"."); flagShowError = true; updateNoticeShown = true; } } catch { } }

Jeff
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  EPG update API mvallevand 2 2,331 2020-12-02, 01:17 AM
Last Post: mvallevand
  Update Season and Episode from EPG_EVENT puck64 0 3,451 2015-08-31, 07:37 AM
Last Post: puck64
  Refreshing TV Guide Data (after System plugin EPG update) imilne 13 8,208 2013-03-24, 08:03 PM
Last Post: imilne
  Update NewSyleListPlugin Button list dynamically? psycik 2 2,551 2011-12-22, 12:25 AM
Last Post: mvallevand
  Force full screen update mvallevand 3 3,007 2010-01-14, 05:11 PM
Last Post: mvallevand
  Automatic Update for BDA Channel Mappings Joesboat 10 6,994 2010-01-10, 08:14 PM
Last Post: PaulH
  Plugin notification of stopped media mvallevand 7 3,601 2009-08-19, 11:16 PM
Last Post: mvallevand
  Using C#: Update EPG and wait for end dero 12 7,155 2008-12-10, 12:37 PM
Last Post: Sheik Yerbouti
  UIStatic update idkpmiller 3 2,656 2008-01-10, 02:35 AM
Last Post: idkpmiller
  Auto Update Schema KingArgyle 26 11,044 2006-01-16, 03:48 AM
Last Post: KingArgyle

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode