• Resolved nightskytech

    (@nightskytech)


    Hello

    I need the ability to filter youtube videos within my channel. For instance:

    [youlist uid=”my channel” search=”red widgets”] (showing all videos for my red widgets)
    [youlist uid=”my channel” search=”blue widgets”] (showing all videos for my blue widgets)
    [youlist uid=”my channel” search=”green widgets”] (showing all videos for my green widgets)

    I can’t get this to work though. If I use uid it shows all the videos in the channel and does not use the search. Is there a way to do this?

    Thanks.
    Joe

    http://wordpress.org/extend/plugins/youlist/

Viewing 5 replies - 1 through 5 (of 5 total)
  • @nightskytech (Joe)

    (short version)

    For the red widget, try (and so on)

    [youlist search="+red -blue -green, @yourchannelname"]

    (long version)

    By the way YouTube constructs the iframe api you can only use the attributes uid, pid and search separately.

    But perhaps you can achieve this by using the search attribute:

    [youlist search="..."]

    I think the YouTube search is checking:

    title
    description
    category
    tags

    Here is one search query that you might find useful:

    [youlist search="cool, @mismag822"]

    It searches for videos where the name of the channel is mismag822
    and contains the word cool

    [youlist search="+cool -beginner, @mismag822"]

    This query searches for videos where the name of the channel is mismag822 and contains the word cool but excludes the word beginner

    To restrict the search to videos published last year:

    [youlist search="+cool -beginner, @mismag822, last year"]

    we can also use: today, this week, this month, this year,...

    To search only for high definition videos:

    [youlist search="+cool -beginner, @mismag822, last year, hd"]

    Here are some other search keywords I could found:

    hd, webm, last week, this week, cc, long, partner, creativecommons, live, playlist, music, movie

    So in your case you could use something like

    [youlist search="+red -blue -green, @yourchannelname"]

    to use in the red widget and so on.

    Hope this helps.

    Thread Starter nightskytech

    (@nightskytech)

    Hi,

    Thanks for the reply. That was completely awesome and it worked perfectly! You’re a life saver 😀

    Thanks again,
    Joe

    Thread Starter nightskytech

    (@nightskytech)

    Actually, maybe I spoke too soon.

    It works, but not consistently. For instance:

    [youlist search=”Acoustic, @guitarsnjazz”] returns 17 results (many of which are not mine).

    Entering “Acoustic, @guitarsnjazz” in the youtube.com search box only returns 4 (which is correct).

    Could there be a bug somewhere or am I doing something wrong?

    Thanks,
    Joe

    @nightskytech

    Thanks for reporting back

    I hope you don’t mind that I used the above search example, to demonstrate the difference, in the YouTube API Forum:

    https://groups.google.com/d/topic/youtube-api-gdata/iG0AUcPr0P8/discussion

    cheers

    YouTube has replied with this:

    https://groups.google.com/forum/#!topic/youtube-api-gdata/iG0AUcPr0P8/discussion

    i.e.

    “it’s not something that we support in the API at this time.”

    I then mark this thread as resolved, if there are no protests 😉

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: YouList – YouTube playlist shortcode] Search within a channel’ is closed to new replies.