View previous topic :: View next topic |
Author |
Message |
ryszardzonk Apprentice
Joined: 18 Dec 2003 Posts: 225 Location: Rzeszów, POLAND
|
Posted: Tue May 01, 2018 8:59 pm Post subject: Video DownloadHelper addon helper app |
|
|
Live seems is always full of surprises. One day Firefox addons work fine while other they inform you of changes within the browser that require changes to one's habits. Recording streams from download helper is no longer possible without helper app which needs to be installed in system which does not seem to work for me at all when I did it manually.
Cutting to the point could someone prepare ebuild for https://github.com/mi-g/vdhcoapp/ so others like me could stay happy knowing they do not have to pull out the very few hair they have left
PLEASE _________________ Sky is not the limit... |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30837 Location: here
|
Posted: Wed May 02, 2018 9:24 am Post subject: |
|
|
I have not tested the ebuild
EDIT: this ebuild is based on binary version because in portage npm install isn't yet supported
www-misc/vdhcoapp-bin/vdhcoapp-bin-1.1.3.ebuild: | # Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
BN="net.downloadhelper.coapp"
MY_PN="${PN/-bin/}"
DESCRIPTION="Companion application for Video DownloadHelper browser add-on"
HOMEPAGE="https://www.downloadhelper.net/"
SRC_URI="
x86? ( https://github.com/mi-g/${MY_PN}/releases/download/v${PV}/${BN}-${PV}-1_i386.tar.gz )
amd64? ( https://github.com/mi-g/${MY_PN}/releases/download/v${PV}/${BN}-${PV}-1_amd64.tar.gz )"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND="
dev-lang/orc
media-video/ffmpeg[arm,mp3,opus,theora,vorbis,webp,x264,x265]
"
DEPEND="${RDEPEND}"
S="${WORKDIR}/${BN}-${PV}"
src_install() {
local size
if use x86; then
size=32
elif use amd64; then
size=64
else
die "Ebuild only functions for x86 and amd64."
fi
dobin bin/${BN}-linux-${size}
insinto /usr/share/"${MY_PN}"
doins config.json
insinto /usr/lib/mozilla/native-messaging-hosts/
newins "${FILESDIR}/firefox-manifest.json" "${BN}.json"
sed -i "s/%SIZE%/${size}/" "${ED%/}/usr/lib/mozilla/native-messaging-hosts/${BN}.json" || die "sed"
insinto /etc/opt/chrome/native-messaging-hosts
newins "${FILESDIR}/chrome-manifest.json" "${BN}.json"
sed -i "s/%SIZE%/${size}/" "${ED%/}/etc/opt/chrome/native-messaging-hosts/${BN}.json" || die "sed"
insinto /etc/chromium/native-messaging-hosts
newins "${FILESDIR}/chrome-manifest.json" "${BN}.json"
sed -i "s/%SIZE%/${size}/" "${ED%/}/etc/chromium/native-messaging-hosts/${BN}.json" || die "sed"
} |
files/firefox-manifest.json : | {
"name": "net.downloadhelper.coapp",
"description": "Video DownloadHelper companion app",
"path": "/usr/bin/net.downloadhelper.coapp-linux-%SIZE%",
"type": "stdio",
"allowed_extensions": [
"weh-native-test@downloadhelper.net"
,
"{b9db16a4-6edc-47ec-a1f4-b86292ed211d}"
]
} |
files/chrome-manifest.json : | {
"name": "net.downloadhelper.coapp",
"description": "Video DownloadHelper companion app",
"path": "/usr/bin/net.downloadhelper.coapp-linux-%SIZE%",
"type": "stdio",
"allowed_origins": [
"chrome-extension://ocgbelnknlgoiofcepicgpicjibclfdg/"
,
"chrome-extension://lpheobkpibijgligoklmllibbbdhfghg/"
,
"chrome-extension://amnobfikmbfolbaeeadnkcppghfdjeke/"
]
} |
_________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
ryszardzonk Apprentice
Joined: 18 Dec 2003 Posts: 225 Location: Rzeszów, POLAND
|
Posted: Thu May 03, 2018 7:43 am Post subject: |
|
|
Thank You!
First thing is I think you meant media-video/ffmpeg[amr...]. And is that one really required? I never used it so far. I mean I saw it in the libs bundle, but same way there was also openjpeg, ogg or xvid.
Here is slightly modified version with use flags for firefox/chrome.
Code: | # Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
BN="net.downloadhelper.coapp"
MY_PN="${PN/-bin/}"
DESCRIPTION="Companion application for Video DownloadHelper browser add-on"
HOMEPAGE="https://www.downloadhelper.net/"
SRC_URI="
x86? ( https://github.com/mi-g/${MY_PN}/releases/download/v${PV}/${BN}-${PV}-1_i386.tar.gz )
amd64? ( https://github.com/mi-g/${MY_PN}/releases/download/v${PV}/${BN}-${PV}-1_amd64.tar.gz )"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="chrome +firefox"
RDEPEND="
dev-lang/orc
media-video/ffmpeg[amr,mp3,opus,theora,vorbis,webp,x264,x265]
"
DEPEND="${RDEPEND}"
S="${WORKDIR}/${BN}-${PV}"
src_install() {
local size
if use x86; then
size=32
elif use amd64; then
size=64
else
die "Ebuild only functions for x86 and amd64."
fi
dobin bin/${BN}-linux-${size}
insinto /usr/share/"${MY_PN}"
doins config.json
if use firefox; then
insinto /usr/lib/mozilla/native-messaging-hosts/
newins "${FILESDIR}/firefox-manifest.json" "${BN}.json"
sed -i "s/%SIZE%/${size}/" "${ED%/}/usr/lib/mozilla/native-messaging-hosts/${BN}.json" || die "sed"
fi
is use chrome; then
insinto /etc/opt/chrome/native-messaging-hosts
newins "${FILESDIR}/chrome-manifest.json" "${BN}.json"
sed -i "s/%SIZE%/${size}/" "${ED%/}/etc/opt/chrome/native-messaging-hosts/${BN}.json" || die "sed"
insinto /etc/chromium/native-messaging-hosts
newins "${FILESDIR}/chrome-manifest.json" "${BN}.json"
sed -i "s/%SIZE%/${size}/" "${ED%/}/etc/chromium/native-messaging-hosts/${BN}.json" || die "sed"
fi
} |
_________________ Sky is not the limit... |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30837 Location: here
|
Posted: Thu May 03, 2018 9:57 am Post subject: |
|
|
ryszardzonk wrote: | First thing is I think you meant media-video/ffmpeg[amr...]. And is that one really required? I never used it so far. I mean I saw it in the libs bundle, but same way there was also openjpeg, ogg or xvid. |
When you download the binary package contains libraries libopencore-amrnb.so and libopencore-amrwb.so that are provided by media-libs/opencore-amr which in turn are used by ffmpeg[amr], then I think yes is required for something.
ryszardzonk wrote: | Here is slightly modified version with use flags for firefox/chrome. |
Usually are not added esotics use flags and I prefer that all file are installed, but is your ebuild and you can add use flags you want _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
cord Guru
Joined: 28 Apr 2007 Posts: 344
|
Posted: Tue Mar 31, 2020 5:04 pm Post subject: |
|
|
ryszardzonk wrote: | Thank You!
First thing is I think you meant media-video/ffmpeg[amr...]. And is that one really required? I never used it so far. I mean I saw it in the libs bundle, but same way there was also openjpeg, ogg or xvid.
Here is slightly modified version with use flags for firefox/chrome.
Code: | # Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
BN="net.downloadhelper.coapp"
MY_PN="${PN/-bin/}"
DESCRIPTION="Companion application for Video DownloadHelper browser add-on"
HOMEPAGE="https://www.downloadhelper.net/"
SRC_URI="
x86? ( https://github.com/mi-g/${MY_PN}/releases/download/v${PV}/${BN}-${PV}-1_i386.tar.gz )
amd64? ( https://github.com/mi-g/${MY_PN}/releases/download/v${PV}/${BN}-${PV}-1_amd64.tar.gz )"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="chrome +firefox"
RDEPEND="
dev-lang/orc
media-video/ffmpeg[amr,mp3,opus,theora,vorbis,webp,x264,x265]
"
DEPEND="${RDEPEND}"
S="${WORKDIR}/${BN}-${PV}"
src_install() {
local size
if use x86; then
size=32
elif use amd64; then
size=64
else
die "Ebuild only functions for x86 and amd64."
fi
dobin bin/${BN}-linux-${size}
insinto /usr/share/"${MY_PN}"
doins config.json
if use firefox; then
insinto /usr/lib/mozilla/native-messaging-hosts/
newins "${FILESDIR}/firefox-manifest.json" "${BN}.json"
sed -i "s/%SIZE%/${size}/" "${ED%/}/usr/lib/mozilla/native-messaging-hosts/${BN}.json" || die "sed"
fi
is use chrome; then
insinto /etc/opt/chrome/native-messaging-hosts
newins "${FILESDIR}/chrome-manifest.json" "${BN}.json"
sed -i "s/%SIZE%/${size}/" "${ED%/}/etc/opt/chrome/native-messaging-hosts/${BN}.json" || die "sed"
insinto /etc/chromium/native-messaging-hosts
newins "${FILESDIR}/chrome-manifest.json" "${BN}.json"
sed -i "s/%SIZE%/${size}/" "${ED%/}/etc/chromium/native-messaging-hosts/${BN}.json" || die "sed"
fi
} |
|
Typo at line 48
is -> if |
|
Back to top |
|
|
cord Guru
Joined: 28 Apr 2007 Posts: 344
|
Posted: Tue Mar 31, 2020 5:47 pm Post subject: |
|
|
However, Video DownloadHelper doesn't see it. At the moz-extension://... there is "Companion App not installed" |
|
Back to top |
|
|
ununu n00b
Joined: 19 Apr 2020 Posts: 31
|
Posted: Sun May 10, 2020 9:20 pm Post subject: Re: Video DownloadHelper addon helper app |
|
|
what about some alternatives such as
mps-youtube
plowshare
and others |
|
Back to top |
|
|
cord Guru
Joined: 28 Apr 2007 Posts: 344
|
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30837 Location: here
|
Posted: Mon Feb 27, 2023 6:46 pm Post subject: |
|
|
cord,
the addons seems available on mozilla addons site _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
cord Guru
Joined: 28 Apr 2007 Posts: 344
|
Posted: Mon Feb 27, 2023 7:03 pm Post subject: |
|
|
It's only addon. It needs helper app too.
From mozilla addons site - yt-dlp downloader:
The last one is what we need ebuild for. |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30837 Location: here
|
Posted: Mon Feb 27, 2023 7:39 pm Post subject: |
|
|
Not tested if works runtime
www-plugins/yt_dlp_firefox/yt_dlp_firefox-9999.ebuild: | # Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{9..11} )
inherit python-single-r1 git-r3
DESCRIPTION="A Firefox browser extension for downloading media with yt-dlp"
HOMEPAGE="https://github.com/Tyilo/yt_dlp_firefox"
EGIT_REPO_URI="https://github.com/Tyilo/${PN}.git"
LICENSE="GPL-3"
SLOT="0"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
RDEPEND="${PYTHON_DEPS}
net-misc/yt-dlp"
src_prepare() {
default
sed -i 's/"path": ".*"/"path": "\/usr\/bin\/yt_dlp_firefox"/g' helper/yt_dlp_firefox.json
}
src_compile() {
:
}
src_install() {
python_doexe helper/yt_dlp_firefox
insinto /usr/lib/mozilla/native-messaging-hosts
doins helper/yt_dlp_firefox.json
insinto /usr/lib64/mozilla/native-messaging-hosts
doins helper/yt_dlp_firefox.json
} |
_________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
cord Guru
Joined: 28 Apr 2007 Posts: 344
|
Posted: Sat Mar 04, 2023 7:33 pm Post subject: |
|
|
fedeliallalinea wrote: | Not tested if works runtime |
No, "Can't communicate with helper" |
|
Back to top |
|
|
|