Guest - Testers are needed for the reworked CDateTime core component. See... https://forum.kodi.tv/showthread.php?tid=378981 (September 29) x
  • 1
  • 2
  • 3(current)
  • 4
  • 5
  • 22
Release [Module] youtube-dl - multi-site playable URL resolver
#31
(2014-12-10, 12:26)mac1202 Wrote: Hi i tried to use this addon in addition with your pushbullet addon to send video hosting url to play from firefox to xbmc.
I have succesfully installed your repo, installed pushbullet and configure it and it working. But i can't find youtube-dl addon on your repo and sending for example youtube link via pushbullet doesnt work i just got a loading message on xmbc and nothing after. Going to pushbullet addon on xbmc the video link appear but clicking on it give me a no handler for this type af push error. I'm little lost here can anyone help me.
I'm using xbmc 13 on manjaro linux.
Edit : downloaded extension from here https://ruuks-repo.googlecode.com/svn/tr...outube.dl/ and installed from zip worked.
This addon is a module. So normally, if you install the addon that depends on it properly, it gets installed automatically. That is why it is not visible on my repo.
Reply
#32
Version 14.1210.0

Changes:
  • Update youtube-dl core to 2014.12.10.3
  • Added auto-updating of the youtube-dl core
  • Added the ability to download in the background
  • Added to programs/addons/apps for controlling background downloads and queue management
  • Added settings for stream selection defaults, download path defaults and auto-update defaults
  • Deprecated the module function disableDASHVideo() which is now set in the addon settings
  • Added the option to download the currently playing video (via the option from 'youtube-dl Control' in Programs)
  • Changed the icon

On my REPO.

I'll need to update the guide in the thread, but here is some basic info:

handleDownload() now accepts the additional parameters of duration (for live streams) and bg (to set background downloading)

Code:
handleDownload(info,duration=None,bg=False):

info can be a VideoInfo object as returned by getVideoInfo() or a dictionary for generic URL downloading.
The dict must include 'url', and should included 'title' and 'media_type' of video, audio or image if applicable. If known 'ext' should be set to the correct file extension, otherwise the addon will try to figure it out itself or just set a default for the media type. While not currently used, you can also set 'description' and 'thumbnail' as they may be used in the future when managing queues and such.

Some new methods are isDownloading() to check if files are downloading in the background and manageDownloads() which opens the the downloads manager so the user can stop downloads and manage the queue.

The addon now includes auto-updating of the core. It currently checks for new versions every 24 hours, but I may change this to be kind to their server. In any case there is an option in the settings. - Removed

There's a new icon and if anyone wants to make a better one, I would really appreciate it, as I'm not great at it. Also the skin for the download manager isn't that great, so if anyone wants to design something more beautiful I would appreciate that as well.

One nifty new feature for users is the ability to download the currently playing video. If a web video is playing and you open the download manager, you will have the option 'Download Currently Playing Video'.

There is a lot of new stuff here as well as some restructuring and code cleanup under the hood, so I'm not going to push this to the official repository until it's had more testing, so please let me know if you have any issues or questions.
Reply
#33
(2014-12-10, 23:32)ruuk Wrote: Version 14.1210.0
Sweet! Thanks
Image Lunatixz - Kodi / Beta repository
Image PseudoTV - Forum | Website | Youtube | Help?
Reply
#34
It looks like I'll be removing auto-updating. It can't go into the official repo because it introduces code without review and outside our control, which is a violation of submission rules. In any case I update the addon regularly and as always will update on request if it fixes an issue for a depending addon.
Reply
#35
Information 
Version 14.1210.1

Changes:
  • Removed core updating options


On my REPO.
Reply
#36
Information 
Version 14.1217.0

Changes:
  • Updated youtube-dl core to 2014.12.17.2


Pushed to official repository, pending mirrors update.
Reply
#37
Hello

How to run youtube-dl in xml file
I want to start a youtube trailer for my castom game with $INFO[Skin.String(Launcher)]
Is this possible ?
Reply
#38
(2015-03-11, 15:33)senna99 Wrote: Hello

