Ivars 7 years ago
parent
commit
a6c113f7b0
7 changed files with 72 additions and 10 deletions
  1. 1
    1
      addon.xml
  2. 3
    1
      changelog.md
  3. 2
    0
      get_version.py
  4. 3
    8
      kmake.bat
  5. 22
    0
      resources/language/English/strings.xml
  6. 40
    0
      resources/settings.xml
  7. 1
    0
      version.txt

+ 1
- 1
addon.xml View File

@@ -1,5 +1,5 @@
1 1
 <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2
-<addon id="plugin.video.playstream" name="PlayStream" version="0.1.2" provider-name="ivars777">
2
+<addon version="0.1.3" id="plugin.video.playstream" name="PlayStream" provider-name="ivars777"  >
3 3
   <requires>
4 4
     <import addon="xbmc.python" version="2.1.0"/>
5 5
     <import addon="script.module.xbmcswift2" version="2.4.0" />

+ 3
- 1
changelog.md View File

@@ -1,3 +1,5 @@
1 1
 **0.1.2** (12.02.2016):
2
-- sākotnējā, eksperimentālā versija
2
+- initial exprerimental version
3 3
 
4
+**0.1.3** (14.02.2016):
5
+- addon settings added

+ 2
- 0
get_version.py View File

@@ -0,0 +1,2 @@
1
+import re,sys
2
+print re.search('<addon version="([^"]+)',open(sys.argv[1]).read()).group(1)

+ 3
- 8
kmake.bat View File

@@ -1,14 +1,9 @@
1 1
 @echo off
2 2
 :=== Parameters ===
3 3
 
4
-if ()==(%1%) (
5
-    set ver=0.1.2
6
-	rem echo Please provide version
7
-	rem pause
8
-	rem GOTO:EOF
9
-) else (
10
-    set ver=%1
11
-)
4
+python get_version.py addon.xml >version.txt
5
+set /p ver=<version.txt
6
+echo %ver%
12 7
 
13 8
 set prog=PlayStream
14 9
 set pack_name=plugin.video.playstream

+ 22
- 0
resources/language/English/strings.xml View File

@@ -2,4 +2,26 @@
2 2
 <strings>
3 3
   <!-- Plugin name -->
4 4
   <string id="30000">PlayStream</string>
5
+
6
+  <string id="40000">General settings</string>
7
+  <string id="40001">Replay.lv</string>
8
+  <string id="40002">Skaties.lv</string>
9
+  <string id="40003">Shortcut.tv</string>
10
+  <string id="40004">Play24.lv</string>
11
+  <string id="40005">Viaplay.lv</string>
12
+  <string id="40006">TVDom.tv</string>
13
+  <string id="40007">BBC iPlayer</string>
14
+  <string id="40008">Euronews</string>
15
+  <string id="40009">Cinemalive.tv</string>
16
+  <string id="40010">MoviePlace.lv</string>
17
+  <string id="40011">Filmix.me</string>
18
+  <string id="40012">SerialGURU.ru</string>
19
+  <string id="40013">USTVNow</string>
20
+  <string id="40014">FilmOn</string>
21
+  <string id="40015">MTGPlay</string>
22
+
23
+  <string id="50001">Username</string>
24
+  <string id="50002">Password</string>
25
+  <string id="50003">Language</string>
26
+
5 27
 </strings>

+ 40
- 0
resources/settings.xml View File

@@ -0,0 +1,40 @@
1
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2
+<settings>
3
+
4
+	<category label="40003">
5
+        <setting id="ltc_user" label="50001" type="text" default="change user" />
6
+        <setting id="ltc_password" label="50002" type="text" default="change password" />
7
+		<setting type="sep" />
8
+	</category>
9
+
10
+	<category label="40005">
11
+        <setting id="viaplay_user" label="50001" type="text" default="change user" />
12
+        <setting id="viaplay_password" label="50002" type="text" default="change password" />
13
+		<setting type="sep" />
14
+	</category>
15
+
16
+	<category label="40006">
17
+        <setting id="tvdom_user" label="50001" type="text" default="change user" />
18
+        <setting id="tvdom_password" label="50002" type="text" default="change password" />
19
+		<setting type="sep" />
20
+	</category>
21
+
22
+	<category label="40007">
23
+        <setting id="iplayer_user" label="50001" type="text" default="change user" />
24
+        <setting id="iplayer_password" label="50002" type="text" default="change password" />
25
+		<setting type="sep" />
26
+	</category>
27
+
28
+	<category label="40008">
29
+        <setting id="euronews_language" label="50003" type="text" default="en" />
30
+		<setting type="sep" />
31
+	</category>
32
+
33
+	<category label="40003">
34
+        <setting id="ustvnow_user" label="50001" type="text" default="change user" />
35
+        <setting id="ustvnow_password" label="50002" type="text" default="change password" />
36
+		<setting type="sep" />
37
+	</category>
38
+
39
+
40
+</settings>

+ 1
- 0
version.txt View File

@@ -0,0 +1 @@
1
+0.1.2