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 youtube.com/user/<ytuser> -j | grep -m 1 -Po '(?<="uploader_id": ")[^"]*' fails #9221
Comments
|
You should not grep on JSON use |
|
I ended up doing --playlist-items 1: https://github.com/TheSqrtMinus1/download-youtube-channel-hq |
Please follow the guide below
xinto all the boxes [ ] relevant to your issue (like that [x])Make sure you are using the latest version: run
youtube-dl --versionand ensure your version is 2016.04.13. 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?
The following sections concretize particular purposed issues, you can erase any section (the contents between triple ---) not applicable to your issue
If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:
Add
-vflag to your command line you run youtube-dl with, copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):bash shell, btw
Description of your issue, suggested solution and other information
No idea. Seems like running grep on some json output fails, for some reason. I'm just trying to come up with a regex expression to grep on the JSON output.
So far I can do
and get the uploader_id, but it outputs it every time it finds a new video, so I end up with the uploader_id duplicated for however many videos the youtube channel has.
That's what the -m 1 in the grep command was for, but it failed. No idea why.