Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--reject-title exact match #21349

Open
oamaya724 opened this issue Jun 9, 2019 · 1 comment
Open

--reject-title exact match #21349

oamaya724 opened this issue Jun 9, 2019 · 1 comment
Labels

Comments

@oamaya724
Copy link

@oamaya724 oamaya724 commented Jun 9, 2019

Checklist

  • I'm asking a question
  • I've looked through the README and FAQ for similar questions
  • I've searched the bugtracker for similar questions including closed ones

Question

I'm trying to download videos from a certain channel that contain the word "First" in their title, but I want to avoid downloading videos that contain "Mythic+" in their title. The thing is, there are a lot of those "First" videos that contain the word "Mythic" and I can't download them because of my "Mythic+" filter. I'm using:

youtube-dl -f '(299/137/298/136)+(251/bestaudio)' -o '/Volumes/Oliver HDD/Method/%(autonumber)s - %(release_date)s - %(title)s.%(ext)s' --match-title 'First' --reject-title 'Mythic+' https://www.youtube.com/watch?v=RubXDO7TYVs

And I'm getting: "Method VS G'huun WORLD FIRST - Mythic Uldir" title matched reject pattern "Mythic+".

Is there any way to do this?

I'd appreciate any help!

@oamaya724 oamaya724 added the question label Jun 9, 2019
@oamaya724 oamaya724 changed the title --match-title exact match --reject-title exact match Jun 9, 2019
@namekal
Copy link

@namekal namekal commented Jun 11, 2019

--reject-title accepts regex strings, so currently with your format, it will match anything from Mythic (example) to Mythicccccccc (example)
What you'll have to do is escape the + so that it looks for the literal character +

--reject-title 'Mythic\+' (example)

youtube-dl -f '(299/137/298/136)+(251/bestaudio)' -o '/Volumes/Oliver HDD/Method/%(autonumber)s - %(release_date)s - %(title)s.%(ext)s' --match-title 'First' --reject-title 'Mythic\+' https://www.youtube.com/watch?v=RubXDO7TYVs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.