Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update the documentation + hardcoded the language

Hardcoded the language as it seems I have problems with the "autmatic" language
selection from XBMC.
Also updated the documentation so that it's more clear.
  • Loading branch information...
commit b1ab793cf48370f665dfa9204bbbf7a40532499d 1 parent 8fb9320
@metabaron authored
View
7 README.md
@@ -16,7 +16,12 @@ Usage
-----
The XMBC plugin for gomiso updates it with what you've been watching in XBMC. For best results, make sure you are in library mode.
- Installation instructions:
+ Installation instructions:
+ Download the ZIP file from GitHub and rename it as "script.gomiso.zip".
+ Install it following the "System > Addons > Install from ZIP file" process.
+
+ Soon, the script should be available through the official XBMC repository.
+
After installing this plugin, sign up for an account at http://gomiso.com. Then..
1. Navigate to Home > Programs and activate gomiso (location of gomiso activation is skin dependent and may be in other
View
33 default.py
@@ -110,18 +110,27 @@ def percentageRemaining(currenttime, duration):
#Retrieving user information and display a message that authentification is ok
json_result = json.loads(letsGo.getUserInfo())
-xbmc.executebuiltin("XBMC.Notification(%s, %s, %i, %s)" % ('Gomiso', json_result['user']['username'] + " " + __language__(45016), 5000, __settings__.getAddonInfo("icon")))
+#Facing a suddent strange problem with automatic language system, so hardcoding all strings until I found the reason (might be related to encoding from windows / github / linux (my systems)
+#xbmc.executebuiltin("XBMC.Notification(%s, %s, %i, %s)" % ('Gomiso', json_result['user']['username'] + " " + __language__(30916), 5000, __settings__.getAddonInfo("icon")))
+xbmc.executebuiltin("XBMC.Notification(%s, %s, %i, %s)" % ('Gomiso', json_result['user']['username'] + " connected", 5000, __settings__.getAddonInfo("icon")))
videoThreshold = int(__settings__.getSetting( "VideoThreshold" ))
if videoThreshold == 0:
videoThreshold = 75
elif videoThreshold == 1:
videoThreshold = 25
-#videoThreshold=1
+#videoThreshold=25
submitLimit = float(videoThreshold) / 100
checkedTitle = ''
sleepTime = 10
+#Did we display messages on screen when playing video?
+verboseScreen = __settings__.getSetting( "DisplayScreen" )
+if (verboseScreen == 'true'):
+ verboseScreen = True
+else:
+ verboseScreen = False
+
#This is the main part of the program
while (not xbmc.abortRequested):
time.sleep(sleepTime)
@@ -142,11 +151,15 @@ def percentageRemaining(currenttime, duration):
json_result = json.loads(letsGo.findMedia(showname, 'tv', 1))
if len(json_result) != 0:
xbmc.log('###Length: ' + str(len(json_result)))
- letsGo.checking(json_result[0]['media']['id'], season, episode, __language__(45019))
- screenMessage = showname + ' S' + season + 'E' + episode + ' ' + __language__(45018)
- xbmc.executebuiltin("XBMC.Notification(%s, %s, %i, %s)" % ('Gomiso', screenMessage, 5000, __settings__.getAddonInfo("icon")))
+ #letsGo.checking(json_result[0]['media']['id'], season, episode, __language__(30919))
+ letsGo.checking(json_result[0]['media']['id'], season, episode, "Watched on XBMC - Gomiso plugin")
+ if verboseScreen:
+ #xbmc.executebuiltin("XBMC.Notification(%s, %s, %i, %s)" % ('Gomiso', showname + ' S' + season + 'E' + episode + ' ' + __language__(30918), 5000, __settings__.getAddonInfo("icon")))
+ xbmc.executebuiltin("XBMC.Notification(%s, %s, %i, %s)" % ('Gomiso', showname + ' S' + season + 'E' + episode + ' submitted', 5000, __settings__.getAddonInfo("icon")))
else:
- xbmc.executebuiltin("XBMC.Notification(%s, %s, %i, %s)" % ('Gomiso', showname + ' ' + __language__(45017), 5000, __settings__.getAddonInfo("icon")))
+ if verboseScreen:
+ #xbmc.executebuiltin("XBMC.Notification(%s, %s, %i, %s)" % ('Gomiso', showname + ' S' + season + 'E' + episode + ' ' + __language__(30917), 5000, __settings__.getAddonInfo("icon")))
+ xbmc.executebuiltin("XBMC.Notification(%s, %s, %i, %s)" % ('Gomiso', showname + ' S' + season + 'E' + episode + ' not submitted', 5000, __settings__.getAddonInfo("icon")))
checkedTitle = currentTitle
#Or are we watching a movie
elif len(xbmc.getInfoLabel("VideoPlayer.Title")) >= 1:
@@ -158,7 +171,11 @@ def percentageRemaining(currenttime, duration):
json_result = json.loads(letsGo.findMedia(movieName, 'movie', 1))
if len(json_result) != 0:
letsGo.checking(json_result[0]['media']['id'], season, episode, 'watched on XBMC with gomiso addon')
- xbmc.executebuiltin("XBMC.Notification(%s, %s, %i, %s)" % ('Gomiso', movieName + ' ' + __language__(45018), 5000, __settings__.getAddonInfo("icon")))
+ if verboseScreen:
+ #xbmc.executebuiltin("XBMC.Notification(%s, %s, %i, %s)" % ('Gomiso', movieName + ' ' + __language__(30918), 5000, __settings__.getAddonInfo("icon")))
+ xbmc.executebuiltin("XBMC.Notification(%s, %s, %i, %s)" % ('Gomiso', showname + ' S' + season + 'E' + episode + ' submitted', 5000, __settings__.getAddonInfo("icon")))
else:
- xbmc.executebuiltin("XBMC.Notification(%s, %s, %i, %s)" % ('Gomiso', movieName + ' ' + __language__(45017), 5000, __settings__.getAddonInfo("icon")))
+ if verboseScreen:
+ #xbmc.executebuiltin("XBMC.Notification(%s, %s, %i, %s)" % ('Gomiso', movieName + ' ' + __language__(30917), 5000, __settings__.getAddonInfo("icon")))
+ xbmc.executebuiltin("XBMC.Notification(%s, %s, %i, %s)" % ('Gomiso', showname + ' S' + season + 'E' + episode + ' not submitted', 5000, __settings__.getAddonInfo("icon")))
checkedTitle = currentTitle
View
19 resources/language/English/strings.xml
@@ -1,13 +1,14 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<strings>
- <string id="45001">General Settings</string>
- <string id="45013">Submission options</string>
+ <string id="30901">General Settings</string>
+ <string id="30913">Submission options</string>
- <string id="45005">Username</string>
- <string id="45006">Password</string>
- <string id="45015">Submit after watching XX percent</string>
- <string id="45016">Connected</string>
- <string id="45017">Not found on gomiso</string>
- <string id="45018">Submitted</string>
- <string id="45019">Watched on XBMC (Gomiso plugin)</script>
+ <string id="30905">Username</string>
+ <string id="30906">Password</string>
+ <string id="30915">Submit after watching XX%</string>
+ <string id="30916">Connected</string>
+ <string id="30917">Cannot submit</string>
+ <string id="30918">Submitted</string>
+ <string id="30919">Watched on XBMC - Gomiso plugin</script>
+ <string id="30920">Display submission message</script>
</strings>
View
19 resources/language/French/strings.xml
@@ -1,13 +1,14 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<strings>
- <string id="45001">Options Générales</string>
- <string id="45013">Options d'envois des informations</string>
+ <string id="30001">Options Générales</string>
+ <string id="30013">Options d'envois des informations</string>
- <string id="45005">Nom d'utilisateur</string>
- <string id="45006">Mot de passe</string>
- <string id="45015">Soumettre les infos après XX%</string>
- <string id="45016">Connecté</string>
- <string id="45017">Pas trouvé gomiso</string>
- <string id="45018">Soumit</string>
- <string id="45019">Regarde sur XBMC (extension Gomiso)</script>
+ <string id="30005">Nom d'utilisateur</string>
+ <string id="30006">Mot de passe</string>
+ <string id="30015">Soumettre les infos après XX%</string>
+ <string id="30016">Connecté</string>
+ <string id="30017">Impossible de soumettre</string>
+ <string id="30018">Soumit</string>
+ <string id="30019">Regardé sur XBMC (extension Gomiso)</script>
+ <string id="30020">Afficher les messages quand soumit</script>
</strings>
View
13 resources/settings.xml
@@ -1,9 +1,10 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<settings>
- <setting type="lsep" label="45001" />
- <setting id="Username" type="text" label="45005" default="" />
- <setting id="Password" type="text" option="hidden" label="45006" default="" />
-
- <setting type="lsep" label="45013" />
- <setting id="VideoThreshold" type="enum" label="45015" values="25%|75%" default="1" />
+ <setting type="lsep" label="General Settings" />
+ <setting id="Username" type="text" label="Username" default="" />
+ <setting id="Password" type="text" option="PAssword" label="30906" default="" />
+
+ <setting type="lsep" label="Submission options" />
+ <setting id="NotifyOnSubmit" type="bool" label="Display submission message" default="true" />
+ <setting id="VideoThreshold" type="enum" label="Submit after watching XX%" values="25%|75%" default="1" />
</settings>
Please sign in to comment.
Something went wrong with that request. Please try again.