You2pup works (June 2016) YouTube downloader

Browsers, email, chat, etc.
Message
Author
User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#221 Post 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

User avatar
trio
Posts: 2076
Joined: Sun 21 Dec 2008, 15:50
Location: अनà¥￾मोदना

#222 Post 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

User avatar
trio
Posts: 2076
Joined: Sun 21 Dec 2008, 15:50
Location: अनà¥￾मोदना

#223 Post 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

User avatar
trio
Posts: 2076
Joined: Sun 21 Dec 2008, 15:50
Location: अनà¥￾मोदना

#224 Post 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

User avatar
trio
Posts: 2076
Joined: Sun 21 Dec 2008, 15:50
Location: अनà¥￾मोदना

#225 Post by trio »

version 2.8.1: New download script by me....2 version GUI (1 with the help of browser and another without/independent

User avatar
trio
Posts: 2076
Joined: Sun 21 Dec 2008, 15:50
Location: अनà¥￾मोदना

#226 Post by trio »

version 2.8.2: script - get video name as video out[ut name
gui - bugfix remember last dir, gui width

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#227 Post 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>

User avatar
trio
Posts: 2076
Joined: Sun 21 Dec 2008, 15:50
Location: अनà¥￾मोदना

#228 Post by trio »

version 2.8.3: Gui - enable multiple downloads
- No_browser: auto refresh VID when clicking pic when searching

Done Sigmun, thanks :)

User avatar
trio
Posts: 2076
Joined: Sun 21 Dec 2008, 15:50
Location: अनà¥￾मोदना

#229 Post by trio »

Sigmund,

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

I will think of something, or maybe a suggestion?

User avatar
trio
Posts: 2076
Joined: Sun 21 Dec 2008, 15:50
Location: अनà¥￾मोदना

#230 Post by trio »

version 2.8.4: regular version Gui - use consistantly /root/.you2pup/tmp, no nee relaunch gui when search

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#231 Post 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

User avatar
trio
Posts: 2076
Joined: Sun 21 Dec 2008, 15:50
Location: अनà¥￾मोदना

#232 Post 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

User avatar
trio
Posts: 2076
Joined: Sun 21 Dec 2008, 15:50
Location: अनà¥￾मोदना

#233 Post by trio »

version 2.8.5: no browser version, bugfix: forgot to put you2pupsearch file in pet (sorry)

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#234 Post 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

User avatar
Argolance
Posts: 3767
Joined: Sun 06 Jan 2008, 22:57
Location: PORT-BRILLET (Mayenne - France)
Contact:

#235 Post 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.
Attachments
160924_190827_506x305_easyshot.jpg
(18.38 KiB) Downloaded 408 times
you2pup_gettexted_fr-files.tar
(20 KiB) Downloaded 179 times

User avatar
nic007
Posts: 3408
Joined: Sun 13 Nov 2011, 12:31
Location: Cradle of Humankind

#236 Post 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

keniv
Posts: 583
Joined: Tue 06 Oct 2009, 21:00
Location: Scotland

#237 Post 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.
Attachments
image-11.jpg
(83.54 KiB) Downloaded 214 times
image-12.jpg
(80.7 KiB) Downloaded 210 times

User avatar
greengeek
Posts: 5789
Joined: Tue 20 Jul 2010, 09:34
Location: Republic of Novo Zelande

#238 Post 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!

User avatar
ally
Posts: 1957
Joined: Sat 19 May 2012, 19:29
Location: lincoln, uk
Contact:

#239 Post by ally »

no double right click menu in chrome but works in palemoon

nice,cheers nic

:)

User avatar
MochiMoppel
Posts: 2084
Joined: Wed 26 Jan 2011, 09:06
Location: Japan

#240 Post 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.
Attachments
youtube_menu.png
(11.52 KiB) Downloaded 160 times

Post Reply