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

ytsearch Extractor #1767

Closed
RingoTheDog opened this issue Nov 14, 2013 · 1 comment
Closed

ytsearch Extractor #1767

RingoTheDog opened this issue Nov 14, 2013 · 1 comment

Comments

@RingoTheDog
Copy link

This is not really a bug, but I found it rather strange...

Was looking at the list of extractors and I tried your example: "ytsearchdate:running tortoise" (then I got confused as your examples keep changing..very nice!)

Everything worked...BUT while the resulting video:
http://www.youtube.com/watch?v=ojk53CH2Axo
DOES have the word tortoise in the title, it was not what I was expecting.
If I go to YouTube and search "running tortoise" I get video of actual tortoises...not large dieting women.

I had never tried the search YouTube search feature before, so I wasn't sure what to expect....but it did surprise me ;-)

C:\Transmogrifier>youtube-dl.py -v "ytsearchdate:running tortoise"
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['-v', 'ytsearchdate:running tortoise']
[debug] youtube-dl version 2013.11.13
[debug] Python version 2.7.3 - Windows-7-6.1.7601-SP1
[debug] Proxy map: {}
[youtube] query "running tortoise": Downloading page 1
[download] Downloading playlist: running tortoise
[youtube:search] playlist 'running tortoise': Collected 1 video ids (downloading
1 of them)
[download] Downloading video #1 of 1
[youtube] Setting language
[youtube] ojk53CH2Axo: Downloading video webpage
[youtube] ojk53CH2Axo: Downloading video info webpage
[youtube] ojk53CH2Axo: Extracting video information
[download] Destination: Couch to 5K - Week 6 _ Tortoise-ojk53CH2Axo.mp4
[download] 100% of 123.23MiB in 00:2833MiB/s ETA 00:001

not a biggie, but thought I'd let you know.

@phihag
Copy link
Contributor

phihag commented Nov 14, 2013

ytsearchdate returns the search results ordered by date (like when you select Filters -> Sort By -> Upload Date). This is useful if you want the oldest video(s) for a topic, or want the oldest videos first (say, you're creating a statistic about tortoise speeds since the 1990s). In this case, the couch-to-5k runners seem to have preempted the tortoise lovers.

Use ytsearch: to get the most relevant instead of the oldest video first. This seems to result in an ample amount of shelled low-speed runners:

$ youtube-dl 'ytsearch3:running tortoise' --get-title
Tortoise Running!
Tortoise running after a shoe!
Awsome running tortoise

@phihag phihag closed this as completed Nov 14, 2013
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