Code Monkey home page Code Monkey logo

gomiso-xbmc's People

Contributors

amet avatar metabaron avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

cagnulein

gomiso-xbmc's Issues

Issue with Windows 7 64 bits

19:29:39 T:3868 M:3084136448 NOTICE: -->Python Interpreter Initialized<--
19:29:39 T:3868 M:3083325440 ERROR: Error Type: <type 'exceptions.ImportError'>
19:29:39 T:3868 M:3083325440 ERROR: Error Contents: No module named message
19:29:39 T:3868 M:3083194368 ERROR: Traceback (most recent call last):
File "C:\Users\Zotac\AppData\Roaming\XBMC\addons\script.gomiso\default.py", line 136, in
json_result = json.loads(letsGo.getUserInfo())
File "C:\Users\Zotac\AppData\Roaming\XBMC\addons\script.gomiso\resources\lib\gomiso.py", line 97, in getUserInfo
resp, token = client.request('http://gomiso.com/api/oauth/v1/users/show.json', method="GET")
File "C:\Users\Zotac\AppData\Roaming\XBMC\addons\script.gomiso\resources\lib\oauth2.py", line 683, in request
connection_type=connection_type)
File "C:\Users\Zotac\AppData\Roaming\XBMC\addons\script.gomiso\resources\lib\httplib2.py", line 1021, in request
info = email.Message.Message()
File "C:\Program Files (x86)\XBMC\system\python\Lib\email__init__.py", line 79, in getattr
import(self.name)
ImportError: No module named message
19:29:45 T:1244 M:3082706944 WARNING: XFILE::CFileFactory::CreateLoader - Unsupported protocol(addons) in addons://more/executable.tbn
19:29:46 T:3856 M:3087351808 NOTICE: -->Python Interpreter Initialized<--
19:29:46 T:3856 M:3087261696 ERROR: Error Type: <type 'exceptions.ImportError'>
19:29:46 T:3856 M:3087261696 ERROR: Error Contents: No module named message
19:29:46 T:3856 M:3087118336 ERROR: Traceback (most recent call last):
File "C:\Users\Zotac\AppData\Roaming\XBMC\addons\script.gomiso\default.py", line 136, in
json_result = json.loads(letsGo.getUserInfo())
File "C:\Users\Zotac\AppData\Roaming\XBMC\addons\script.gomiso\resources\lib\gomiso.py", line 97, in getUserInfo
resp, token = client.request('http://gomiso.com/api/oauth/v1/users/show.json', method="GET")
File "C:\Users\Zotac\AppData\Roaming\XBMC\addons\script.gomiso\resources\lib\oauth2.py", line 683, in request
connection_type=connection_type)
File "C:\Users\Zotac\AppData\Roaming\XBMC\addons\script.gomiso\resources\lib\httplib2.py", line 1021, in request
info = email.Message.Message()
File "C:\Program Files (x86)\XBMC\system\python\Lib\email__init__.py", line 79, in getattr
import(self.name)
ImportError: No module named message
19:29:51 T:3776 M:3087360000 NOTICE: -->Python Interpreter Initialized<--

No Messages from Gomiso and Autostart fail

Hi,

I'm using Gomiso-XBMC 1.60
XBMC 12.0 Alpha6, Mac OS X 10.8.2

And the Autostart does'nt work. Neither the messages from gomiso like "Connected" and so on.
I have to go in Programs and then start gomiso manually.
And there is no Indicator gomiso is running or not.

When I click on the item and nothing happens it was switched on.
When I click on the item and the cursor stand still for 2 secs its off.

Strange thing.

Here's a screenshot of my options: http://gbimg.org/tnEE4

While watching a serie: 'ascii' codec can't encode characters

