Page 2 of 3

Re: ydown-0.4.6 link downloader

Posted: Sun May 07, 2023 6:13 pm
by plinej

Updated to 0.4.6 - Added mixcloud support with yt-dlp or youtube-dl. Added extra options when yt-dlp or youtube-dl is the downloading tool (pick the audio and/or video stream(s) to download).


Re: ydown-0.4.6 link downloader

Posted: Sun May 07, 2023 7:56 pm
by Jasper

Wow, unexpected but hugely appreciated :thumbup2:

Have a great weekend!!


Re: ydown-0.4.7 link downloader

Posted: Mon May 08, 2023 8:34 pm
by plinej

updated to 0.4.7 - bugfixes and added yt-dlp update option to preferences


Re: ydown-0.4.8 link downloader

Posted: Thu May 11, 2023 12:37 am
by plinej

updated to 0.4.8 - bugfixes and changed main script to use either wget or curl so only one is required.


Re: ydown-0.4.9 link downloader

Posted: Thu May 11, 2023 10:12 pm
by plinej

updated to 0.4.9 - code clean up


Re: ydown-0.4.9 link downloader

Posted: Sat May 13, 2023 11:51 am
by stemsee

Here is my new in-house solution to gettext. It provides on-tap translations to text and interface labels, To acheive this gettext everything as usual, then install 'trans' script in path and add this function. The only problem is delay waiting for translation, but with short strings and few labels, it's negligible. My own modification of your script includes 'trans' so I select foreign language text and 'download' the translation using 'trans'. Of course do not source gettext ... (. gettext.sh). I need to find a way to save the translated interface strings per language, to re-use them thus removing any delays.

Code: Select all

function gettext {
if [[ $(type -p trans) != "" ]]; then
			unset WORK
			lang=$(locale | grep LANG | cut -c6,7)
		if [ "$lng" == "$lang" ];then
			echo "$1"
		else
			[ ! "$lng" ] &&  lng="$lang" || lng="$lng"
			 WORK=$(echo -e "$1" | trans -e google -no-auto -b -tl "lng")
			 [ "$WORK" ] && echo "$WORK" || echo "$1"
		fi
	else
		echo "$1"
	fi
}; export -f gettext

Re: ydown-0.4.9 link downloader

Posted: Sat May 13, 2023 4:20 pm
by plinej

@stemsee, I'll add it to the next update.


Re: ydown-0.4.9 link downloader

Posted: Sat May 13, 2023 5:18 pm
by stemsee

I've solved the save and retrieve of translated strings. What it tries to do is not translate into english.

You can adjust to suit ydown requirements
EDIT: use sha512sum for saved file name.
EDIT: md5sum is better!

Code: Select all

function gettext {
	syslang=$(locale | grep LANG | cut -c6,7)
	unset WORK
	if [ "$syslang" == 'en' ]; then
		echo "$1"
	elif [ "$syslang" != 'en' ]; then
			HANDLE=$(echo "$1" | md5sum)
		if [ -f /root/.ydown/transtext/"$syslang"/"$syslang"-"$HANDLE".transtext ]; then
			WORK=$(cat /root/.ydown/transtext/"$syslang"/"$syslang"-"$HANDLE".transtext &)
			echo "$WORK"
		elif [[ $(type -p trans) != "" ]]; then
			 WORK=$(echo -e "$1" | trans -e google -no-auto -b -tl "$syslang" &)
			[ "$WORK" ] && echo "$WORK" || echo "$1"
			[ ! -d /root/.ydown/transtext/"$syslang" ] && mkdir -p /root/.ydown/transtext/"$syslang"
			[ ! -f /root/.ydown/transtext/"$syslang"/"$syslang"-"$HANDLE".transtext ] && echo -e "$WORK" > /root/.ydown/transtext/"$syslang"/"$syslang"-"$HANDLE".transtext 
		else
			echo "$1"
		fi
	fi
	}; export -f gettext

Re: ydown-0.5.0 link downloader

Posted: Mon May 15, 2023 10:03 am
by plinej

Updated to 0.5.0 - some minor fixes and added @stemsee's gettext/trans function.


Re: ydown-0.5.0 link downloader

