making a text list of youtube upload grid views

6 views
Skip to first unread message

Larry

unread,
May 10, 2012, 10:57:22 AM5/10/12
to GoogleSemWare TSE, tse...@freelists.org

/*** jigtubeuplist.s - make a list of a youtube upload page
My question is: how come YouTube insists that my Windows Internet
Explorer 9 browser is IE 7 and offers to "upgrade" it? Anyone else had
this notice on YouTube? Has anyone clicked on the "update your browser
now" link? Does it try to get you to use Chrome? :( Any other music
video sites as good as YouTube?

My "pay for" :) for these questions is to offer the following alteration
for the jigtube.s macro. This macro will make text list of the videos
found on a youtube user's upload page when that page is made up of a
grid view of the uploaded videos (not the vertical listing).

To use, simply open an upload page and copy it to the Windows ClipBoard.
Open an empty file in TSE and paste the page to TSE. (NOTE: if there are
more than one page of uploaded videos, go through them one by one, copy
to the clipboard, and paste to the TSE file which jigtube.mac should be
able to handle.)

Once you have the page(s) pasted to the TSE file, execute the compiled
macro jigtubeuplist.mac and the videos times and titles will be
transformed into columns. The macro will attempt to get the uploaders
name from the pasted information, but will offer a prompt to select it
or a name of your choice. This name will appear in the first column.

Enjoy. :)

***/





//jigtubeuplist.s - make list of youtube playlist songs

<ctrlshift j><u> execmacro("jigtubeuplist")

proc main()

string xs[100]=splitpath(currfilename(),_name_)+":"
string a[255]="" // uploader name

integer i=0
integer cp=0
integer lcp=0
//integer nl=100//numlines()

set(insert,on)

// get the youtube user's name
pushblock()
if lfind("'s ","ig")
left()
markcolumn()
wordleft()
a=getmarkedtext()
elseif lfind("close","igb")
down()
lfind("[~ ]","cgx")
markcolumn()
endword()
a=trim(getmarkedtext())
endif
popblock()

// strip out unnecessary text and format
begfile()
repeat
if lfind("[0-9]watch","ic+x")
// add creturn
if lfind(" ","bc")
right()
creturn()
lfind("views","ic")
up()
endif
else
begline()
endif
i=i+1
message(str(i))
if keypressed() goto ending endif
until (not down()) //or i>nl
//goto ending

// strip out non-song lines
i=0
endfile()
repeat
if lfind("[0-9]watch","icgx")==0
delline()
endif
i=i+1
message(str(i))
if keypressed() goto ending endif
until not up() //or i>nl

// strip out non-song text in each line
lreplace("watch "+"later error","-----","ing")
lreplace("watch "+"ed","-----","ing")

// align times
begfile()
repeat
if lfind("--"+"---","cg")
cp=currpos()
if cp>lcp
lcp=cp
endif
endif
until not down()
begfile()
repeat
if lfind("--"+"---","cg")
cp=currpos()
begline()
inserttext(format(" ":lcp-cp+1:" "))
endif
until not down()

// remove other non-song text
i=0
begfile()
repeat
if lfind("[0-9] vie"+"ws","icgx")
lfind(" ","cb")
deltoeol()
i=i+1
if keypressed() goto ending endif
endif
until not down() //or i>nl
lreplace("---"+"--","","ing")

// get the playlist name to use in the chart
if a<>""
xs=a+":"
endif
if ask("Playlist Name",xs,_edit_history_) and length(xs)
else
xs=splitpath(currfilename(),_name_)
endif

// add playlist name to each line in chart
begfile()
repeat
begline()
inserttext(format("":3-length(str(val(gettext(1,3)))):" "),_insert_)
begline()
inserttext(xs,_insert_)
until not down()

goto ending
ending:

sound(9000,30)

end
jigtubeuplist.s

S.E. Mitchell

unread,
May 28, 2012, 8:54:32 AM5/28/12
to sem...@googlegroups.com
> My question is: how come YouTube insists that my Windows Internet
> Explorer 9 browser is IE 7 and offers to "upgrade" it? Anyone else had
> this notice on YouTube? Has anyone clicked on the "update your browser
> now" link? Does it try to get you to use Chrome? :( Any other music
> video sites as good as YouTube?

I went to YouTube with IE 9, but I did not get any offers to upgrade.

I would presume that the upgrade would be to Chrome.

I really can't decide which one I like best, between Firefox and Chrome.

Cool macro, by the way :-)

knud van eeden

unread,
May 28, 2012, 9:22:43 AM5/28/12
to sem...@googlegroups.com
Only some older browser versions like Microsoft Internet Explorer v7 are probably getting this offer option to see.
Google of course would sometimes like to have its browser also installed.

Some programs like latest version Yahoo Mail do not even work anymore in older versions of Microsoft Internet Explorer,
so you have to upgrade (if that is possible on your system) otherwise use Chrome, Firefox or Apple Safari, Opera.

So to cover the corners and have Leibniz' 'Best of all worlds', installing all the main browsers (e.g. Chrome, Firefox, Microsoft Internet Explorer, Opera, Apple Safari, ..., then e.g. starting them from TSE) is the universal approach I personally take. Then choosing e.g. the browser program which is most convenient for the task. Sometimes it is Chrome,
 sometimes Firefox, most of the time Microsoft Internet Explorer, and rarely Opera.

with friendly greetings,
Knud van Eeden


From: S.E. Mitchell <sammy.m...@gmail.com>
To: sem...@googlegroups.com
Sent: Monday, May 28, 2012 2:54 PM
Subject: Re: [TSE] making a text list of youtube upload grid views

Rick C. Hodgin

