Yep, a "server-update button" would be a nice idea for servers, as you said.
But I know people is lazy. Lazy a lot
So I think the more it's automated at start, the better.
Most users using pelisalacarta I suppose they have
a good bandwidth for HD streams and decent hardware to play it,
enough for pelisalacarta to check online and download
updated servers in a couple of seconds.
So, how do we proceed?
EDIT:
So, in my mind a file "serverlist.xml" like this should exist both online and local:
https://raw.githubusercontent.com/Zanzi ... erlist.xml
Código: Seleccionar todo
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<servers>
<server>
<id>nowvideo</id>
<update_url>https://raw.githubusercontent.com/Zanzibar82/plugin.video.pelisalacarta.italiano/master/servers/nowvideo.py</update_url>
<active>true</active>
<version>1</version>
<date>07/09/2015</date>
<changes>PRUEBA</changes>
</server>
<server>
<id>rapidvideo</id>
<update_url>https://raw.githubusercontent.com/Zanzibar82/plugin.video.pelisalacarta.italiano/master/servers/rapidvideo.py</update_url>
<active>true</active>
<version>1</version>
<date>07/09/2015</date>
<changes>PRUEBA</changes>
</server>
</servers>
the online .xml should be scraped at add-on startup looking for server <id> and <version>.
For each server id, if version value is different from locale servelist.xml then the updated version
must be downloaded from <update_url> automatically.
I understand that in order to add new servers, also "servertools" would need to be modified, as for channelselector
when you add new channels, but at the moment I am interested in only doing eventual servers' updates.
How should we edit launcher.py and updater.py to do that?