YouTube DL Applet

Utilities

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

1
6.5
Description:

This tool is convenient link handler, passing them to youtube-dl.
File name is properly detected by youtube-dl;
If case of multiple download modes for different quality and formats they are listed in menu (using youtube-dl -F option);

INSTALLATION

Just run ./install. For packaging variable DESTDIR is supported.

Runtime dependencies:
- bash
- coreutils
- grep
- kdialog
- notify-send (libnotify, in Debian/Ubuntu - libnotify-bin)
- optionally: some terminal emulator - previously was used to see progress, but now it is essential, using kdialog

USAGE

Place launcher on reachable for drag-n-drop place (panel, dock, etc), then just drag links from browsers to launcher.
Tested with konqueror, firefox and seamonkey, most other should work as well.
You may get some brief help, launching it directly by click.
Begining from version 1.5, it allowes to specify multiple formats for download.

CONFIGURATION

If you want to use default progress monitor, using kdialog, disable all download tools and terminal emulators (by default it is done).

Configuration is done currently by editing of configuration files in text editor. Description of files may be found in brief help.
To disable some "tools" or "term" variants just comment them by sharp (#), no need to remove them.

Since version 1.2.2, configuration files are created anyway if they don't exist, otherwise they are not changed.

CHOOSING DOWNLOAD TOOLS

Since version 1.3, progress is displayed by default, using kdialog.
Also download process may be fully managed by various download managers, using detected link.
However, there is no way for them to detect proper file name.
The only hope is when they accept filename argument; kde copy tool, which is in list by default, does it (its another feature is essential integration with KDE job control system).

Terminal emulator, initially used for progress tracking, may be still useful if you get some youtube-dl bug.
To disable some elements just clean this file (in this case there is nothing to probe).

Contact: nick87720z@gmail.com
Last changelog:

5 years ago

TODO
- Integration with KDE KIO job control. May need another big refactoring, probably using other language.

Version 1.5
- Now can download multiple formats
- Show program name in all dialogs (forgot about kde-specific kdialog arguments)
- Program version and tip, how to recover video from youtube DASH files, in short help (still unsure, how better implement it using bash)

Version 1.4.5
- Don't use which command - some distros lack it out of box

Version 1.4.4
- Better desktop notifications, using notify-send instead of kdialog (new dependency, see README)

Version 1.4.3
- kdialog error messages from formats menu generator somehow missed /dev/null
- dev ooops: forgot to remove debug stuff, which printed generated menu and canceled program

Version 1.4.2
- Fixed formats list parser - now works not only with youtube
- Last element in formats list was not shown

Version 1.4.1
- Show url's as url's in all dialogs
- regression: Download formats menu did not appear

Version 1.4
- Show error text and cancel if youtube-dl produced error on first usage attempt
- Formated text in progress dialog

Version 1.3.1
- regression: Did not remember last used directory

Version 1.3
- Code refactoring
- Added support for external download tools
- Added progress dialog for terminal-less mode
- Terminal emulator is disabled by default for progress dialog
- Support for comments and empty lines in files with variants for probing
- Updated readme, extended startup help text
- Create or load non-existing configuration files even without any work

Version 1.2.2
- Added formats menu (auto-detection of best format by youtube-dl is not so perfect yet)
- Changed script backend shell to bash
- In some cases real working dir in terminal emulator was not same as in $PWD variable
- Write default term file if not found
- Extending term config file role: accept list of terminal emulators, probed begining from first
- Finally fixed DEBUG implementation code
- Set console title for terminal with runing youtube-dl
- Questionable usefulness of url list entry text box. Display usage help instead.
- Use desktop notification system in progress-less mode
- Typo in code comments

Version 1.2.1
- Wrong code in DEBUG mode, causing it to be always enabled

Version 1.2
- Added debug mode (use environment variable DEBUG=yes)
Bugfixes:
- In first start could not save configs because did not create config dir
- Did not use urls list from text box when started without arguments

Version 1.1.1
- Added copyright info

Version 1.1
- Added copying information to package;
- Changed layout of config files: now all files are in ~/.config/youtube-dl-applet
- Trying to find youtube-dl, if failed - ask user to select it
- Some comments in code, mostly for markup
- Info in readme, how to specify terminal

Version 1.0: Initial release

C

nick87720z_double

5 years ago

So, this time you ran dolphin itself from root? I never do so. There is no need for this. sudo is supposed to be part of command.

I updated readme just after my previous reply, it includes example command, try it.

Briefly:
- open terminal emulator in dolphin by F4
- don't forget to change to sources directory
- run command there

Report

hateshark

5 years ago

Please mention youtube-dl in the runtime dependencies.

Report

C

nick87720z_double

5 years ago

Fixed. Did not add it first because assumed it essential.

Report

C

nick87720z_double

5 years ago

In this release i removed one forgotten line. Don't know, will it fix something, because for me it did not break nothing. If you will get some bug, try following steps until you get an error:

1. Run manually command: youtube-dl URL
2. Also in terminal:
> bash $(which youtube-dl-applet) URL

Second step will print all executed code, so it will be easier to figure out, what happens.

Report

trxyz

5 years ago

this is not work, after installation i drop link on launcher and nothing gonna append.
KDE 4.11

Report

C

nick87720z_double

5 years ago

What application or environment do you use for icon placement?

I got two issues with plasma-desktop:
- cometimes it may freeze, fully loading cpu without any effect;
- when object is above icon, indication of possible dropping doesn't appear, and if you drop before it happens, it is useless.

Report

C

nick87720z_double

5 years ago

Also try this:
$ bash --verbose $(which youtube-dl-applet)

Among other it will print all executed lines.

Report

C

nick87720z_double

5 years ago

Try to run in terminal emulator same command as in launcher:
youtube-dl-applet <url>

Yet i got cases (one video on vk.com), when even
$ youtube-dl <url>
typed directly, fails - they may be seen with enabled terminal emulator.

Report

C

nick87720z_double

5 years ago

Try to run in terminal emulator same command as in launcher:
youtube-dl-applet <url>

Yet i got cases (one video on vk.com), when even
$ youtube-dl <url>
typed directly, fails - they may be seen with enabled terminal emulator.

Report

C

nick87720z_double

5 years ago

Last time i noticed, that konsole uses $HOME (also referred as '~') as working dir, what doesn't happen e.g., with urxvt. Problem appears ONLY when program is invoked by link, dragged to icon. Manual runing of <$ youtube-dl-applet URL> in terminal doesn't cause it.

For now it is better just to use urxvt or some other emulator. URXVT is known to not have this problem.

It seems, runing of terminal emulator from previously changed directory is not so reliable. My current hope is to run command without it, using TE only to show log via some pipe.

Report

C

nick87720z_double

5 years ago

Fixed without such trick.

Report

C

nick87720z_double

5 years ago

Forgot, it is already in changelog S]

