Release [Module] youtube-dl - multi-site playable URL resolver
(2017-11-29, 07:56)ruuk Wrote:
(2017-11-28, 09:54)positronik Wrote: Hi, I am trying to build my own addon to play videos from rutube.
What I would like to do is to stream the video without downloading it.
The problem is that youtube-dl returns an unplayable link for rutube
videos and therefore also your module gives a wrong url to feed to kodi.
An example of video is the following:

If I feed it into youtube-dl it downloads it without problem, however if I use the -g option to get
the url it gives an unplayable url.

Therefore I guess that the best approach would be to use the download function
of your module and play the video while it is downloading.
However, I haven't managed to understand how to get the path of the downloaded file
and play it while it is downloading.

It's the first addon I am writing for kodi and I am not properly a developer therefore
I am sorry if this is a very noob question...
 The instructions for using this module are in the first post of this thread. Generally speaking, if you can give one of a site's URLs to youtube-dl and it downloads, you can use the instructions in the first post with the same URLs and it should work just fine. You shouldn't need to worry about command line options. This module gives back URL strings that are ready to pass to Kodi for streaming, meaning the User-Agent is already added which is often important to make a stream actually accessible.  
Thanks for your answer, unfortunately the links that the module provides for rutube are not playable and the player returns 'Failed to recognize file format'.
This problem arises from the fact that youtube-dl provide the wrong link to be played.
However both your addon and youtube-dl download it correctly if I use the download function.
You can see it by yourself with the link in my previous post.

EDIT: I think I have found a solution. Basically your module return the url of the best quality that happens to be a f4m file for rutube's videos and Kodi can't play it. The next-to-best video quality is an m3u file and Kodi can play it. It would be awesome if you would add the format selection in your module, in the meantime I am using a custom function written by myself. If you want I can share it with you.

Messages In This Thread
v14.810.0 - by ruuk - 2014-08-11, 19:45
v14.925.0 - by ruuk - 2014-09-25, 17:49
v14.1026.0 - by ruuk - 2014-10-26, 21:53
v14.1210.0 - by ruuk - 2014-12-10, 23:32
v14.1210.1 - by ruuk - 2014-12-11, 21:17
v15.318.0 - by ruuk - 2015-04-02, 23:01
v15.1123.0 - by ruuk - 2015-11-23, 21:20
v15.1124.0 - by ruuk - 2015-11-24, 21:05
v15.1223.0 - by ruuk - 2015-12-23, 22:27
v16.306.0 - by ruuk - 2016-03-13, 19:05
v16.318.0 - by ruuk - 2016-03-21, 20:31
v16.327.0 - by ruuk - 2016-03-31, 01:12
v16.521.0 - by ruuk - 2016-05-22, 18:15
v16.627.0 - by ruuk - 2016-06-28, 20:38
v16.1026.0 - by ruuk - 2016-10-28, 18:32
v17.310.0 - by ruuk - 2017-03-11, 23:47
v17.518.0 - by ruuk - 2017-05-21, 08:53
v17.518.1 - by ruuk - 2017-05-25, 04:00
v17.709.0 - by ruuk - 2017-07-11, 03:00
v17.1228.0 - by ruuk - 2017-12-28, 22:46
v17.1231.0 - by ruuk - 2018-01-01, 05:46
v18.320.0 - by ruuk - 2018-03-25, 02:07
v18.425.0 - by ruuk - 2018-04-28, 02:53
v14.1217.0 - by ruuk - 2014-12-27, 21:12
RE: Script Error Message - by ruuk - 2016-04-14, 13:15
RE: v16.1026.0 - by Lunatixz - 2016-10-28, 20:25
RE: [Module] youtube-dl - multi-site playable URL resolver - by positronik - 2017-11-29, 12:02
L0RE - by L0RE - 2017-12-19, 14:34
Script Error Message - by eondesigns1138 - 2016-04-08, 10:46
Error python dependency 2.25.0 - by Alyy - 2016-05-21, 10:45

Logout Mark Read Team Forum Stats Members Help
[Module] youtube-dl - multi-site playable URL resolver2
This forum uses Lukasz Tkacz MyBB addons.