How to run youtube-dl in xml file
I want to start a youtube trailer for my castom game with $INFO[Skin.String(Launcher)]
Is this possible ?
This isn't possible, as this is a module meant to be imported into other addons.

Alternatively, as this is a YouTube video, you can use the official YouTube plugin to do this.
Reply
#39
Hi All,

This looks like an interesting addon module - so thanks for the work to make it available.

I may think of making use of this in TvTunes and VideoExtras, but was wondering if there is a module some-where that enables you to "Do a search on youtube.com"?

For example, an interface that I can pass a search string to and would then return a list of entries with a "String Name/Title" and a link URL for the video?

I guess that this is a very useful feature that would work well with this addon, and was wondering if there was already the work out there somewhere? (I had guessed that the vast majority of people using this addon are doing that already?)

Thanks

Rob
Reply
#40
I really hope someone can help me get this working under Windows 8

All I know is this addon doesn't work using the latest clean install of Kodi for Windows and Python runtime for for Windows.

EDIT: I'm not even sure if I needed to install python for Windows. I only did it after, this Kodi addon didn't work after installing it via Kodi; and, select the download location.


Nothing happens when I select, "Download Currently Playing Video". Also, under Advanced settings, View youtube-dl core info just results in an error: Script failed! youtube-dl Control.

Below, is a full debug log after I select to download the currently playing video. So, what's the trick to get this to work? It would be great to get it to work automatically for novices like me.


PHP Code:
07:04:45 T:8996  NOTICE: -->Python Interpreter Initialized<--
07:04:48 T:8996  NOTICEscript.module.youtube.dl: {'url''https://r15---sn-o097zne7.googlevideo.com/videoplayback?source=youtube&mm=31&itag=22&key=yt5&mt=1427033016&sver=3&ipbits=0&ratebypass=yes&expire=1427054656&upn=WWPjr_624Y4&id=o-ABKifkltzIQSv2eSxyrI0zLT7VT1SB1KE358446xIhIr&requiressl=yes&dur=150.906&signature=C7BF510CD64DBABAC73AE7429A09CE1F09350681.E9069D835F84EF966ACAD7E7D229828A0055C8A9&pl=32&ip=2601%3A9%3A0%3A1791%3A71a0%3A57bf%3Abd10%3Aff39&fexp=900720%2C907263%2C926421%2C934954%2C9407103%2C9408025%2C948124%2C951511%2C951703%2C952302%2C952612%2C952901%2C955301%2C957201%2C958504%2C959701%2C961404%2C964746&ms=au&sparams=dur%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Cmm%2Cms%2Cmv%2Cpl%2Cratebypass%2Crequiressl%2Csource%2Cupn%2Cexpire&initcwndbps=1903750&mv=m''media_type''video''id'1427033088'thumbnail''https://i.ytimg.com/vi/qNggvk8QtaY/hqdefault.jpg''title''THE EQUALIZER Trailer (Denzel Washinton - 20104)'}
07:04:48 T:8996   ERROREXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - 
NOTEIGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            
Error Type: <type 'exceptions.ImportError'>
                                            
Error ContentsNo module named YDStreamExtractor
                                            Traceback 
(most recent call last):
                                              
File "C:\Users\MKANET\AppData\Roaming\Kodi\addons\script.module.youtube.dl\control.py"line 39in onClick
                                                self
.main.downloadPlaying()
                                              
File "C:\Users\MKANET\AppData\Roaming\Kodi\addons\script.module.youtube.dl\control.py"line 78in downloadPlaying
                                                import YDStreamExtractor
                                            ImportError
No module named YDStreamExtractor
                                            
-->End of Python script error report<-- 
Reply
#41
(2015-03-22, 05:57)MKANET Wrote: I really hope someone can help me get this working under Windows 8

All I know is this addon doesn't work using the latest clean install of Kodi for Windows and Python runtime for for Windows.

EDIT: I'm not even sure if I needed to install python for Windows. I only did it after, this Kodi addon didn't work after installing it via Kodi; and, select the download location.


Nothing happens when I select, "Download Currently Playing Video". Also, under Advanced settings, View youtube-dl core info just results in an error: Script failed! youtube-dl Control.

