Talk:MPlayer youtube script

From MultimediaWiki
Jump to navigation Jump to search
  • Hi Enouf,
what's so wrong with my script modifications? Couldn't you have just added the comment?

Hi with whom am i speaking?

I don't understand what you mean by "the comment"

If you are indeed the one whom edited the script, you broke it severely .. i tested it and made others as well - please don't keep doing that - Thank You kindly. How precisely it was broken would take too much time to outline here - i am not against having some sort of 'usage' section inserted, but ONLY if it doesn't break the script.

Apologies for not recalling the correct name that was listed as last modified by .. but anyway, I'm almost always on in many various channels ..(enouf is my nick ;-)). Feel free to find me there, if you desire a discussion in PM perhaps.

-- enouf

Hi Enouf,
sorry I didn't sign my post. But you can see who made the changes in the history page.
Ok, now you know who I am. I'd like to ask what the different behaviour between your version:
echo \"`wget -q -O - $url | grep fullscreenUrl | awk -F'video_id=' '{ print $2 }' | sed -e 's/ /_/g' | tr -d \'\; `\" | xargs mplayer $*
and mine:
echo \"$(wget -q -O - "$URL"                     \
                                                   | sed -e '/fullscreenUrl/!d'            \
                                                         -e "s/.*video_id=\([^']*\).*/\1/" \
                                                         -e 's/ /_/g'                      \
                                                  )\"                                      \
| xargs mplayer "$@"
There might be some strange situations my version doesn't work, but I can't see them. Please explain. I mean this seriously, because I like to learn.
My version doesn't need grep nor awk nor tr. It also uses three programm calls fewer than yours.
Elte 03:30, 18 August 2008 (EDT)