Posted: Mon May 22, 2023 4:53 pm
by Jasper

@plinej

I wanted to bring to your attention another cli script, this one is for the file-hosting site Mediafire.

https://github.com/Juvenal-Yescas/mediafire-dl

It is a written in Python and does require two additional Python packages to be added to your OS.

  • mediafire_dl-0.1.0

  • tqdm-4.65.0

Usage is easy enough eg

mediafire-dl <download url>

Image

Personally, I do find it useful as it bypasses any adverts that pop up.

I do know who to package this up otherwise I would have provided it to others as a PET file.

Is it potentially worth considering as a new addition?


Re: ydown-0.5.0 link downloader

Posted: Mon May 22, 2023 10:28 pm
by plinej

@Jasper, I'll take a look at it...


Re: ydown-0.5.1 link downloader

Posted: Tue May 23, 2023 12:42 am
by plinej

updated to 0.5.1 - added better support for mediafire and wetransfer


Re: ydown-0.5.1 link downloader

Posted: Tue May 23, 2023 5:49 am
by Jasper

Many thanks @plinej :thumbup:


Re: ydown-0.5.2 link downloader

Posted: Tue May 23, 2023 8:30 pm
by plinej

updated to 0.5.2 - added support for gofile and if wget is installed then the builtin scripts will update when certain sites are downloaded from


Re: ydown-0.5.2 link downloader

Posted: Sun Jun 04, 2023 3:46 pm
by stemsee

How would you go about testing a url for status? In the case of http://187.85.121.1:8000/:
Which is a radio stream. How to differentiate streams from file downloads?


Re: ydown-0.5.2 link downloader

Posted: Mon Jun 05, 2023 9:52 am
by plinej

@stemsee, Do you want to download the stream or just have ydown ignore the link? I assume just ignore it since it would be an endless download.


Re: ydown-0.5.2 link downloader

Posted: Mon Jun 05, 2023 12:31 pm
by stemsee

If it can be tested for a file or stream in fact I will add a line to play it!


Re: ydown-0.5.3 link downloader

Posted: Mon Jun 12, 2023 1:34 am
by plinej

uploaded 0.5.3 - minor bug fixes


Re: ydown-0.5.4 link downloader

Posted: Thu Jun 15, 2023 8:21 pm
by plinej

updated to 0.5.4 - more bugfixes


Re: ydown-0.5.4 link downloader

Posted: Wed Jun 21, 2023 9:37 am
by plinej

updated to 0.5.5 - improved downloading video from facebook and some other minor tweaks


Re: ydown-0.5.6 link downloader

Posted: Sun Jul 30, 2023 6:33 pm
by plinej

updated to 0.5.6


Re: ydown-0.5.7 link downloader / download management

Posted: Thu Aug 17, 2023 8:41 pm
by plinej

updated to 0.5.7


Re: ydown-0.5.8 link downloader / download management

Posted: Tue Sep 05, 2023 9:19 pm
by plinej

updated to 0.5.8


Re: ydown-0.5.9 link downloader / download management

Posted: Mon Jan 01, 2024 11:43 pm
by plinej

updated to 0.5.9


Re: ydown-0.6.0 link downloader / download management

Posted: Sat Jan 06, 2024 12:54 am
by plinej

updated to 0.6.0


Re: ydown-0.6.1 link downloader / download management

Posted: Sat Feb 10, 2024 7:03 pm
by plinej

0.6.1 is up


Re: ydown-0.6.2 link downloader / download management

Posted: Mon Feb 12, 2024 2:16 am
by plinej

0.6.2 is up


Re: ydown-0.6.2 link downloader / download management

Posted: Mon Feb 12, 2024 9:44 am
by Jasper

@plinej

Thanks for the update :thumbup:

Just a minor cosmetic issue :oops:

Image


Re: ydown-0.6.2 link downloader / download management

Posted: Mon Feb 12, 2024 8:54 pm
by plinej

@Jasper, I'll fix that in the next update. There are a couple of other things I need to cleanup as well.


Re: ydown-0.6.3 link downloader / download management

Posted: Mon Feb 12, 2024 10:24 pm
by plinej

0.6.3 is up