Below, is a full debug log after I select to download the currently playing video. So, what's the trick to get this to work? It would be great to get it to work automatically for novices like me.


PHP Code:
07:04:48 T:8996   ERROREXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - 
NOTEIGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            
Error Type: <type 'exceptions.ImportError'>
                                            
Error ContentsNo module named YDStreamExtractor
                                            Traceback 
(most recent call last):
                                              
File "C:\Users\MKANET\AppData\Roaming\Kodi\addons\script.module.youtube.dl\control.py"line 39in onClick
                                                self
.main.downloadPlaying()
                                              
File "C:\Users\MKANET\AppData\Roaming\Kodi\addons\script.module.youtube.dl\control.py"line 78in downloadPlaying
                                                import YDStreamExtractor
                                            ImportError
No module named YDStreamExtractor
                                            
-->End of Python script error report<-- 

Looks like there is a bug in the 'Download Currently Playing Video' option. I'll fix it as soon as I get a chance.
Reply
#42
Thanks so much for fixing it. I'm still very new to Kodi. Maybe I'm missing something very obvious; but, how is it that nobody noticed that this plugin doesn't work at all? Seems like an irreplaceable plugin. At least, I couldn't find any other plugin that saves youtube videos.

Thanks again for your help to get this working!
Reply
#43
Information 
Version 15.318.0

Changes:
  • Updated youtube-dl core to 2015.03.18
  • Fix error causing 'Download Current Video' to fail

On my REPO.
Reply
#44
Updated on official repo as well, pending mirrors update.
Reply
#45
Thanks fort he update, but unfortunately the same problem is still there. I even tried installing cleanly. Below, is the detailed debug log of the latest version of this plugin:

Code:
19:11:33 T:1132  NOTICE: -->Python Interpreter Initialized<--
19:11:36 T:1132  NOTICE: script.module.youtube.dl: {'url': 'https://r15---sn-nwj7kney.googlevideo.com/videoplayback?ms=au&pl=32&mv=m&ipbits=0&ip=2601%3A9%3A0%3A1791%3A1df0%3A1482%3Ac0f6%3Aad0&id=o-AKkkojYnEmwW1t__yQyw1g9RHcyJ9_DONZWz_s_2-eXj&expire=1428048674&mm=31&pcm2=yes&mt=1428027016&ratebypass=yes&dur=150.906&requiressl=yes&initcwndbps=1836250&fexp=900504%2C900720%2C907263%2C926421%2C929305%2C934954%2C934968%2C9408025%2C945049%2C948124%2C948703%2C951703%2C952612%2C957201%2C961404%2C961406&source=youtube&key=yt5&itag=22&upn=vYcROu6UfqU&sver=3&sparams=dur%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Cmm%2Cms%2Cmv%2Cpcm2%2Cpl%2Cratebypass%2Crequiressl%2Csource%2Cupn%2Cexpire&signature=0B99B122EC60467E87734AC581C78D5C18826F9B.BFC17F755D20F615DB0AF45B6ED02DC736480C79', 'media_type': 'video', 'id': 1428027096, 'thumbnail': 'https://i.ytimg.com/vi/qNggvk8QtaY/hqdefault.jpg', 'title': 'THE EQUALIZER Trailer (Denzel Washinton - 20104)'}
19:11:36 T:1132   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.ImportError'>
                                            Error Contents: No module named YDStreamExtractor
                                            Traceback (most recent call last):
                                              File "C:\Users\MKANET\AppData\Roaming\Kodi\addons\script.module.youtube.dl\control.py", line 39, in onClick
                                                self.main.downloadPlaying()
                                              File "C:\Users\MKANET\AppData\Roaming\Kodi\addons\script.module.youtube.dl\control.py", line 78, in downloadPlaying
                                                import YDStreamExtractor
                                            ImportError: No module named YDStreamExtractor
                                            -->End of Python script error report<--
Reply
  • 1
  • 2
  • 3(current)
  • 4
  • 5
  • 22

Logout Mark Read Team Forum Stats Members Help
[Module] youtube-dl - multi-site playable URL resolver2