unread,
May 28, 2012, 9:08:22 AM5/28/12
to sem...@googlegroups.com
Ever since Dean Kent introduced me to it, my favorite browser has been
Opera. However, with Facebook now threatening to buy Opera, I may have
to re-evaluate that assessment.

Best regards,
Rick C. Hodgin

Larry

unread,
May 29, 2012, 6:49:49 AM5/29/12
to sem...@googlegroups.com
Interestingly, I am using IE 9 so should not be getting the notice. One can
wonder what the invasive YouTube detection program is looking at to
determine which browser one is using.

I tried Chrome a year ot two ago and found that I could not use it because
it did not support High Contrast (AltShift-PrtSc). Without High Contrast,
colors, images, and text on the screen are 'invisible' to me. Maybe I will
just have to go back to using my stereo and the GOOD speakers. :)


-----Original Message-----
From: knud van eeden
Sent: Monday, May 28, 2012 8:22 AM
To: sem...@googlegroups.com
Subject: Re: [TSE] making a text list of youtube upload grid views


knud van eeden

unread,
May 29, 2012, 8:03:35 AM5/29/12
to sem...@googlegroups.com
> One can wonder what the invasive YouTube detection program is looking at to determine which browser one is using. 

Actually by design at the initial 'GET' HTTP request from a HTTP client (like Microsoft Internet Explorer) to a HTTP server (like the server (e.g. Apache or IIS) listening at the YouTube port), that HTTP client tells it type (or should tell it), e.g. browser type and version.

So the HTTP server software should, as far as I know, have no trouble finding out who is who or what is what and act upon it if programmed to do so.

with friendly greetings,
Knud van Eeden


From: Larry <hayes...@hotmail.com>
To: sem...@googlegroups.com
Sent: Tuesday, May 29, 2012 12:49 PM

Subject: Re: [TSE] making a text list of youtube upload grid views

Larry

unread,
May 29, 2012, 12:34:10 PM5/29/12
to sem...@googlegroups.com

It would appear, then, that my DSL provider (Qwest/CenturyLink) is not
passing this information on about my browser version. Perhaps if I used the
YouTube upgrade link, it will identify my version of IE 9 to itself. Or,
maybe YouTube just doesn't like Vista, an "old" operating system. :)

-----Original Message-----
From: knud van eeden
Sent: Tuesday, May 29, 2012 7:03 AM
To: sem...@googlegroups.com
Subject: Re: [TSE] making a text list of youtube upload grid views


> One can wonder what the invasive YouTube detection program is looking at
> to determine which browser one is using.

Actually by design at the initial 'GET' HTTP request from a HTTP client
(like Microsoft Internet Explorer) to a HTTP server (like the server (e.g.
Apache or IIS) listening at the YouTube port), that HTTP client tells it
type (or should tell it), e.g. browser type and version.


So the HTTP server software should, as far as I know, have no trouble
finding out who is who or what is what and act upon it if programmed to do
so.

with friendly greetings,
Knud van Eeden

bullt...@gmail.com

unread,
May 29, 2012, 12:55:38 PM5/29/12
to sem...@googlegroups.com

Try

http://whatsmyuseragent.com/

This site shows what your user agent is reporting. For reference, mine show:

IE 9: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)
Firefox 12: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20100101
Firefox/12.0
Chrome 13: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML,
like Gecko) Chrome/13.0.782.218 Safari/535.1

You can see the IE version in the string and that is what YouTube is
looking at to determine what your browser is.

This page shows some info on IE9's user agent string.

http://blogs.msdn.com/b/ie/archive/2010/03/23/introducing-ie9-s-user-agent-string.aspx

Perhaps you are running in a "compatibility view". While I have never used
that, I can see that it would falsly report that the brower is an older
version. The http://whatsmyuseragent.com/ should highlight this.

Larry

unread,
May 29, 2012, 4:30:49 PM5/29/12
to sem...@googlegroups.com

Now THAT'S what I call happiness! Looked at the compatibility settings and
sure enough, there was YouTube. Don't know how it got there, but I removed
it, opened IE and no upgrade message.

Thanks ever SO much! :)

knud van eeden

unread,
May 29, 2012, 4:53:59 PM5/29/12
to sem...@googlegroups.com
FYI

In general it is indeed not so difficult to inadvertently click that compatibility icon on the Microsoft Internext Explorer menu bar (that icon was there before at least, do not see it anymore on the menu bar now, so maybe only in some other version).

E.g. when the browser does not react one might have clicked on it during the hanging.

And that fact of clicking on it is or was also not so difficult not to notice (e.g. changing of state of that icon to 'active'
after clicking).

Using Microsoft Internet Explorer v9,
then visiting
shows the difference:

===

If compatibility settings on then http://whatsmyuseragent.com shows:

Mozilla/4.0 (compatible;
MSIE 7.0;
Windows NT 6.1;
WOW64;
Trident/5.0;
SLCC2;
.NET CLR 2.0.50727;
.NET CLR 3.5.30729;
.NET CLR 3.0.30729;
Media Center PC 6.0;
MDDC; .NET4.0C;
.NET4.0E;
.NET CLR 1.1.4322;
Zune 4.7;
BRI/2)

===

If compatibility settings are off (=default) then http://whatsmyuseragent.com shows instead:

Mozilla/5.0
compatible
MSIE
9.0
Windows
NT
6.1
WOW64
Trident/5.0

===

So indeed it shows as Microsoft Internet Explorer v7 to that HTTP server.

with friendly greetings,
Knud van Eeden

Sent: Tuesday, May 29, 2012 10:30 PM
Reply all
Reply to author
Forward
0 new messages