Hello, seeing how successful my previous post about Gambas3 (I want to learn Prawns, where do I start?), by the number of visits and comments, I bring you a small example that I made this morning.
It is a Front-End of the program youtube-dl, I know that there are other Front-End of this program, but as I said, it is an example of what can be done with gambas3.
In case you don't know it, youtube-dl is a program that helps us download YouTube videos from the command line (our beloved terminal).
This is how to install the latest version of youtube-dl:
sudo curl https://yt-dl.org/downloads/2014.03.07.1/youtube-dl -o /usr/local/bin/youtube-dl
sudo chmod a+x /usr/local/bin/youtube-dl
You can find more information on the project page:
http://rg3.github.io/youtube-dl/download.html
What I have done in gambas3, is a form that will facilitate its use, you simply have to indicate the path "share" (which you get on the youtube page) and the path where you want to save the video on your computer.
Here you have a video so you can see how to use it and how it works:
Note:
- In the download you will see a folder with two files, the .deb file is to install it in Debian / Ubuntu or derivatives, and the .tar.gz, which is the one that contains the source code.
- In the gambas3 programming idea, the same source code can be converted into installation packages for other gnu / linux distributions.
- It is a beta version, if you have any problem, let me know, and I will correct it on the fly.
Enjoy it, greetings.
This pops up:
sudo:curl:command not found
Then use:
sudo wget https://yt-dl.org/downloads/2014.03.07.1/youtube-dl -O / usr / local / bin / youtube-dl
and later:
sudo chmod a + x / usr / local / bin / youtube-dl
Correctly installed on Kubuntu 14.04 (64) the icon shows in the menu but when I touch it to open the application it does nothing ... It shows that it is running and then it closes and nothing is displayed graphically.
Do you have the prawns 3 installed? Something like this happened to me before with another application when I didn't have it installed, so when I ran it from the terminal I realized that what I was missing was the shrimp, so I installed it and the problem solved. Try to run it from the terminal to see what it tells you.
It was the first thing I did, install gambas 3 before anything else and to verify it I installed an application that uses it and works perfectly.
Have you installed the latest version of youtube-dl as I comment in the post?
Check it because there may be the error.
You can also try something else, which is to write this in the console:
DownloadYoutube
And tell me the text that comes out of the console, since it will surely report an error.
Note:
Write exactly "DownloadYoutube", since gnu / linux differentiates between upper and lower case letters.
you probably have to: sudo apt-get install curl
I have done everything and it still does not work, I leave a picture:
[url = http: //postimg.org/image/h6wxwopcp/full/] [img] http://s20.postimg.org/agggn9271/instant_nea3.png [/ img] [/ url]
[url = http: //postimage.org/index.php? lang = spanish] imag [/ url]
I've already done everything and it still doesn't work. I leave a screenshot:
http://postimg.org/image/h6wxwopcp/
I saw that you have already solved it. Anyway I make the error that you got on the console:
When the error "Bytecode too recent" appears, it means that the version of gambas3 you have installed is lower than the one required by the program. There are two ways to solve this:
1) Open the source code (which I also provide) in the Ide of your gambas3, and recompile it (create the executable or the installation package)
2) Update gambas3, to the most modern version, using the menh ppa, as you have done.
The best option is the 2nd, but sometimes it can't be done, so you have to use the 1st option.
Thanks for giving us examples of what can be done with prawns, it serves as inspiration.
Download this other program and I installed it as it says there and it doesn't work either. What could it be? I use Kubuntu 14.04 beta of 64
http://tuxprogramador.blogspot.com.ar/2012/07/interfaz-grafica-para-youtube-dl.html
Ready!!! I had to uninstall everything, then add this repository:
sudo apt-add-repository ppa: nemh / gambas3
and do an update> upgrade> dist-upgrade and then reinstall the application and it works for me.
I just did an update to the program. Now support download video list. That is, you can put several YouTube links, separating them by the semicolon character «;» and the program downloads it one by one in the directory that you indicate.
For those of you who have downloaded the program, if you run it again (and you are connected to the internet), you get a message indicating that there is a new version, press the download button to open a window in your browser where you will find the google drive folder where I have the new source code and the .deb installer package. Download the .deb package to reinstall it.
Greetings.
I think better to put the new installer right here in the article.
As you ask, I have run the program and what I get is a new youtube-dl update
I touch it and it takes me to http://rg3.github.io/youtube-dl/download.html which is the same one that I had downloaded initially and it gave me an error for the application.
I touch to go to your blog and the date that appears is: Tuesday, September 10, 2019! ...?
Sorry for all the mess, I am neither an expert nor a computer scientist, just a person who likes and supports free software and I have been using Windows since 95
Before someone criticizes me, I say: I think that my comments guide newcomers and those who feel sorry or lazy to ask, but I always prefer to get out of my ignorance with the help of those who know.
@Ghermain: «I think it better to place the new one installed right here in the article»
If you click on the "Download" button in this article, the new version will appear (the latest version will always be there).
It really is a google drive folder, where I upload the update of this program:
https://drive.google.com/folderview?id=0B02Ro2CNt-OOWmRHS0ZsU2x3eXc&usp=sharing
"I touch to go to your blog and the date that appears is: Tuesday, September 10, 2019! ...?"
It is a trick in blogspot.com to get the option of entry menus and tag menus
If you already have the program installed and I update the version of the program, when you start the program, you will get a message like this,
https://lh4.googleusercontent.com/yNwukToPo2PAstCrHjnSrBzkTA7HkrZm3BJjHMrzgJw=w373-h207-p-no
to indicate the changes that have taken place and giving the download button takes you to the shared folder of google drive.
and the bar
@bsdgambaero: «and the bar»
I don't know what you mean… 🙁
progress bar
I have not implemented it, but it is easy to do. I prepare a new version with the progress bar.
Progress bar: They are already incorporated in version 0.0.5
https://lh6.googleusercontent.com/JkoKKg_wyXFGAomJogLqTXf7yCLxMluqL1n6OGXyKzg=w247-h207-p-no
regards
Well when I saw your app, I wanted to develop for a while, so I made a copy of your application but in Lazarus 1.2 I wanted to test that environment and I really liked it a lot, I leave the sources, the deb for x64 , and the executable for x64, the truth is that I do not have to compile in 386 and I have not been able to configure the cross compiling, I attach it:
Deb amd64 (Tested on Ubuntu 13.10):
https://mega.co.nz/#!mkZ1iDgC!J-O476o9guxm0QFnYgjaqo92vI3_edyQV-AuD9cs8aY
Tar.Gz Executable.
https://mega.co.nz/#!mkZ1iDgC!J-O476o9guxm0QFnYgjaqo92vI3_edyQV-AuD9cs8aY
Code:
https://mega.co.nz/#!ykRxTLgD!JGex6sUTQP3j0h86QGoAOwCdqv0IeI4jI8cFv3Rs1GI
Greetings friend.
I'm glad you decided to make your own version in Lazarus.
Thanks for sharing the source code.
A pleasure friend :), greetings.
I have installed the latest version of youtube-dl as you indicate, I have installed gambas3 and the fron-end and the result when executing it
$ DownloadYoutube
is this: ERROR: # 2: Cannot load class 'FMain': Bytecode too recent. Please upgrade Prawns.
The OS is Linux Mint 16 Petra. and in the Mint (and Ubuntu) repositories there are no more current versions of prawns.
Greetings.
@Xurxo: You have to add the repository pa: nemh / gambas3
Look at Ghermain's comment:
"Ready!!! I had to uninstall everything, then add this repository:
sudo apt-add-repository ppa: nemh / gambas3
and do an update> upgrade> dist-upgrade and then reinstall the application and it works for me. »
Agree; I will see if the versions of the gambas3 packages in that repository differ from the ones I have installed.
I use the youtube-dl on the command line, without problems. I just wanted to try this application to recommend it to friends and acquaintances who do not open a terminal even by chance.
Thank you
@Xurxo:
"Recommend it to friends and acquaintances who do not open a terminal even by chance."
It is designed to make life easier for "anti-terminal" users 🙂