one relating to, belonging to, or resembling lunatech

youtube search - sort by video playtime

The youtube search does a good job of searching videos. In its search page, it allows you to search by popularity/ratings/date. I have found that videos with longer playing time are usually the ones I am interested in, however, there is no option to sort the results by playing time.

I did a bit of digging in the Youtube Developer's guide and saw that they give the length of the video in seconds. The next piece was Yahoo! Pipes. I created a pipe which would fetch videos from youtube and then passes the results through the sort operator to sort the results based on the yt:duration field. Tada! That gives me videos matching my search criteria near the top.

Links:

6 Comments

Linear

  • Dan N. Moldovan  
    Nice pipe! I run it.
    Here is my youtube pipe: http://pipes.yahoo.com/macrostandard/youtube
    You can run a lot of interesting Yahoo pipes in my site MacrosReader: http://reader.macrostandard.com/
  • gwen killerby  
    it doesn't work.

    i was looking for a youtube video callled
    "best of trance" 2013
    with the exact length of 20 mins.

    can you give me the full url of how to do that?
    • Raj Shekhar  
      Hey Gwen - this is a good catch. I can see the same issue. Looks like Yahoo! pipes has broken the RSS viewer in some way and the pipe cannot show results :-( . Let me tweak this thing over the weekends and see if I can do a workaround.
  • Anonymous  
    Doesn't work.

    I get a list with results which looks legid, but each result links to the original pipe page (http://pipes.yahoo.com/pipes/pipe.info?_id=JoYmVVSR3BGU2l8AxQnzeQ) and nothing links to youtube. (and te titles are too ambiguous to search the titles on youtube)
    • Raj  
      Not sure what broke it, but I ran the pipe again , and it works now : http://pipes.yahoo.com/pipes/pipe.info?_id=JoYmVVSR3BGU2l8AxQnzeQ&q=gagnam

Add Comment

Enclosing asterisks marks text as bold (*word*), underscore are made via _word_.
Standard emoticons like :-) and ;-) are converted to images.
E-Mail addresses will not be displayed and will only be used for E-Mail notifications.