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

case insensetive --match-case #2384

Closed
davidhedlund opened this issue Feb 14, 2014 · 6 comments
Closed

case insensetive --match-case #2384

davidhedlund opened this issue Feb 14, 2014 · 6 comments

Comments

@davidhedlund
Copy link

How can I use --match-title without case sensetivity in?: --match-title "$artist - $title"

@jaimeMF
Copy link
Collaborator

jaimeMF commented Feb 14, 2014

They should be case insensitive, could you post the output of a command that doesn't work?

@davidhedlund
Copy link
Author

On 2014-02-14 18:02, Jaime Marquínez Ferrándiz wrote:

They should be case insensitive, could you post the output of a
command that doesn't work?


Reply to this email directly or view it on GitHub
#2384 (comment).

artist="Koan"; title="When The Silence Is Speaking (Blue Mix)";
youtube-dl "ytsearch10:$artist - $title" --match-title ^"$artist -
$title"$ --verbose
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['ytsearch10:Koan - When The Silence Is
Speaking (Blue Mix)', '--match-title', '^Koan - When The Silence Is
Speaking (Blue Mix)$', '--verbose']
[debug] Encodings: locale 'UTF-8', fs 'UTF-8', out 'UTF-8', pref: 'UTF-8'
[debug] youtube-dl version 2014.02.13
[debug] Python version 2.7.3 -
Linux-3.2.0-58-generic-x86_64-with-Trisquel-6.0-toutatis
[debug] Proxy map: {}
[youtube:search] query "Koan - When The Silence Is Speaking (Blue Mix)":
Downloading page 1
[download] Downloading playlist: Koan - When The Silence Is Speaking
(Blue Mix)
[youtube:search] playlist Koan - When The Silence Is Speaking (Blue
Mix): Collected 10 video ids (downloading 10 of them)
[download] Downloading video #1 of 10
[youtube] Setting language
[youtube] 75ukBYcS8Qc: Downloading webpage
[youtube] 75ukBYcS8Qc: Downloading video info webpage
[youtube] 75ukBYcS8Qc: Extracting video information
[youtube] 75ukBYcS8Qc: Encrypted signatures detected.
[youtube] encrypted signature length 89 (43.45), itag 22, html5 player
vfliqjKfF
[youtube] encrypted signature length 89 (43.45), itag 43, html5 player
vfliqjKfF
[youtube] encrypted signature length 89 (43.45), itag 18, html5 player
vfliqjKfF
[youtube] encrypted signature length 89 (43.45), itag 5, html5 player
vfliqjKfF
[youtube] encrypted signature length 89 (43.45), itag 36, html5 player
vfliqjKfF
[youtube] encrypted signature length 89 (43.45), itag 17, html5 player
vfliqjKfF
[youtube] encrypted signature length 84 (43.40), itag 136, html5 player
vfliqjKfF
[youtube] encrypted signature length 84 (43.40), itag 135, html5 player
vfliqjKfF
[youtube] encrypted signature length 84 (43.40), itag 134, html5 player
vfliqjKfF
[youtube] encrypted signature length 84 (43.40), itag 133, html5 player
vfliqjKfF
[youtube] encrypted signature length 84 (43.40), itag 160, html5 player
vfliqjKfF
[youtube] encrypted signature length 84 (43.40), itag 140, html5 player
vfliqjKfF
[youtube] encrypted signature length 89 (43.45), itag 136, html5 player
vfliqjKfF
[youtube] encrypted signature length 89 (43.45), itag 135, html5 player
vfliqjKfF
[youtube] encrypted signature length 89 (43.45), itag 134, html5 player
vfliqjKfF
[youtube] encrypted signature length 89 (43.45), itag 133, html5 player
vfliqjKfF
[youtube] encrypted signature length 89 (43.45), itag 160, html5 player
vfliqjKfF
[youtube] encrypted signature length 89 (43.45), itag 140, html5 player
vfliqjKfF
[download] "Koan - When the Silence is Speaking (Blue mix)" title did
not match pattern "^Koan - When The Silence Is Speaking (Blue Mix)$"
[download] Downloading video #2 of 10
[youtube] 9fApaO2RFLY: Downloading webpage
[youtube] 9fApaO2RFLY: Downloading video info webpage
[youtube] 9fApaO2RFLY: Extracting video information
[youtube] 9fApaO2RFLY: Encrypted signatures detected.
[youtube] encrypted signature length 89 (43.45), itag 22, html5 player
vfliqjKfF
[youtube] encrypted signature length 89 (43.45), itag 43, html5 player
vfliqjKfF
[youtube] encrypted signature length 89 (43.45), itag 18, html5 player
vfliqjKfF
[youtube] encrypted signature length 89 (43.45), itag 5, html5 player
vfliqjKfF
[youtube] encrypted signature length 89 (43.45), itag 36, html5 player
vfliqjKfF
[youtube] encrypted signature length 89 (43.45), itag 17, html5 player
vfliqjKfF
[youtube] encrypted signature length 87 (43.43), itag 138, html5 player
vfliqjKfF
[youtube] encrypted signature length 87 (43.43), itag 137, html5 player
vfliqjKfF
[youtube] encrypted signature length 87 (43.43), itag 136, html5 player
vfliqjKfF
[youtube] encrypted signature length 87 (43.43), itag 135, html5 player
vfliqjKfF
[youtube] encrypted signature length 87 (43.43), itag 134, html5 player
vfliqjKfF
[youtube] encrypted signature length 87 (43.43), itag 133, html5 player
vfliqjKfF
[youtube] encrypted signature length 87 (43.43), itag 160, html5 player
vfliqjKfF
[youtube] encrypted signature length 87 (43.43), itag 140, html5 player
vfliqjKfF
[youtube] encrypted signature length 87 (43.43), itag 138, html5 player
vfliqjKfF
[youtube] encrypted signature length 89 (43.45), itag 137, html5 player
vfliqjKfF
[youtube] encrypted signature length 89 (43.45), itag 136, html5 player
vfliqjKfF
[youtube] encrypted signature length 89 (43.45), itag 135, html5 player
vfliqjKfF
[youtube] encrypted signature length 89 (43.45), itag 134, html5 player
vfliqjKfF
[youtube] encrypted signature length 89 (43.45), itag 133, html5 player
vfliqjKfF
[youtube] encrypted signature length 89 (43.45), itag 160, html5 player
vfliqjKfF
[youtube] encrypted signature length 89 (43.45), itag 140, html5 player
vfliqjKfF
[download] "Koan - When the Silence is Speaking (Blue Mix) [HQ]" title
did not match pattern "^Koan - When The Silence Is Speaking (Blue Mix)$"
[download] Downloading video #3 of 10
[youtube] GsNRBAWjwc4: Downloading webpage
[youtube] GsNRBAWjwc4: Downloading video info webpage
[youtube] GsNRBAWjwc4: Extracting video information
[youtube] GsNRBAWjwc4: Encrypted signatures detected.
[youtube] encrypted signature length 89 (43.45), itag 43, html5 player
vfliqjKfF
[youtube] encrypted signature length 89 (43.45), itag 18, html5 player
vfliqjKfF
[youtube] encrypted signature length 89 (43.45), itag 5, html5 player
vfliqjKfF
[youtube] encrypted signature length 89 (43.45), itag 36, html5 player
vfliqjKfF
[youtube] encrypted signature length 89 (43.45), itag 17, html5 player
vfliqjKfF
[youtube] encrypted signature length 87 (43.43), itag 135, html5 player
vfliqjKfF
[youtube] encrypted signature length 87 (43.43), itag 134, html5 player
vfliqjKfF
[youtube] encrypted signature length 87 (43.43), itag 133, html5 player
vfliqjKfF
[youtube] encrypted signature length 87 (43.43), itag 160, html5 player
vfliqjKfF
[youtube] encrypted signature length 87 (43.43), itag 140, html5 player
vfliqjKfF
[youtube] encrypted signature length 89 (43.45), itag 135, html5 player
vfliqjKfF
[youtube] encrypted signature length 89 (43.45), itag 134, html5 player
vfliqjKfF
[youtube] encrypted signature length 89 (43.45), itag 133, html5 player
vfliqjKfF
[youtube] encrypted signature length 89 (43.45), itag 160, html5 player
vfliqjKfF
[youtube] encrypted signature length 89 (43.45), itag 140, html5 player
vfliqjKfF
[download] "Koan - When the silence is speaking (blue mix)" title did
not match pattern "^Koan - When The Silence Is Speaking (Blue Mix)$"
[download] Downloading video #4 of 10
[youtube] qED1jXAmOr0: Downloading webpage
[youtube] qED1jXAmOr0: Downloading video info webpage
[youtube] qED1jXAmOr0: Extracting video information
[youtube] qED1jXAmOr0: Encrypted signatures detected.
[youtube] encrypted signature length 89 (43.45), itag 43, html5 player
vfliqjKfF
[youtube] encrypted signature length 89 (43.45), itag 18, html5 player
vfliqjKfF
[youtube] encrypted signature length 89 (43.45), itag 5, html5 player
vfliqjKfF
[youtube] encrypted signature length 89 (43.45), itag 36, html5 player
vfliqjKfF
[youtube] encrypted signature length 89 (43.45), itag 17, html5 player
vfliqjKfF
[youtube] encrypted signature length 86 (45.40), itag 135, html5 player
vfliqjKfF
[youtube] encrypted signature length 84 (43.40), itag 134, html5 player
vfliqjKfF
[youtube] encrypted signature length 86 (45.40), itag 133, html5 player
vfliqjKfF
[youtube] encrypted signature length 86 (45.40), itag 160, html5 player
vfliqjKfF
[youtube] encrypted signature length 86 (45.40), itag 140, html5 player
vfliqjKfF
[youtube] encrypted signature length 89 (43.45), itag 135, html5 player
vfliqjKfF
[youtube] encrypted signature length 89 (43.45), itag 134, html5 player
vfliqjKfF
[youtube] encrypted signature length 89 (43.45), itag 133, html5 player
vfliqjKfF
[youtube] encrypted signature length 89 (43.45), itag 160, html5 player
vfliqjKfF
[youtube] encrypted signature length 89 (43.45), itag 140, html5 player
vfliqjKfF
[download] "Koan - When The Silence Is Speaking (Blue Mix)" title did
not match pattern "^Koan - When The Silence Is Speaking (Blue Mix)$"
[download] Downloading video #5 of 10
[youtube] Lv_AuJ-FadA: Downloading webpage
[youtube] Lv_AuJ-FadA: Downloading video info webpage
[youtube] Lv_AuJ-FadA: Extracting video information
[download] "Koan - When The Silence is Speaking (Blue Mix)" title did
not match pattern "^Koan - When The Silence Is Speaking (Blue Mix)$"
[download] Downloading video #6 of 10
[youtube] g-NSUXirTkw: Downloading webpage
[youtube] g-NSUXirTkw: Downloading video info webpage
[youtube] g-NSUXirTkw: Extracting video information
[download] "Koan - When The Silence Is... [Full Album]" title did not
match pattern "^Koan - When The Silence Is Speaking (Blue Mix)$"
[download] Downloading video #7 of 10
[youtube] kCgH8jY2igE: Downloading webpage
[youtube] kCgH8jY2igE: Downloading video info webpage
[youtube] kCgH8jY2igE: Extracting video information
[youtube] kCgH8jY2igE: Encrypted signatures detected.
[youtube] encrypted signature length 89 (43.45), itag 22, html5 player
vfliqjKfF
[youtube] encrypted signature length 89 (43.45), itag 43, html5 player
vfliqjKfF
[youtube] encrypted signature length 89 (43.45), itag 18, html5 player
vfliqjKfF
[youtube] encrypted signature length 89 (43.45), itag 5, html5 player
vfliqjKfF
[youtube] encrypted signature length 89 (43.45), itag 36, html5 player
vfliqjKfF
[youtube] encrypted signature length 89 (43.45), itag 17, html5 player
vfliqjKfF
[youtube] encrypted signature length 89 (43.45), itag 137, html5 player
vfliqjKfF
[youtube] encrypted signature length 89 (43.45), itag 136, html5 player
vfliqjKfF
[youtube] encrypted signature length 89 (43.45), itag 135, html5 player
vfliqjKfF
[youtube] encrypted signature length 89 (43.45), itag 134, html5 player
vfliqjKfF
[youtube] encrypted signature length 89 (43.45), itag 133, html5 player
vfliqjKfF
[youtube] encrypted signature length 89 (43.45), itag 160, html5 player
vfliqjKfF
[youtube] encrypted signature length 89 (43.45), itag 140, html5 player
vfliqjKfF
[youtube] encrypted signature length 89 (43.45), itag 137, html5 player
vfliqjKfF
[youtube] encrypted signature length 89 (43.45), itag 136, html5 player
vfliqjKfF
[youtube] encrypted signature length 89 (43.45), itag 135, html5 player
vfliqjKfF
[youtube] encrypted signature length 89 (43.45), itag 134, html5 player
vfliqjKfF
[youtube] encrypted signature length 89 (43.45), itag 133, html5 player
vfliqjKfF
[youtube] encrypted signature length 89 (43.45), itag 160, html5 player
vfliqjKfF
[youtube] encrypted signature length 89 (43.45), itag 140, html5 player
vfliqjKfF
[download] "Koan - When The Silence Is Speaking [Full Album]" title did
not match pattern "^Koan - When The Silence Is Speaking (Blue Mix)$"
[download] Downloading video #8 of 10
[youtube] 4kx6U2Y_GTY: Downloading webpage
[youtube] 4kx6U2Y_GTY: Downloading video info webpage
[youtube] 4kx6U2Y_GTY: Extracting video information
[youtube] 4kx6U2Y_GTY: Encrypted signatures detected.
[youtube] encrypted signature length 89 (43.45), itag 22, html5 player
vfliqjKfF
[youtube] encrypted signature length 89 (43.45), itag 43, html5 player
vfliqjKfF
[youtube] encrypted signature length 89 (43.45), itag 18, html5 player
vfliqjKfF
[youtube] encrypted signature length 89 (43.45), itag 5, html5 player
vfliqjKfF
[youtube] encrypted signature length 89 (43.45), itag 36, html5 player
vfliqjKfF
[youtube] encrypted signature length 89 (43.45), itag 17, html5 player
vfliqjKfF
[youtube] encrypted signature length 88 (43.44), itag 136, html5 player
vfliqjKfF
[youtube] encrypted signature length 88 (43.44), itag 135, html5 player
vfliqjKfF
[youtube] encrypted signature length 88 (43.44), itag 134, html5 player
vfliqjKfF
[youtube] encrypted signature length 88 (43.44), itag 133, html5 player
vfliqjKfF
[youtube] encrypted signature length 88 (43.44), itag 160, html5 player
vfliqjKfF
[youtube] encrypted signature length 88 (43.44), itag 140, html5 player
vfliqjKfF
[youtube] encrypted signature length 89 (43.45), itag 136, html5 player
vfliqjKfF
[youtube] encrypted signature length 89 (43.45), itag 135, html5 player
vfliqjKfF
[youtube] encrypted signature length 89 (43.45), itag 134, html5 player
vfliqjKfF
[youtube] encrypted signature length 89 (43.45), itag 133, html5 player
vfliqjKfF
[youtube] encrypted signature length 89 (43.45), itag 160, html5 player
vfliqjKfF
[youtube] encrypted signature length 89 (43.45), itag 140, html5 player
vfliqjKfF
[download] "Koan - When The Silence Is Speaking (Blue Mix Video)" title
did not match pattern "^Koan - When The Silence Is Speaking (Blue Mix)$"
[download] Downloading video #9 of 10
[youtube] ufYHUvD6A-g: Downloading webpage
[youtube] ufYHUvD6A-g: Downloading video info webpage
[youtube] ufYHUvD6A-g: Extracting video information
[youtube] ufYHUvD6A-g: Encrypted signatures detected.
[youtube] encrypted signature length 89 (43.45), itag 22, html5 player
vfliqjKfF
[youtube] encrypted signature length 89 (43.45), itag 43, html5 player
vfliqjKfF
[youtube] encrypted signature length 89 (43.45), itag 18, html5 player
vfliqjKfF
[youtube] encrypted signature length 89 (43.45), itag 5, html5 player
vfliqjKfF
[youtube] encrypted signature length 89 (43.45), itag 36, html5 player
vfliqjKfF
[youtube] encrypted signature length 89 (43.45), itag 17, html5 player
vfliqjKfF
[youtube] encrypted signature length 84 (43.40), itag 136, html5 player
vfliqjKfF
[youtube] encrypted signature length 84 (43.40), itag 135, html5 player
vfliqjKfF
[youtube] encrypted signature length 84 (43.40), itag 134, html5 player
vfliqjKfF
[youtube] encrypted signature length 84 (43.40), itag 133, html5 player
vfliqjKfF
[youtube] encrypted signature length 84 (43.40), itag 160, html5 player
vfliqjKfF
[youtube] encrypted signature length 84 (43.40), itag 140, html5 player
vfliqjKfF
[youtube] encrypted signature length 89 (43.45), itag 136, html5 player
vfliqjKfF
[youtube] encrypted signature length 89 (43.45), itag 135, html5 player
vfliqjKfF
[youtube] encrypted signature length 89 (43.45), itag 134, html5 player
vfliqjKfF
[youtube] encrypted signature length 89 (43.45), itag 133, html5 player
vfliqjKfF
[youtube] encrypted signature length 89 (43.45), itag 160, html5 player
vfliqjKfF
[youtube] encrypted signature length 89 (43.45), itag 140, html5 player
vfliqjKfF
[download] "Koan - When The Silence Is Speaking (Blue Mix)" title did
not match pattern "^Koan - When The Silence Is Speaking (Blue Mix)$"
[download] Downloading video #10 of 10
[youtube] YC_ltkbuC8I: Downloading webpage
[youtube] YC_ltkbuC8I: Downloading video info webpage
[youtube] YC_ltkbuC8I: Extracting video information
[youtube] YC_ltkbuC8I: Encrypted signatures detected.
[youtube] encrypted signature length 89 (43.45), itag 43, html5 player
vfliqjKfF
[youtube] encrypted signature length 89 (43.45), itag 18, html5 player
vfliqjKfF
[youtube] encrypted signature length 89 (43.45), itag 5, html5 player
vfliqjKfF
[youtube] encrypted signature length 89 (43.45), itag 36, html5 player
vfliqjKfF
[youtube] encrypted signature length 89 (43.45), itag 17, html5 player
vfliqjKfF
[youtube] encrypted signature length 84 (41.42), itag 135, html5 player
vfliqjKfF
[youtube] encrypted signature length 84 (41.42), itag 134, html5 player
vfliqjKfF
[youtube] encrypted signature length 84 (41.42), itag 133, html5 player
vfliqjKfF
[youtube] encrypted signature length 84 (41.42), itag 160, html5 player
vfliqjKfF
[youtube] encrypted signature length 84 (41.42), itag 140, html5 player
vfliqjKfF
[youtube] encrypted signature length 89 (43.45), itag 135, html5 player
vfliqjKfF
[youtube] encrypted signature length 89 (43.45), itag 134, html5 player
vfliqjKfF
[youtube] encrypted signature length 89 (43.45), itag 133, html5 player
vfliqjKfF
[youtube] encrypted signature length 89 (43.45), itag 160, html5 player
vfliqjKfF
[youtube] encrypted signature length 89 (43.45), itag 140, html5 player
vfliqjKfF
[download] "Koan - Back to the silent lagoon (blue mix)" title did not
match pattern "^Koan - When The Silence Is Speaking (Blue Mix)$"

@jaimeMF
Copy link
Collaborator

jaimeMF commented Feb 14, 2014

I found the problem, you have to escape the parenthesis: Koan - When The Silence Is Speaking \(Blue Mix\). In python they are used to make a group inside the regex.

@jaimeMF jaimeMF closed this as completed Feb 14, 2014
@davidhedlund
Copy link
Author

Can you please remove that requirement?

@jaimeMF
Copy link
Collaborator

jaimeMF commented Feb 14, 2014

We could pass it through re.escape, but then you wouldn't be able to use the ^ for matching the start of the string, pythons? to match python or pythons. Actually, you couldn't use any of the regex features. I don't see why you would want this.

@davidhedlund
Copy link
Author

On 2014-02-14 18:24, Jaime Marquínez Ferrándiz wrote:

We could pass it through |re.escape|
http://docs.python.org/2/library/re.html#re.escape, but then you
wouldn't be able to use the |^| for matching the start of the string,
|pythons?| to match |python| or |pythons|. Actually, you couldn't use
any of the regex features. I don't see why you would want this.


Reply to this email directly or view it on GitHub
#2384 (comment).

Ok. You are correct. I put a note on this in my head instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants