Bug 18464

Summary: cclive crashes with a lua exception on a YouTube URL.
Product: Mageia Reporter: Shlomi Fish <shlomif>
Component: RPM PackagesAssignee: All Packagers <pkg-bugs>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Normal    
Version: Cauldron   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: CVE:
Status comment:

Description Shlomi Fish 2016-05-15 23:36:23 CEST
shlomif@telaviv1:~$ cclive 'https://www.youtube.com/watch?v=n6KAGqjdmsk'

** (process:13167): CRITICAL **: [_chk_script_ident] /usr/share/libquvi-scripts/0.9/common/quvi/youtube.lua:109: module 'socket.url' not found:
        no field package.preload['socket.url']
        no file '/usr/share/lua/5.2/socket/url.lua'
        no file '/usr/share/lua/5.2/socket/url/init.lua'
        no file '/usr/lib/lua/5.2/socket/url.lua'
        no file '/usr/lib/lua/5.2/socket/url/init.lua'
        no file '/usr/lib64/lua/5.2/socket/url.lua'
        no file '/usr/lib64/lua/5.2/socket/url/init.lua'
        no file './socket/url.lua'
        no file '/usr/share/libquvi-scripts/0.9/common/socket/url.lua'
        no file '/usr/lib/lua/5.2/socket/url.so'
        no file '/usr/lib/lua/5.2/loadall.so'
        no file '/usr/lib64/lua/5.2/socket/url.so'
        no file '/usr/lib64/lua/5.2/loadall.so'
        no file './socket/url.so'
        no file '/usr/lib/lua/5.2/socket.so'
        no file '/usr/lib/lua/5.2/loadall.so'
        no file '/usr/lib64/lua/5.2/socket.so'
        no file '/usr/lib64/lua/5.2/loadall.so'
        no file './socket.so'
libquvi: error: Could not find any subtitle scripts in the path
shlomif@telaviv1:~$ 

Should we obsolete "cclive"? There's also youtube-dl.
Comment 1 Rémi Verschelde 2016-05-17 11:24:00 CEST
Assigning to all packagers collectively as cclive has no registered maintainer.

Assignee: bugsquad => pkg-bugs

Comment 2 Keith Bowes 2018-08-04 00:26:54 CEST
I'm all for obsoleting cclive/quvi. libquvi doesn't work with lua5.1+, which are the only versions that Mageia includes.  Plus, the scripts haven't been updated since 2013, so I doubt it would actually download the videos even if you used it with old Lua versions.  I know I reluctantly switched over to youtube-dl years ago, but things have progressed and youtube-dl+mpv is now better than clive/cclive/quvi+mplayer was.

Though, this bug itself would be easy to fix.  Just add lua-socket as a requirement in libquvi-scripts.spec.

CC: (none) => zooplah

Keith Bowes 2018-08-04 00:31:52 CEST

CC: zooplah => (none)

Comment 3 Shlomi Fish 2019-06-07 22:58:37 CEST
added obsoletes: to the next version of youtube-dl.

Status: NEW => RESOLVED
Resolution: (none) => FIXED