Release [Module] youtube-dl - multi-site playable URL resolver
Good Progress on migrating to yt-dlp for the upcoming script.module.yt-dlp addon. This are a bit of a mess and I have done very limited testing, but I am hoping to have something deliverable in several weeks. Since the addon name will be different, other addons will not have a nasty surprise and will have opportunity to test and get fixes before switching. I had to make more changes to the code (YoutubeDLWrapper, etc.) than I like, but I found several things that had to be changed.

Unfortunately I found some problems in yt-dlp & youtube-dl that are greatly aggravated by Kodi's utf-8 hack for Turkish (but the 'fix' impacts many codesets). Most likely, this will prevent you from downloading any file with names that are non-ASCII. There are circumstances where non-ASCII content may cause trouble as well. I started hacking yt-dlp to see how difficult it would be to fix, but it is a very sizable chunk. There is code to attempt to address it, probably put in for Unicode Migration, but there are bugs and inconsistencies that likely only show up in stress situations such as these.

For the curious: the problem is that there is encoding for the contents of a file, that we all know and love. There is also encoding for the file name, which depends upon what the OS allows. Nearly all OS's these days support utf-8 for both file names and content. During startup Python does some magic and set up default encodings for file names as well as regular strings. The hack for Kodi disabled these, causing the default encoding for file names to be ASCII. The default (nearly) can not be changed after startup, but the consequences of changing it are bad, so don't go down that route. The default encoding for strings is utf-8, but there are some warts on the locale.
Reply


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
L0RE - by L0RE - 2017-12-19, 14:34
RE: [Module] youtube-dl - multi-site playable URL resolver - by fbacher - 2022-01-25, 03:11
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