Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Video DownloadHelper addon helper app
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
ryszardzonk
Apprentice
Apprentice


Joined: 18 Dec 2003
Posts: 225
Location: Rzeszów, POLAND

PostPosted: Tue May 01, 2018 8:59 pm    Post subject: Video DownloadHelper addon helper app Reply with quote

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. :cry:
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
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30837
Location: here

PostPosted: Wed May 02, 2018 9:24 am    Post subject: Reply with quote

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
View user's profile Send private message
ryszardzonk
Apprentice
Apprentice


Joined: 18 Dec 2003
Posts: 225
Location: Rzeszów, POLAND

PostPosted: Thu May 03, 2018 7:43 am    Post subject: Reply with quote

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
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30837
Location: here

PostPosted: Thu May 03, 2018 9:57 am    Post subject: Reply with quote

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 :D
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
cord
Guru
Guru


Joined: 28 Apr 2007
Posts: 344

PostPosted: Tue Mar 31, 2020 5:04 pm    Post subject: Reply with quote

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
View user's profile Send private message
cord
Guru
Guru


Joined: 28 Apr 2007
Posts: 344

PostPosted: Tue Mar 31, 2020 5:47 pm    Post subject: Reply with quote

However, Video DownloadHelper doesn't see it. At the moz-extension://... there is "Companion App not installed" :(
Back to top
View user's profile Send private message
ununu
n00b
n00b


Joined: 19 Apr 2020
Posts: 31

PostPosted: Sun May 10, 2020 9:20 pm    Post subject: Re: Video DownloadHelper addon helper app Reply with quote

what about some alternatives such as

mps-youtube
plowshare

and others
Back to top
View user's profile Send private message
cord
Guru
Guru


Joined: 28 Apr 2007
Posts: 344

PostPosted: Mon Feb 27, 2023 6:40 pm    Post subject: Reply with quote

https://bugs.gentoo.org/736188

Alternatives
Maybe this: yt-dlp + yt_dlp_firefox
But we need ebuild for yt_dlp_firefox
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30837
Location: here

PostPosted: Mon Feb 27, 2023 6:46 pm    Post subject: Reply with quote

cord,
the addons seems available on mozilla addons site
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
cord
Guru
Guru


Joined: 28 Apr 2007
Posts: 344

PostPosted: Mon Feb 27, 2023 7:03 pm    Post subject: Reply with quote

fedeliallalinea wrote:
cord,
the addons seems available on mozilla addons site

It's only addon. It needs helper app too.
From mozilla addons site - yt-dlp downloader:
Quote:

Currently only Linux is supported.
Requires the following packages installed:
- python3
- yt--dlp: https://github.com/yt-dlp/yt-dlp
- native helper: https://github.com/Tyilo/yt_dlp_firefox

The last one is what we need ebuild for.
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30837
Location: here

PostPosted: Mon Feb 27, 2023 7:39 pm    Post subject: Reply with quote

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
View user's profile Send private message
cord
Guru
Guru


Joined: 28 Apr 2007
Posts: 344

PostPosted: Sat Mar 04, 2023 7:33 pm    Post subject: Reply with quote

fedeliallalinea wrote:
Not tested if works runtime

No, "Can't communicate with helper"
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum