Download Url Resolver For Kodi
Last updated on August 14th, 2017 at 09:22 am EST
Ever seen video websites asking you to click on “I am not a robot”. Once you click on that checkbox, the video starts streaming. Well, if you stream a video in Kodi from the same website, URL Resolver can do all that for you and play the video. URL Resolver works in the background, and knows how to navigate through certain hosts, get the video link from the url and then you can play it in Kodi. URL Resolver is used by a lot of third party Kodi addons, and is installed as a dependency. In this post we are going to take a look at how to play video using URL Resolver when developing a Kodi video addon. Some of the major video streaming websites which URL Resolver supports are :-
- Youtube
- Openload
- Vimeo
- Vidzi
- Nowvideo
- Novamov
All the user will actually see is the media file which sits at the end of the URL. As of right now, the package has been updated to reflect the following changes: New resolvers have been added; Each resolver is now reviewed and fixed; Each resolver which was defunct has now been removed.
- If you are in love with the Kodi, then “URL Resolver” is the only reason for it. It is the backbone of the Kodi. In simple terms, URL Resolver is a script used to fetch links from the external source and streams the content on Kodi.
- The URL resolver is also part dependencies, it decodes and decrypts several different files to play media file or stream in Kodi Player. The main function of this addon is to fetch the streaming file from third-party hosts after passing the certain encryptions.
Pre-Requisites
Make sure you have read our previous article on how to play a video in Kodi using Python.
Also install the Youtube Kodi addon from the official Kodi team. Kodi Home screen -> Addons -> Addon Manager -> Install from Repository -> Kodi Repository -> Video Addons -> Youtube.
31 thoughts on “ How to Download Movies from Kodi Exodus And Covenant for Offline Viewing ” Angie April 9, 2017 I am able to download movies but I’m not getting the full movie. Kodi exodus.
Purpose
The purpose of this addon or plugin is to play a video in Kodi using URL Resolver. We have hardcoded three urls, one a mp4 file, the other one is a youtube video and a random web url (which is not a video). The mp4 file can be played using the inbuilt media player in Kodi, but the youtube video will be played using URL Resolver, and the third one cannot be played as it is not a video.
Addon name – plugin.video.v1d30play
The code for this addon can be found here, and you can grab the addon zip from here.
Aug 18, 2015 KODI is an award winning media center application for Linux, Mac OS X, Windows and XBox. The ultimate hub for all your media, KODI is easy to. Kodi (formerly known as XBMC) is an award-winning free and open source (GPL) software media player and entertainment hub that can be installed on Linux, OSX, Windows, iOS, and Android, featuring a 10-foot user interface for use with televisions and remote controls. Join the millions already enjoying Kodi. While we do not recommend using old builds, should you need to download them you can access those builds here. Stable release sources are available here. Current development is done in our git repository. Kodi 15.1 free download - Kodi, Kodi, Kodi, and many more programs.
Add URL Resolver Dependency
The first step towards using URL Resolver in your Kodi addon is to add it as a required module in the addon.xml file (line 5 of the source)
Add URL Resolver Source
URL Resolver is automatically installed by a lot of third party Kodi. To check if you have URL Resolver installed or not, follow our Real Debrid setup guide till step 7.
If you do not already have URL Resolver, you can add and install the noobsandnerds repository zip and once you install our addon URL Resolver should be installed automatically.
Let’s Dive Into the Code
All the code for this addon is present in the file playvideo.py. We will only go through the differences of this addon when compared to the addon in the pre-requisites section.
Line 4
We are importing URL Resolver classes and functions to be used in our code.
Line 13 – 14
Here we are get the addon name in the variable _addon, and addon icon on the variable _icon. We won’t be using these variables anywhere in the code as we changed the code, but it’s something new none the less.
Lines 21-45 will be covered later.
Url Resolver For Kodi Krypton Download
Lines 52-70
Here we create a menu similar to the one used in addon in pre-requsites section. The only difference is that we have added a third menu item called Play Video 3.
Lines 76 – 78
This is the piece of code which is executed when you select any of the menu items.
Lines 21 – 31
This is the piece of code for URL Resolver which we have added to this addon.
We just define a function called resolve_url which takes a url as input. In our case it will be the three hard coded url’s when we click on the respective menu item.
We define a variable called duration, which we will use later in the code.
We define a variable called message, which will be used later in the code.
We are calling a function in URL Resolver to see if the url we supplied as input can be resolved by URL Resolver or not. If URL Resolver can resolve or process that link, a playable link is returned. If it cannot resolve or process that link False is returned. We store the result in a variable called stream_url.
This is the statement, where we check what was returned. If False was returned, code will go into the if loop, if a url was returned (meaning link was processed by URL Resolver) the code will go into else and return that url.
Here we are creating a notification in Kodi to be displayed if URL Resolver returns False. Notice the use of message and duration variables.
Lines 33 – 45
The code is almost the same as for the addon in pre-requisites section, except for a few lines which were added for URL Resolver.
Here we get the video url from play_item.
This is where we call the function we added for URL Resolver in lines 21-31. We will either get a resolved url or False.
If we get False, we do not do anything. If we get a resolved url we set path for playitem to the url we got back.
How the Code Executes
Let us go ahead and see what happens during runtime.
If you remember our last addon (the one in pre-requisites section), which couldn’t play Youtube videos because we didn’t have a url playable by Kodi inbuilt media player. Well, this addon can play those Youtube video, all credits to URL Resolver.
Play Video 2
Let’s say you click on Play Video 2. The play_video function is called as below.
Once in play_video function, resolve_url function is called. In this case it’s called as.
URL Resolver will now work it’s magic, and return us a playable link for the youtube link we just passed and the video will be played.
Play Video 3
When you click on Play Video 3, you will get an error notification because we know that link (www.reddit.com) is not a playable video file.
Play Video 1
This is an interesting one. When you click Play Video 1, you will get a notification that URL Resolver cannot Play url. This is because it’s already a playable link (direct mp4) or maybe URL resolver cannot process that url. But, the video will also play. We are yet to figure out a work around for this but if you do let us know via comments below.
References
Kodi Url Resolver Addon
Do you STREAM on Kodi WITHOUT a VPN?
We STRONGLY suggest you use a VPN Service like IPVanish.
Why VPN? 1. Stay Secure and Anonymous Online 2. Stream Content Anonymously 3. Access Geo Locked Content 4. Hide Your Activity from your ISP