Page 12 of 13

Posted: Tue 21 Jun 2016, 18:31
by zigbert
trio
In earlier days pMusic used you2pup to play youtube music. I have put this on the wishlist for pMusic 5.2.0

I see some bigger youtube grabber offers to search youtube. Do you have any future strategy?


Thank you for your code
Sigmund

Posted: Wed 22 Jun 2016, 09:48
by trio
Version 2.7.7: GUI - add firefox search button, so user can launch you2pup before opening firefox. on its first search launch, you2pup window will close and re-open in 10 secs (to give time for firefox to open if slow connection), remeember the catcth url button only appears if at least 1 firefox youtube window is opened and focused

Other browsers still can copy and paste as usual

see main post

Posted: Wed 22 Jun 2016, 10:44
by trio
Hi Sigmund

I was thinking the same thing. like a standalone app that search and download youtube without a browser. That's a bit "too much" for gtkdialog, bash and my brain :D

Anyway, I keep digging

Regards

Posted: Sat 25 Jun 2016, 11:09
by trio
Version 2.7.8: I changed the download script to a modified perl script from https://calomel.org/youtube_wget.html , the bad thing is that it doesn't give options to download, only mp4 by default ( you may change the script to download other format. but only1 at a time). I will try to convert it to bash so that I can easily suit it to my needs. I don't know any perl Very Happy . at least it works on my slacko 6.3.0 with its perl

Posted: Sun 26 Jun 2016, 09:11
by trio
version 2.8.1: New download script by me....2 version GUI (1 with the help of browser and another without/independent

Posted: Mon 27 Jun 2016, 06:11
by trio
version 2.8.2: script - get video name as video out[ut name
gui - bugfix remember last dir, gui width

Posted: Mon 27 Jun 2016, 15:30
by zigbert
Suggestion:
- Update VID field in the main window when clicking on a thumb in the search window
- Activate search when pressing enter

require you2pupsearch to run in the background - adding an '&' at the end of the line

Code: Select all

	exec rxvt -bg "blue" -fg "white" -title "you2pup" -e you2pupsearch "$TERMS" &
The timer updates the VID field instead of the button

Code: Select all

<window title="You2Pup 2.8.2" width-request="500" allow-grow="false">
 <vbox>
  <frame Puppy YouTube Downloader> 
   <vbox>
    <pixmap><input file>/usr/share/pixmaps/you2pup.png</input></pixmap>
    <vbox width-request="400">
     <timer milliseconds="true" interval="200" visible="false">
      <action type="refresh">MSG</action>
      <action type="refresh">VID</action>
     </timer>
    </vbox>
    <hbox>
     <entry visible="true"> 
      <variable>TERMS</variable>
      <input>echo "Type search terms here"</input>
      <action signal="activate">search</action>
     </entry>
     <button tooltip-text="Search YouTube" visible="true">
      <input file stock="gtk-zoom-in"></input>
      <label>Web search</label>
      <action>search</action>
     </button>
    </hbox>

Posted: Tue 28 Jun 2016, 03:07
by trio
version 2.8.3: Gui - enable multiple downloads
- No_browser: auto refresh VID when clicking pic when searching

Done Sigmun, thanks :)

Posted: Tue 28 Jun 2016, 08:02
by trio
Sigmund,

The auto fetch vid will make old fashioned copy-paste impossible :)

I will think of something, or maybe a suggestion?

Posted: Tue 28 Jun 2016, 10:48
by trio
version 2.8.4: regular version Gui - use consistantly /root/.you2pup/tmp, no nee relaunch gui when search

Posted: Tue 28 Jun 2016, 11:30
by zigbert
Just want to mention that

Code: Select all

wget -O - -t 7 -w 5 --waitretry=14 --random-wait '--user-agent=Mozilla/5.0' -e robots=off "$VID" -O - | ffplay -i pipe:0
plays the youtube video without downloading it.

wget code grabbed from you2pupscript

Posted: Wed 29 Jun 2016, 02:42
by trio
version 2.8.4: regular version Gui - use consistantly /root/.you2pup/tmp, no nee relaunch gui when search
No browser version: GUI - reconstrcted by Zigbert
Script - streaming play added

Posted: Wed 29 Jun 2016, 14:58
by trio
version 2.8.5: no browser version, bugfix: forgot to put you2pupsearch file in pet (sorry)

Posted: Wed 07 Sep 2016, 11:25
by zigbert
Title doesn't correspond to url when searching.

fix:
you2pupsearch line 31
add -B 3

Code: Select all

cat $HOME/.you2pup/tmp/ytresult | sed -e 's/http:/\nhttp:/g' -e 's/ - <b>YouTube/\n - <b>YouTube/g' -e 's/href/\nhref/g' | grep -A 5 -B 3 -F 'http://img.youtube.com/vi/' > $HOME/.you2pup/tmp/ytresult

Posted: Thu 22 Sep 2016, 16:50
by Argolance
Bonjour,
This "little" program is really great but actually not gettexted/translated?
If this could be useful...
Works perfectly on Puppy Precise...

Cordialement.

Posted: Tue 31 Oct 2017, 09:21
by nic007
I've given this tip before, no need for any additional application. Youtube now using html5. When video starts > double right-click in video window > choose save video (wording could be different for different browsers) from popup menu > name (rename) video to "your preferred name".webm This downloads the video "as is" with your browser downloader and with no conversion. Easy peasy

Posted: Tue 31 Oct 2017, 16:29
by keniv
Can I ask if this should work with the recently update version of lucid. Image-11 is what I get if I select play. Image-12 is what I get if I select download.

Regards,

Ken.

Posted: Sun 10 Dec 2017, 05:04
by greengeek
nic007 wrote:I've given this tip before, no need for any additional application. Youtube now using html5. When video starts > double right-click in video window > choose save video (wording could be different for different browsers) from popup menu > name (rename) video to "your preferred name".webm This downloads the video "as is" with your browser downloader and with no conversion. Easy peasy
Thanks for the tip. Unfortunately "save as" is greyed out on my system. Slacko 5.6 derivative running Google Chrome 48.0.2564.97

Any thoughts?

EDIT : Actually I just tried the same trick with Firefox 17ESR and it works perfectly.
cheers!

Posted: Sun 10 Dec 2017, 05:25
by ally
no double right click menu in chrome but works in palemoon

nice,cheers nic

:)

Posted: Sun 10 Dec 2017, 10:13
by MochiMoppel
ally wrote:no double right click menu in chrome but works in palemoon
It does?
"Save Video As.." , when clicked, does nothing. The next item "Save Snapshot As" works.
Using Slacko 5.6 and Palemoon 27.5.1.