Error .movie.sources.themoviedb Failed To Open
Contents |
Sign in Pricing Blog Support Search GitHub This repository Watch 1 Star kodi unable to connect to network 2 Fork 182 rb2k/CouchPotato forked from CouchPotato/CouchPotatoV1 Code Pull requests
Kodi Unable To Connect To Server
0 Projects 0 Pulse Graphs Permalink Branch: master Switch branches/tags Branches Tags Cleanup experimental kodi unable to connect could not retrieve directory information master patch-1 sorting Nothing to show Nothing to show Find file Copy path CouchPotato/app/lib/provider/movie/sources/theMovieDb.py Fetching contributors… Cannot retrieve contributors at this time Raw Blame kodi unable to connect to remote server would you like to continue scanning History 185 lines (139 sloc) 5.61 KB from app.config.cplog import CPLog from app.lib.provider.movie.base import movieBase from imdb import IMDb from urllib import quote_plus from urllib2 import URLError import cherrypy import os import urllib2 log = CPLog(__name__) class theMovieDb(movieBase): """Api for theMovieDb""" apiUrl = 'http://api.themoviedb.org/2.1' imageUrl = 'http://hwcdn.themoviedb.org' def
Kodi Unable To Connect To Network Server
__init__(self, config): log.info('Using TheMovieDb provider.') self.config = config def conf(self, option): return self.config.get('TheMovieDB', option) def find(self, q, limit = 8, alternative = True): ''' Find movie by name ''' if self.isDisabled(): return False log.debug('TheMovieDB - Searching for movie: %s' % q) url = "%s/%s/en/xml/%s/%s" % (self.apiUrl, 'Movie.search', self.conf('key'), quote_plus(self.toSearchString(q))) try: log.info('Searching: %s' % url) data = urllib2.urlopen(url, timeout = self.timeout) return self.parseXML(data, limit, alternative = alternative) except: return [] def findById(self, id): ''' Find movie by TheMovieDB ID ''' if self.isDisabled(): return False xml = self.getXML(id) if xml: results = self.parseXML(xml, limit = 8) return results.pop(0) else: return False def findByImdbId(self, id): ''' Find movie by IMDB ID ''' if self.isDisabled(): return False url = "%s/%s/en/xml/%s/%s" % (self.apiUrl, 'Movie.imdbLookup', self.conf('key'), id) try: data = urllib2.urlopen(url, timeout = self.timeout) except (IOError, URLError): log.error('Failed to open %s.' % url) return [] results = self.parseXML(data, lim
→ API Support Creating lists by using the API posted by phil65 on Dec, 09 2014 at 10:44PM Hey guys, first of all, let me thank you for all the work you put into MovieDB. It´s by far the best kodi remote share couldn't connect to network server movie info site with by far the best API out there available. I am kodi unable to connect to host developing an add-on for the open source media center software XBMC at the moment and almost everything works perfectly. Almost. :) If I
Kodi Cannot Connect To Network
try to create a list by using the API, I always get the following answer: { "error": "Unable to create list because: Description is suspected to be spam.", "failure": true } I tried lot of different https://github.com/rb2k/CouchPotato/blob/master/app/lib/provider/movie/sources/theMovieDb.py names / desciptions and none seem to work. Any idea what could cause this? Thanks in advance, and let me know if you need further details. Cheers, phil65 13 Replies (currently on page 1 of 1) Reply by Travis Bell on Dec, 09 2014 at 11:55PM Hey Phil, Thanks for the feedback! With regards to the list error, that's odd… can you show the exact request (with data) that you're making? Reply by phil65 https://www.themoviedb.org/talk/54876d319251416b9a00005d on Dec, 10 2014 at 12:16AM Of course: here is the relevant python snippet: http://pastebin.com/aLSr1vbC Also some videos to show you what I´m workin on: :) https://www.youtube.com/watch?v=7i3z6QxEU3A and https://www.youtube.com/watch?v=tNPmA3VTB_A (I will add a fairly large MovieDB logo for release into those dialogs of course to give proper credit, it´s still work in progress and not released) Reply by Travis Bell on Dec, 10 2014 at 11:05PM Hey Phil, I've been testing this request here, and it's working fine. Can you try this with your keys and let me know the results? curl -H "Accept: application/json" -H "Content-Type: application/json" -d \ "{'name': 'My Awesome List Test', 'description': 'This is my test list.'}" \ "http://api.themoviedb.org/3/list?api_key=###&session_id=###" P.S. is that rating/favourites/watchlist stuff hooked up to TMDb sessions? Reply by phil65 on Dec, 10 2014 at 11:34PM Sure, will test when I get back home. Yes, all hooked to TMDB sessions (needs inputting account details in settings first). I also make use of guest sessions to allow ratings without account so I hope that it will provide a nice quick way to increase the amount of ratings on your site. :) Btw is it possible that it takes some time until the rating for movies gets updated or should that happen instantly? Reply by Travis Bell on Dec, 10 2014 at 11:38PM Thanks. Yes, al
Return Errors Utility functions DescriptionThis library provides some data types and functions for fetching movie metadata from http://TheMovieDB.com. To use this library start by requesting https://hackage.haskell.org/package/themoviedb-0.1.0.1/docs/Network-API-TheMovieDB.html an API key from http://docs.themoviedb.apiary.io. A typical workflow while using this library is: Place an API Key inside a Context http://kodi.wiki/view/Add-on:The_Movie_Database using mkContext or one of the utility functions in Network.API.TheMovieDB.Util. Retrieve API Configuration information using either the config function connect to or the configErr function. Search TheMovieDB using either the search function or the searchErr function. Since the search functions don't return a full Movie record follow them up with the fetch function or the fetchErr function. This library also kodi unable to includes an example executable in the example directory. Synopsisdata Configuration data Movie = Movie {movieID :: MovieIDmovieTitle :: StringmovieOverview :: StringmovieGenres :: [Genre]moviePopularity :: DoublemoviePosterPath :: StringmovieReleaseDate :: DaymovieAdult :: BoolmovieIMDB :: StringmovieRunTime :: Int}data Genre = Genre {genreID :: GenreIDgenreName :: String}data Context data Error = NetworkError String | ParseError String type Key = Stringtype MovieID = Inttype GenreID = Inttype SearchQuery = Stringconfig :: Context -> IO Configurationfetch :: Context -> MovieID -> IO Moviesearch :: Context -> SearchQuery -> IO [Movie]configErr :: Context -> IO (Either Error Configuration)fetchErr :: Context -> MovieID -> IO (Either Error Movie)searchErr :: Context -> SearchQuery -> IO (Either Error [Movie])mkContext :: Key -> ContextapiKey :: Context -> KeymoviePosterURLs :: Configuration -> Movie -> [String]Types TheMovieDB Metadata data Configuration SourceTheMovieDB API tries to preserve bandwidth
repo v14 License: GPL v2.0 Summary: TMDB Movie Scraper Add-ons The Movie Database themoviedb.org is a free and open movie database. It's completely user driven by people like you. TMDb is currently used by millions of people every month and with their powerful API, it is also used by many popular media centers like Kodi to retrieve Movie Metadata, Posters and Fanart to enrich the user's experience. 1 Installing To install this add-on you must do so from the Add-on manager from within Kodi by going to: Settings Add-ons Install from repository (v15/v16) / Get add-ons (v14) Kodi add-on repository Information providers (v16 and higher) Movie information The Movie Database Install 2 Scraper settings Keep original title Use the original (untranslated) title when getting info for a foreign film. Enable fanart Download Fanart or not. Enable trailer (YouTube) Download movie trailers from YouTube. Prefer trailer from HD-Trailers.net Alternative trailer download. Preferred language Language to use for summaries and other metadata. Preferred Certification Country Country/Nation preference for movie ratings Get rating from Choose site to download movie ratings from. 3 See also http://themoviedb.org Video library Adding videos to the library Retrieved from "http://kodi.wiki/index.php?title=Add-on:The_Movie_Database&oldid=123153" Categories: Movie scraper add-onsAll add-onsBuilt-in add-onsGotham add-on repositoryIsengard add-on repositoryHelix add-on repositoryJarvis add-on repositoryHidden category: Add-ons with license tag Personal tools Log in / create account Namespaces Add-on Discussion Variants Views Read View source View history Actions Search Navigation kodi.tv> kodi.tv - BlogAboutDownloadsSupport forumsAdd-ons showcaseBug trackerGit repo (source code)TranslationsGet involvedDonate Wiki h