Report

C

nick87720z_double

5 years ago


If environment variable DEBUG=yes is specified, it will just print command instead to run it.

Report

5 years ago

TODO
- Integration with KDE KIO job control. May need another big refactoring, probably using other language.

Version 1.5
- Now can download multiple formats
- Show program name in all dialogs (forgot about kde-specific kdialog arguments)
- Program version and tip, how to recover video from youtube DASH files, in short help (still unsure, how better implement it using bash)

Version 1.4.5
- Don't use which command - some distros lack it out of box

Version 1.4.4
- Better desktop notifications, using notify-send instead of kdialog (new dependency, see README)

Version 1.4.3
- kdialog error messages from formats menu generator somehow missed /dev/null
- dev ooops: forgot to remove debug stuff, which printed generated menu and canceled program

Version 1.4.2
- Fixed formats list parser - now works not only with youtube
- Last element in formats list was not shown

Version 1.4.1
- Show url's as url's in all dialogs
- regression: Download formats menu did not appear

Version 1.4
- Show error text and cancel if youtube-dl produced error on first usage attempt
- Formated text in progress dialog

Version 1.3.1
- regression: Did not remember last used directory

Version 1.3
- Code refactoring
- Added support for external download tools
- Added progress dialog for terminal-less mode
- Terminal emulator is disabled by default for progress dialog
- Support for comments and empty lines in files with variants for probing
- Updated readme, extended startup help text
- Create or load non-existing configuration files even without any work

Version 1.2.2
- Added formats menu (auto-detection of best format by youtube-dl is not so perfect yet)
- Changed script backend shell to bash
- In some cases real working dir in terminal emulator was not same as in $PWD variable
- Write default term file if not found
- Extending term config file role: accept list of terminal emulators, probed begining from first
- Finally fixed DEBUG implementation code
- Set console title for terminal with runing youtube-dl
- Questionable usefulness of url list entry text box. Display usage help instead.
- Use desktop notification system in progress-less mode
- Typo in code comments

Version 1.2.1
- Wrong code in DEBUG mode, causing it to be always enabled

Version 1.2
- Added debug mode (use environment variable DEBUG=yes)
Bugfixes:
- In first start could not save configs because did not create config dir
- Did not use urls list from text box when started without arguments

Version 1.1.1
- Added copyright info

Version 1.1
- Added copying information to package;
- Changed layout of config files: now all files are in ~/.config/youtube-dl-applet
- Trying to find youtube-dl, if failed - ask user to select it
- Some comments in code, mostly for markup
- Info in readme, how to specify terminal

Version 1.0: Initial release

12345678910
2
product-maker larion Apr 01 2014 8 great
product-maker pondogor Feb 21 2014 8 great
product-maker Count:2 Rating: 5.00
File (click to download) Version Description PackagetypeArchitectureRelease Channel Downloads Date Filesize DL OCS-Install
Pling
*Needs ocs-url or ocs-store to install things
Details
license
version
1.5
updated Apr 08 2014
added Jan 13 2014
downloads today
0
page views today 4
System Tags app software
+