22:16:46 T:5788 M:2381524992 ERROR: Error Type: exceptions.UnicodeEncodeError
22:16:46 T:5788 M:2381524992 ERROR: Error Contents: 'ascii' codec can't encode characters in position 29-30: ordinal not in range(128)
22:16:46 T:5788 M:2381221888 ERROR: Traceback (most recent call last):
File "C:\Users\Stephan\AppData\Roaming\XBMC\addons\script.gomiso\default.py", line 186, in ?
json_result = json.loads(letsGo.findMedia(showname, 'tv', 1))
File "C:\Users\Stephan\AppData\Roaming\XBMC\addons\script.gomiso\resources\lib\gomiso.py", line 214, in findMedia
resp, token = client.request('http://gomiso.com/api/oauth/v1/media.json?q=' + urllib.quote(title) + '&count=' + str(count) + '&kind=' + media_type[kind], method='GET')
File "C:\Users\Stephan\AppData\Roaming\XBMC\addons\script.gomiso\resources\lib\oauth2.py", line 677, in request
uri = req.to_url()
File "C:\Users\Stephan\AppData\Roaming\XBMC\addons\script.gomiso\resources\lib\oauth2.py", line 439, in to_url
url = (scheme, netloc, path, params,
File "special://xbmc/system/python/Lib\urllib.py", line 1187, in urlencode
l.append(k + '=' + quote_plus(str(elt)))
UnicodeEncodeError: 'ascii' codec can't encode characters in position 29-30: ordinal not in range(128)

This one occurred while watching a tv show. The file name is "Raumschiff Enterprise - Das nächste Jahrhundert - S05E21 - Eine hoffnungslose Romanze.avi". I've attached the .nfo file for this episode. I guess the issue is the show name, because your script never worked for this particular show (maybe the "ä" or the "-"??).

Movie info can´t be checked in

when I watch a movie, the information can´t be checked in on Miso due an script error.

I fixed the error.

just put the the marked lines (->) on the default.py before line 212:

elif len(xbmc.getInfoLabel("VideoPlayer.Title")) >= 1:
#Retrieve movie information
#movieName = xbmc.getInfoLabel("VideoPlayer.Title")
movieName = unicode(xbmc.getInfoLabel("VideoPlayer.Title"), errors="ignore")
movieName = movieName.replace(",", '')
-> season = ''
-> episode = ''
#Retrieve only one entry but would be good to have a threshold level like if more than 20 entries, no submit
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')
if verboseScreen:
xbmc.executebuiltin("XBMC.Notification(%s, %s, %i, %s)" % ('Gomiso', movieName + ' ' + language(30918), 5000, settings.getAddonInfo("icon")))
else:
if verboseScreen:
xbmc.executebuiltin("XBMC.Notification(%s, %s, %i, %s)" % ('Gomiso', movieName + ' ' + language(30917), 5000, settings.getAddonInfo("icon")))
checkedTitle = currentTitle

Script failed on ATV2 (running pre-eden release)

I installed v.1.3.0 of gomiso, and entered my username/pasword information and selected 'autostart'. Then it simply threw up an error claiming the script had failed. Does the script need updating for the changes in eden?

Error.script

I always get an error message both win xp and with ubuntu 11.10,
This is the Log
13:02:49 T:139979578382080 ERROR: Error Type: <type 'exceptions.NameError'>
13:02:49 T:139979578382080 ERROR: Error Contents: name 'movieName' is not defined
13:02:49 T:139979578382080 ERROR: Traceback (most recent call last):
File "/home/jacopo/.xbmc/addons/script.gomiso/default.py", line 217, in
json_result = json.loads(letsGo.findMedia(movieName, 'movie', 1))
NameError: name 'movieName' is not defined

I actually don't know Python, so I'm now exactly sure, but I watch a TV series episode and comment out the last part of the default.py script (from line 208) then the script works and It's able to post the update on gomiso.

Sorry if it is not here the place for such a message, but I didn't find another good place to report this problem.

Thank you

Multiple replies from Gomiso

From a client:

I am using the gomiso plugin you developed for XBMC for quite some time now! It saved me a lot of time for manually checking in all the episodes i watch!
You have done a good job and i see that you are trying and fix all the small issues that come up from time to time.
I wanted to let you know about a small issue i've noticed lately.
I started watching the tv series Angel. And when i went to my gomiso page i saw that it doesn't check the correct series.
It checks the episodes from NCIS: Los Angeles.
When you put the search term "Angel" on gomiso the first result is the ncis tv series.
And i guess the plugin understand this as a match.
Is there a possibility for your plugin to match the exact title of the tv series and not the first result that comes up to the gomiso search?
If not is there a possibility to manually link to the main page of the tv series we want to check in the first time and in future checks the plugin to go to that page automatically and skip the search?
The same thing happened with the Survivor checks as well, but i ignored it as there are many titles with the same name (thats gomiso's website fault not the plugin's).

While watching a movie: name 'season' is not defined

22:22:12 T:6312 M:2192416768 ERROR: Error Type: exceptions.NameError
22:22:12 T:6312 M:2192416768 ERROR: Error Contents: name 'season' is not defined
22:22:12 T:6312 M:2192400384 ERROR: Traceback (most recent call last):
File "C:\Users\Stephan\AppData\Roaming\XBMC\addons\script.gomiso\default.py", line 205, in ?
letsGo.checking(json_result[0]['media']['id'], season, episode, 'watched on XBMC with gomiso addon')
NameError: name 'season' is not defined
22:22:15 T:6916 M:2193334272 ERROR: Error Type: exceptions.NameError
22:22:15 T:6916 M:2193334272 ERROR: Error Contents: name 'season' is not defined
22:22:15 T:6916 M:2193321984 ERROR: Traceback (most recent call last):
File "C:\Users\Stephan\AppData\Roaming\XBMC\addons\script.gomiso\default.py", line 205, in ?
letsGo.checking(json_result[0]['media']['id'], season, episode, 'watched on XBMC with gomiso addon')
NameError: name 'season' is not defined

This occurred while i was watching a movie. I don't know if your plugin supports movies or only tv shows and i don't remember if there was an error before while watching anything else than tv shows but this was the first time i noticed this little script error window in xbmc.

Still can't check in movies

This still seems to be broken, script crashes when watching movie, the line 218 still says:
letsGo.checking(json_result[0]['media']['id'], season, episode, 'watched on XBMC with gomiso addon')

in the condition that a movie was found. Consequently we see the following error when in a movie:

File "/root/.xbmc/addons/script.gomiso/default.py", line 218, in
letsGo.checking(json_result[0]['media']['id'], season, episode, 'watched on XBMC with gomiso addon')
NameError: name 'season' is not defined

Is there an easy fix for this?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.