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.
--match-title with 2 filter terms #1685
Comments
|
my own mistake i copied with the uparrow [~] # always in front of my commands. |
|
Well, but the correct regex is still missing :) |
|
It don't work anymore, i recently saw that the download-process takes too long so i looked in the Download-Directory and there are all kind of Videos (including that one i aimed for). Did Youtube change something again? |
|
The problem is that the regex you are using is wrong, you have to use |
|
First of all: Thanks for your help! But it seems not to work. I use this command:
i've made a tail on the file with in addition " - " cause i know this comes after the episode number and helps me to skip all the other "did not match pattern"-messages, like this
and getting this:
I've also tried back ticks but that splitting up my pipe by "|", i also tried without the inner quotes and getting the same result. |
|
Oh i find the REGEX with "Try-and-Error"-Principe :) |
|
The command must be |
|
Thanks for your quick answer. If i use it like this
the result ist a Downloading of i Video that i don't want:
and i think i know why: the Expression seems to meaning that "Minecraft" OR "1170" have to be in the title. But what i'm searching for is that "Minecraft" AND "1170" are in the title. Thanks for the Link, maybe we find together a solution. |
|
Nailed it:
Result:
on the other Videos there comes the result "did not match pattern". I hope this helps other users. Thanks jaimeMF for your help. |
|
No, thats not working. I tested the Command by deleting one of the files that have been downloaded. Still the same: i just get an OR not an AND |
|
@EpsilonAlpha Well, |
|
Yeah, that's great.
was my command and the result of my first tail was
the other tail was searching for % (if something has been downloaded it would make a status) was empty. Meanwhile i also begun with experimenting with |
Hi Guys,
I searched on the issues and didn't find one that's matching my issue:
I want to download a specific video from a ytuser 'gronhk' that has 'minecraft' and the episode number in it for example '#1170'
so I made this:
youtube-dl ytuser:gronkh --match-title "1170"
and it worked but just because the minecraft videos are the only one of this user with such a high episode number. I got a problem if I want to download episode for example 27 from gta 5 because there are other videos with that episode number from many series. Okay let's see what I've tried over an hour:
[
] # [] # youtube-dl ytuser:Gronkh --match-title Minecraft#1170sh: [
]: command not found] # [[
] # youtube-dl ytuser:Gronkh --match-title "Minecraft#1170"]: command not foundsh: [
[~] # youtube-dl
Usage: youtube-dl [options] url [url...]
youtube-dl: error: you must provide at least one URL
[
] # [] # youtube-dl ytuser:Gronkh --match-title "Minecraft|#1170"sh: [
]: command not found] # [[
] # youtube-dl ytuser:Gronkh --match-title Minecraft|#1170]: command not foundsh: [
[
] # [] # youtube-dl ytuser:Gronkh --match-title "Minecraft"|"#1170"sh: [
]: command not found] # [[
] # youtube-dl ytuser:Gronkh --match-title ("Minecraft"|"#1170")]: command not foundsh: [
[
] # [] # youtube-dl ytuser:Gronkh --match-title (Minecraft|#1170)sh: [
]: command not found] # [[
] # youtube-dl ytuser:Gronkh ytsearch:Minecraft]: command not foundsh: [
[
] # [] # youtube-dl ytuser:Gronkh --match-title {"Minecraft","#1170"}sh: [
]: command not found] # [[
] # youtube-dl ytuser:Gronkh --match-title={"Minecraft","#1170"}]: command not foundsh: [
[
] # [] # youtube-dl ytuser:Gronkh --match-title{"Minecraft","#1170"}sh: [
]: command not found] # [[
] # youtube-dl ytuser:Gronkh --match-title{"Minecraft","#1170"}"]: command not foundsh: [
[
] #] # [[
] # youtube-dl ytuser:Gronkh --match-title{"Minecraft","#1170"}"]: command not foundsh: [
[
] # [] # youtube-dl ytuser:Gronkh --match-title "{"Minecraft","#1170"}"sh: [
]: command not found] # [[
] # youtube-dl ytuser:Gronkh --match-title "{Minecraft,#1170}"]: command not foundsh: [
[
] # [] # youtube-dl ytuser:Gronkh --match-title {Minecraft,#1170}sh: [
]: command not found] # [[
] # youtube-dl ytuser:Gronkh --match-title "(Minecraft)+(1170)"]: command not foundsh: [
[
] # [] # youtube-dl ytuser:Gronkh --match-title (Minecraft)+(1170)sh: [
]: command not found] # [[
] # youtube-dl ytuser:Gronkh --match-title (Minecraft)]: command not foundsh: [
[
] # [] # youtube-dl ytuser:Gronkh --match-title "Minecraft"+"1170"sh: [
]: command not found] # [[
] # youtube-dl ytuser:Gronkh --match-title (?("Minecraft")"#1170")]: command not foundsh: [
[
] # [] # youtube-dl ytuser:Gronkh --match-title (?("Minecraft")"#1170"|"")sh: [
]: command not found] # [[
] # youtube-dl ytuser:Gronkh --match-title (?("Minecraft")"#1170"|"")]: command not foundsh: [
[
] # [] # youtube-dl ytuser:Gronkh --match-title $(?("Minecraft")"#1170"|"")sh: [
]: command not found] # [[
] # youtube-dl ytuser:Gronkh --match-title "Minecraft*#1170"]: command not foundsh: [
[
] # [] # youtube-dl ytuser:Gronkh --match-title "Minecraft #1170"sh: [
]: command not found] # [[
] # youtube-dl ytuser:Gronkh --match-title "Minecraft #1170"]: command not foundsh: [
[
] # [] # youtube-dl ytuser:Gronkh --match-title ^s_Minecraft+s_1170Well, there is even more examples but I think you guys get the idea. So the main question is:
How can i filter with 2 terms?
Btw. Google wasn't very helpful, and lead me to most of what you see.