Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
youtube-dl wrongly reports no xattr support, throws error, interrupts playlist download #14971
Comments
|
That was quick, thanks! |
Make sure you are using the latest version: run
youtube-dl --versionand ensure your version is 2017.12.10. If it's not, read this FAQ entry and update. Issues with outdated version will be rejected.Before submitting an issue make sure you have:
What is the purpose of your issue?
Description of your issue, suggested solution and other information
While downloading videos from a playlist using the
--xattrsoption, I ran into an issue where a video is properly filtered out by--max-filesize, but youtube-dl also throws an error saying extended attributes aren't supported (incorrect), and exits in the middle of the playlist.Here's the command I ran:
$ youtube-dl --no-mtime --xattrs --playlist-reverse --max-filesize 500m -f 22 -o '%(playlist_index)s - %(title)s [src %(uploader_id)s] [posted %(upload_date)s] [id %(id)s].%(ext)s' https://www.youtube.com/user/pbsideachannelAnd the log messages for the video where it threw the error:
If I remove the
--xattrsoption from the command, the download continues fine, minus thatERRORline.It seems to have the same underlying cause as #5589. If the underlying cause can't be fixed, it could probably be worked around with a similar solution, turning it into a warning, not an error.
Technical details
This is repeatable, and the same log messages are printed when you try it on the single video:
$ youtube-dl --max-filesize 500m -f 22 --xattrs 'https://www.youtube.com/watch?v=zPDgEUAowPA'vs
$ youtube-dl --max-filesize 500m -f 22 'https://www.youtube.com/watch?v=zPDgEUAowPA'I know that extended attributes are actually supported on the filesystem, since they were written to other videos in the playlist (examined with the
attrcommand).All the same, this is the line in
/etc/fstabfor one of the drives it occurred on:/dev/mapper/ubuntu--vg-root / ext4 discard,noatime,nodiratime,errors=remount-ro 0 1I'm on Ubuntu 16.04.3, 64-bit, and the drives in question (it happened on multiple) are all ext4-formatted.
Just in case it matters, all the drives are full-disk encrypted. One (the one whose fstab line is shown) is using the standard Ubuntu dm-crypt/cryptsetup/LUKS, and the other uses VeraCrypt (in TrueCrypt compatibility mode).
Here's the verbose version of the single-video command: