mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-04-26 01:26:00 +03:00
[GH-ISSUE #890] Question: How can I download a Youtube video, and just the video and English subtitles? #2062
Labels
No labels
expected: maybe someday
expected: next release
expected: release after next
expected: unlikely unless contributed
good first ticket
help wanted
pull-request
scope: all users
scope: windows users
size: easy
size: hard
size: medium
size: medium
status: backlog
status: blocked
status: done
status: idea-phase
status: needs followup
status: wip
status: wontfix
touches: API/CLI/Spec
touches: configuration
touches: data/schema/architecture
touches: dependencies/packaging
touches: docs
touches: js
touches: views/replayers/html/css
why: correctness
why: functionality
why: performance
why: security
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ArchiveBox#2062
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @aidenmitchell on GitHub (Nov 13, 2021).
Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/890
Apologies for another issue, I don't mean to spam.
Currently I have
SAVE_MEDIA = Falsein my config, but I'm getting lots of.vttfiles downloaded, and the archive size gets big.Is there a way to archive only:
.descriptionfileThanks for your help!
@pirate commented on GitHub (Nov 13, 2021):
You can add arbitrary YoutubeDL arguments using
archivebox config --set YOUTUBEDL_ARGS="...", just figure out what you need and modify the existing args fromarchivebox/config.py:YOUTUBEDL_ARGSand pass them into that config setting.e.g. keeping all the default args and adding
--sub-lang="en"looks like this:@aidenmitchell commented on GitHub (Nov 13, 2021):
Thanks, but it's not too happy about that unfortunately.
I'm probably doing something wrong, however I also copy-pasted your example command and it threw the same error.
@ghost commented on GitHub (Nov 16, 2021):
It's a JSON list, not a string.
@ghost commented on GitHub (Nov 16, 2021):
@aidenmitchell Try this instead:
@pirate commented on GitHub (Nov 16, 2021):
Right, sorry I forgot it needs to be a JSON list!
@aidenmitchell commented on GitHub (Nov 16, 2021):
@remyabel Thank you! Works now.
@dohlin commented on GitHub (Feb 28, 2023):
I'm running this via copy & paste but still hitting the following error:
If I remove the spaces in between each of the parameters, the 'unrecognized arguments' error goes away but instead I get this:
Any thoughts on what I'm missing?
@pirate commented on GitHub (Feb 28, 2023):
Docker strips the singlequotes off the array list when it passes the command to the container:
So you have to escape them like so @dohlin:
@dohlin commented on GitHub (Feb 28, 2023):
Ok that didn't work either unfortunately as it just led to the 'continued input' line in Ubuntu (I'm probably using the wrong term there, but basically what happens when you end a command with a slash.
However, based on your info about docker stripping off the singlequotes I figured out the command that works in my case. Here it is in case anyone else stumbles upon this later:
Basically just escaping the outermost singlequotes. Thank you!