How to build youtube-dl for salix 14.2 Xfce?
How to build youtube-dl for salix 14.2 Xfce?
What to do to restore youtube-dl for salix 14.2 Xfce?
Got a complete dropout and am lost.
Please help me.
			
			
									
						
										
						Got a complete dropout and am lost.
Please help me.
Re: How to build youtube-dl for salix 14.2 Xfce?
install qt5
sudo slapt-get -i qt5
then copy this bellow and save it as SLKBUILD
and build the package
install it with 
			
			
									
						
										
						sudo slapt-get -i qt5
then copy this bellow and save it as SLKBUILD
Code: Select all
#Packager: Dimitris Tzemos <dijemos~at~gmail~dot~com>
pkgname=smtube
pkgver=21.10.0
pkgrel=1dj
source=("http://sourceforge.net/projects/smtube/files/SMTube/$pkgver/smtube-$pkgver.tar.bz2" "https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp")
docs=("*.txt" "changelog")
url=http://smplayer.sourceforge.net
slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"smtube (search and download videos from YouTube)"
"SMTube is an application that searches and downloads videos from"
"YouTube. It can use a variety of video players for playing back"
"content."
)
build() {
	cd $startdir/src/$pkgname-$pkgver
	if [ ${USE_QT5:-no} = yes ]; then
		QMAKE=qmake-qt5
		LRELEASE=lrelease-qt5
	else
		QMAKE=qmake
		LRELEASE=lrelease
	fi
	sed -i "s/youtube-dl/yt-dlp/g"  $startdir/src/$pkgname-$pkgver/src/*.cpp || return 1
	
	make \
		QMAKE=$QMAKE \
		LRELEASE=$LRELEASE \
		PREFIX=/usr \
		DOC_PATH="\\\"/usr/doc/$pkgname-$pkgver/\\\"" \
		QMAKE_OPTS="QMAKE_CXXFLAGS=\"$SLKCFLAGS\""  || return 1
	make install \
		PREFIX=/usr \
		DOC_PATH=/usr/doc/$pkgname-$pkgver \
		DESTDIR=$startdir/pkg || return 1
	
	    mkdir -p $startdir/pkg/usr/bin/ || return 1
        cp $startdir/src/yt-dlp $startdir/pkg/usr/bin/ || return 1
        chmod +x $startdir/pkg/usr/bin/yt-dlp
	
	# fix ownerships and permissions
	chown -R root:root $startdir/pkg
} 
Code: Select all
USE_QT5=yes fakeroot slkbuild -XCode: Select all
sudo spkg smtube-21.10.0-x86_64-1dj.txzRe: How to build youtube-dl for salix 14.2 Xfce?
You don't really need a package for this. The download instructions from its homepage should work just fine:
http://ytdl-org.github.io/youtube-dl/download.html
			
			
									
						
										
						http://ytdl-org.github.io/youtube-dl/download.html
Code: Select all
sudo curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl
sudo chmod a+rx /usr/local/bin/youtube-dlRe: How to build youtube-dl for salix 14.2 Xfce?
Hello gapan,gapan wrote: ↑17. Feb 2023, 13:37 You don't really need a package for this. The download instructions from its homepage should work just fine:
http://ytdl-org.github.io/youtube-dl/download.html
Code: Select all
sudo curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl sudo chmod a+rx /usr/local/bin/youtube-dl
I don't think so. Because:
Code: Select all
ERROR: Unable to extract uploader id; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
vRe: How to build youtube-dl for salix 14.2 Xfce?
Oh, so I guess newer versions of youtube-dl cannot be used 14.2 anymore. It's probably that the python in 14.2 is just too old. There's nothing you can do about it.
			
			
									
						
										
						Re: How to build youtube-dl for salix 14.2 Xfce?
Hi guys,gapan wrote: ↑17. Feb 2023, 13:37 You don't really need a package for this. The download instructions from its homepage should work just fine:
http://ytdl-org.github.io/youtube-dl/download.html
Code: Select all
sudo curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl sudo chmod a+rx /usr/local/bin/youtube-dl
My question was simple.
What do you make of it? Pure chaos!
Should I repeat the question or what can I do now?
Re: How to build youtube-dl for salix 14.2 Xfce?
You already got a simple answer. Read my previous post.
			
			
									
						
										
						Re: How to build youtube-dl for salix 14.2 Xfce?
try this
Edit: The file downloaded from https://yt-dl.org/downloads/latest/youtube-dl is not working. Returns an error
but the yt-dlp file is working fine in smtube and in smplayer and in the terminal typing: yt-dlp URL
It is working with python3-3-9.10 and with pyton3-3.9.16. The problem is not the python version.
On smplayer under network in youtube support application choose yt-dlp. Then from smtube clicking on a link the smplayer is running to play the video.
			
			
									
						
										
						Code: Select all
sudo curl -L https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -o /usr/local/bin/yt-dlpCode: Select all
sudo chmod a+rx /usr/local/bin/yt-dlp but the yt-dlp file is working fine in smtube and in smplayer and in the terminal typing: yt-dlp URL
It is working with python3-3-9.10 and with pyton3-3.9.16. The problem is not the python version.
On smplayer under network in youtube support application choose yt-dlp. Then from smtube clicking on a link the smplayer is running to play the video.
- 
				DidierSpaier
 - Posts: 548
 - Joined: 20. Jun 2016, 20:15
 
Re: How to build youtube-dl for salix 14.2 Xfce?
I have upgraded yt-dlp recently, works well with mpv 0.35.0 on Slint-15.0, for what it's worth.
			
			
									
						
										
						
