diff options
author | V3n3RiX <venerix@koprulu.sector> | 2025-02-09 00:12:01 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2025-02-09 00:12:01 +0000 |
commit | b95a6fd4a7b591baa7cfc689f8ce5643592d07be (patch) | |
tree | 6a7c4722b40bdb6c409879ce253d8b42817fec14 /media-video/vidify | |
parent | 8b3c41ecef8a1cdd270ce3aabcfdfb991839699c (diff) |
gentoo auto-resync : 09:02:2025 - 00:12:00
Diffstat (limited to 'media-video/vidify')
-rw-r--r-- | media-video/vidify/Manifest | 5 | ||||
-rw-r--r-- | media-video/vidify/files/vidify-2.2.6-python310.patch | 16 | ||||
-rw-r--r-- | media-video/vidify/files/vidify-2.2.6-yt-dlp.patch | 122 | ||||
-rw-r--r-- | media-video/vidify/metadata.xml | 24 | ||||
-rw-r--r-- | media-video/vidify/vidify-2.2.6-r3.ebuild | 84 |
5 files changed, 0 insertions, 251 deletions
diff --git a/media-video/vidify/Manifest b/media-video/vidify/Manifest deleted file mode 100644 index 46ecce6ad018..000000000000 --- a/media-video/vidify/Manifest +++ /dev/null @@ -1,5 +0,0 @@ -AUX vidify-2.2.6-python310.patch 743 BLAKE2B 143ae6532398038da83cf08fc95f25338cabd35f02213336b3e7e54944c2a49b1fd831a7d8ded957305b2b2a292f5bcfc64fb290888029c4859ce8f002db9809 SHA512 63b24e30e1159455411cf1aeaa8c2d2d88db6fa7c08536fb8cf95401c2f23ad68d2d67efdc8fc92d9decb3e2541154fb083a44aba1ba15f526333ff46a3bdf8a -AUX vidify-2.2.6-yt-dlp.patch 4669 BLAKE2B 04f1c80702a495f732e617c5a1ad51a70dcaed82e9650c4ab21844d2aadeb58893889c575ed141fd9e8b8e2353f24b234217b1b9fad83d1b1d2b9e5f87e90474 SHA512 4ff0ca2d2c9999dae5b90abdd9554f8808b30b263a74f099d21c1de001736d1040e53e2ab55607fe6b0807ac4fbffb81cf10935f1419055a9ac136188ef90d84 -DIST vidify-2.2.6.tar.gz 2906511 BLAKE2B 3df48ca57e102f664852e2fc2abeb3d19427673e1fec5144a8c0afda112a0f3b281b18db43b4326244266d6e9dfbcb2443319ddad3f864098a61bd1e3c966307 SHA512 15487ee9dcbe647b2b287bd2eb3c09962b557320313a9a3885fb3c0d6af945909531111d5297c1a5fb5b451af5df6fd968b3953bbf79af113980ed368a5674b5 -EBUILD vidify-2.2.6-r3.ebuild 2494 BLAKE2B 57a5c83bd4fe4de6de10e26650fcda6d9f2207809eb7fb9a0e72483b6306c35a99d0e37191d0e60de3b53bb2e64d3e796e3d98734ada19fe99116b3c78604b5e SHA512 1e116fe775063ce1eb77625a6765a5f9316de2ebcbf24e5d35a5e4374bf68e0197f791159ba8ef94ec4f51256c2ad876ccb1471aaaa306ebe0a003429e681e4b -MISC metadata.xml 779 BLAKE2B 8cf9bdd31415915b97cbd3195fbf65837114c4068b03c6b9eef9aafbf6a5e41777fbe20551545b362f531f274c287bd0b925fa81cb5eacb9d878ed03a546de77 SHA512 833806490154ad58f1d173f909e1b7bd74d0532b110e8a121a18b7852d2dfb70aaae89666131f3bc24ae0e845d3623287d7f150f6b5c7dc13d960253df9e449c diff --git a/media-video/vidify/files/vidify-2.2.6-python310.patch b/media-video/vidify/files/vidify-2.2.6-python310.patch deleted file mode 100644 index 4b78ea559333..000000000000 --- a/media-video/vidify/files/vidify-2.2.6-python310.patch +++ /dev/null @@ -1,16 +0,0 @@ -diff --git a/vidify/player/vlc.py b/vidify/player/vlc.py -index a7c9ec0..cb50f89 100644 ---- a/vidify/player/vlc.py -+++ b/vidify/player/vlc.py -@@ -75,9 +75,9 @@ class VLCPlayer(PlayerBase): - def start_video(self, media: str, is_playing: bool = True) -> None: - logging.info("Starting new video") - if CURRENT_PLATFORM in (Platform.LINUX, Platform.BSD): -- self._player.set_xwindow(self.winId()) -+ self._player.set_xwindow(int(self.winId())) - elif CURRENT_PLATFORM == Platform.WINDOWS: -- self._player.set_hwnd(self.winId()) -+ self._player.set_hwnd(int(self.winId())) - elif CURRENT_PLATFORM == Platform.MACOS: - self._player.set_nsobject(int(self.winId())) - diff --git a/media-video/vidify/files/vidify-2.2.6-yt-dlp.patch b/media-video/vidify/files/vidify-2.2.6-yt-dlp.patch deleted file mode 100644 index 6ce0f836d5fd..000000000000 --- a/media-video/vidify/files/vidify-2.2.6-yt-dlp.patch +++ /dev/null @@ -1,122 +0,0 @@ -diff --git a/README.md b/README.md -index c4ea164..51e65e6 100644 ---- a/README.md -+++ b/README.md -@@ -79,7 +79,7 @@ Audiosync is only available on Linux for now. It's strongly recommended to use M - * FFTW: `libfftw3` on Debian-based distros. - * ffmpeg: `ffmpeg` on most repositories. It must be available on your path. - * pulseaudio: `pulseaudio`, pre-installed on most repos. --* youtube-dl: this is installed by default with Vidify, but make sure it's available on your path. -+* yt-dlp: this is installed by default with Vidify, but make sure it's available on your path. - - It's also available as [`vidify-audiosync`](https://aur.archlinux.org/packages/vidify-audiosync) on the AUR, and it comes pre-installed in the binaries. - -diff --git a/dev/build_requires.txt b/dev/build_requires.txt -index ed682fd..a8bbc30 100644 ---- a/dev/build_requires.txt -+++ b/dev/build_requires.txt -@@ -14,5 +14,5 @@ QtPy - SwSpotify>=1.1.1; platform_system == "Windows" or platform_system == "Darwin" - tekore < 2.0 - vidify-audiosync == 0.2.* --youtube-dl -+yt-dlp - zeroconf -diff --git a/dev/snapcraft.yaml b/dev/snapcraft.yaml -index a5446de..00d2aae 100644 ---- a/dev/snapcraft.yaml -+++ b/dev/snapcraft.yaml -@@ -22,7 +22,7 @@ parts: - - python3-pyqt5 - - python3-appdirs - - python3-pydbus -- - youtube-dl -+ - yt-dlp - # Mpv is used by default because it's lighter and works better - # with the audiosync feature. - - libmpv-dev -diff --git a/setup.py b/setup.py -index 3fdb656..9b1c093 100644 ---- a/setup.py -+++ b/setup.py -@@ -19,7 +19,7 @@ install_deps = [ - # Base package - 'QtPy', - 'lyricwikia', -- 'youtube-dl', -+ 'yt-dlp', - 'appdirs', - 'qdarkstyle', - 'dataclasses; python_version<"3.7"', -diff --git a/vidify/player/mpv.py b/vidify/player/mpv.py -index 4b92571..68bd1a5 100644 ---- a/vidify/player/mpv.py -+++ b/vidify/player/mpv.py -@@ -30,7 +30,7 @@ locale.setlocale(locale.LC_NUMERIC, 'C') - - class MpvPlayer(PlayerBase): - # The audio is always muted, which is needed because not all the -- # youtube-dl videos are silent. The keep-open flag stops mpv from closing -+ # yt-dlp videos are silent. The keep-open flag stops mpv from closing - # after the video is over. - DEFAULT_FLAGS = ['mute'] - DEFAULT_ARGS = { -diff --git a/vidify/player/vlc.py b/vidify/player/vlc.py -index 6a0bec7..a7c9ec0 100644 ---- a/vidify/player/vlc.py -+++ b/vidify/player/vlc.py -@@ -31,7 +31,7 @@ class VLCPlayer(PlayerBase): - else: - vlc_args += " --quiet" - # The audio is always muted, which is needed because not all the -- # youtube-dl videos are silent. -+ # yt-dlp videos are silent. - # Needed for the audiosync feature: set the Group of Pictures size to - # one, so that seeking is more precise. - vlc_args += " --no-audio --sout-x264-min-keyint 1" -diff --git a/vidify/youtube.py b/vidify/youtube.py -index 1b23bfb..b959f34 100644 ---- a/vidify/youtube.py -+++ b/vidify/youtube.py -@@ -1,5 +1,5 @@ - """ --This module uses youtube-dl to obtain the actual URL of a YouTube link. -+This module uses yt-dlp to obtain the actual URL of a YouTube link. - That way, the video can be played directly with a video player like VLC - or mpv. - """ -@@ -7,7 +7,7 @@ or mpv. - import logging - from typing import Optional - --from youtube_dl import YoutubeDL -+from yt_dlp import YoutubeDL - from qtpy.QtCore import QObject, Signal - - -@@ -63,7 +63,7 @@ class YouTubeDLWorker(QObject): - - def get_url(self) -> None: - """ -- Getting the youtube direct link with youtube-dl, intended to be used -+ Getting the youtube direct link with yt-dlp, intended to be used - with a QThread. It's guaranteed that either a success signal or a - fail signal will be emitted. - """ -@@ -74,13 +74,13 @@ class YouTubeDLWorker(QObject): - except Exception as e: - # Any kind of error has to be caught, so that it doesn't only - # send the error signal when the download wasn't successful -- # (a DownloadError from youtube_dl). -- logging.info("YouTube-dl wasn't able to obtain the video: %s", -+ # (a DownloadError from yt_dlp). -+ logging.info("yt-dlp wasn't able to obtain the video: %s", - str(e)) - self.fail.emit() - else: - if len(data['entries']) == 0: -- logging.info("YouTube-dl returned no entries") -+ logging.info("yt-dlp returned no entries") - self.fail.emit() - else: - self.success.emit(data) diff --git a/media-video/vidify/metadata.xml b/media-video/vidify/metadata.xml deleted file mode 100644 index 6308fbc3fc23..000000000000 --- a/media-video/vidify/metadata.xml +++ /dev/null @@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> - -<pkgmetadata> - <maintainer type="person"> - <email>nowa@gentoo.org</email> - <name>Nowa Ammerlaan</name> - </maintainer> - <use> - <flag name="vlc">Use python-vlc as backend for vidify</flag> - <flag name="mpv">Use python-mpv as backend for vidify</flag> - <flag name="zeroconf">Use an external network player</flag> - <flag name="dbus">Support local MPRIS players</flag> - </use> - <upstream> - <maintainer> - <email>marioortizmanero@gmail.com</email> - <name>Mario Ortiz Manero</name> - </maintainer> - <remote-id type="github">vidify/vidify</remote-id> - <bugs-to>https://github.com/vidify/vidify/issues</bugs-to> - </upstream> - <stabilize-allarches/> -</pkgmetadata> diff --git a/media-video/vidify/vidify-2.2.6-r3.ebuild b/media-video/vidify/vidify-2.2.6-r3.ebuild deleted file mode 100644 index a1c94e41dae9..000000000000 --- a/media-video/vidify/vidify-2.2.6-r3.ebuild +++ /dev/null @@ -1,84 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{10..12} ) -DISTUTILS_USE_PEP517=setuptools -inherit xdg distutils-r1 optfeature virtualx - -DESCRIPTION="Watch music videos in real time for the songs playing on your device" -HOMEPAGE="https://vidify.org" -SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="LGPL-3" -SLOT="0" -KEYWORDS="~amd64" - -IUSE="dbus vlc mpv zeroconf" - -REQUIRED_USE="|| ( vlc mpv zeroconf )" - -RDEPEND=" - dev-python/appdirs[${PYTHON_USEDEP}] - dev-python/qtpy[gui,webengine,${PYTHON_USEDEP}] - net-misc/lyricwikia[${PYTHON_USEDEP}] - net-misc/yt-dlp[${PYTHON_USEDEP}] - dbus? ( dev-python/pydbus[${PYTHON_USEDEP}] ) - !dbus? ( dev-python/tekore[${PYTHON_USEDEP}] ) - mpv? ( dev-python/python-mpv[${PYTHON_USEDEP}] ) - vlc? ( dev-python/python-vlc[${PYTHON_USEDEP}] ) - zeroconf? ( dev-python/zeroconf[${PYTHON_USEDEP}] ) -" - -# use yt-dlp instead of youtube-dl, otherwise download is too slow for playback -PATCHES=( - "${FILESDIR}/${P}-yt-dlp.patch" - "${FILESDIR}/${P}-python310.patch" -) - -distutils_enable_tests unittest - -python_prepare_all() { - # skip online test - rm tests/api/test_spotify_web.py || die - rm tests/player/test_external.py || die - - # this needs dbus and a player running - rm tests/api/test_mpris.py || die - - # can't parse non-existent config - rm tests/test_api_and_player_data.py || die - - # do not hard depend on this - sed -i \ - -e '/qdarkstyle/d' \ - -e '/python-vlc/d' \ - -e '/python-mpv/d' \ - -e '/pydbus/d' \ - -e '/tekore/d' \ - -e '/zeroconf/d' \ - -e '/If PySide2 is installed and PyQt5/,/PyQtWebEngine/d' \ - setup.py || die - - distutils-r1_python_prepare_all -} - -python_test() { - virtx "${EPYTHON}" -m unittest discover -v -} - -pkg_postinst() { - xdg_pkg_postinst - - elog "If video playback is not working please check 'vidify --debug' for missing-codec-errors" - elog "and recompile media-video/vlc or media-video/mpv with the missing codecs" - - optfeature "using an MPRIS(D-Bus) audio player (e.g spotify)" dev-python/pydbus - optfeature "using the Spotify Web API as audio player" dev-python/tekore - optfeature "using an external network player" dev-python/zeroconf - optfeature "using media-video/mpv for video playback" dev-python/python-mpv - optfeature "using media-video/vlc for video playback" dev-python/python-vlc - optfeature "'vidify --dark-mode'" dev-python/qdarkstyle - optfeature "'vidify --audiosync'" media-video/vidify-audiosync -} |