Compare commits

...

25 Commits

Author SHA1 Message Date
DmitryScaletta
7367e64c67
Merge 107bed866f into b83ca24eb7 2024-11-10 14:42:04 +01:00
sepro
b83ca24eb7
[core] Catch broken Cryptodome installations (#11486)
Authored by: seproDev
2024-11-10 00:53:49 +01:00
bashonly
240a7d43c8
[build] Pin websockets version to >=13.0,<14 (#11488)
websockets 14.0 causes CI test failures (a lot more of them)

Authored by: bashonly
2024-11-09 23:46:47 +00:00
bashonly
f13df591d4
[build] Enable attestations for trusted publishing (#11420)
Reverts 428ffb75aa

Authored by: bashonly
2024-11-09 23:26:02 +00:00
DmitryScaletta
107bed866f
[PromoDJ] Sort imports 2024-02-27 02:32:49 +03:00
DmitryScaletta
2416fddcfb
[PromoDJ] Add codecs 2024-02-17 05:24:49 +03:00
DmitryScaletta
49ac5d31a3
[PromoDJ] Update radio extractor and add tests 2024-02-17 05:06:06 +03:00
DmitryScaletta
e32ba3fc21
[PromoDJ] Fix login regex 2024-02-17 04:16:05 +03:00
DmitryScaletta
345d01a175
[PromoDJ] Fix negative lookahead check 2024-02-16 23:22:57 +03:00
DmitryScaletta
ed61b73bcd
[PromoDJ] Remove player's width and height 2024-02-15 21:50:13 +03:00
DmitryScaletta
900bc5f708
[PromoDJ] Refactor fetch_media_data and regexes 2024-02-15 21:32:19 +03:00
DmitryScaletta
99dec4d6ed
[PromoDJ] Add music format ids 2024-02-15 13:48:13 +03:00
DmitryScaletta
1b3c186424
[PromoDJ] Fix page size for playlists 2024-02-15 12:41:29 +03:00
DmitryScaletta
7e96492ba0
[PromoDJ] Fix page size for playlists 2024-02-15 12:39:46 +03:00
DmitryScaletta
e6f3e6de0e
[PromoDJ] Fix paid music metadata 2024-02-15 12:34:50 +03:00
DmitryScaletta
c837d90e12
[PromoDJ] Add support for user's best media playlist 2024-02-15 12:21:53 +03:00
DmitryScaletta
c820715205
[PromoDJ] Fix parse data and size functions 2024-02-15 11:53:12 +03:00
DmitryScaletta
0c8466572f
[PromoDJ] Add more tests 2024-02-15 00:53:12 +03:00
DmitryScaletta
5b148c0f79
[PromoDJ] Improve video formats, update tests 2024-02-14 17:55:59 +03:00
DmitryScaletta
85b739eba7
[PromoDJ] Update media info extraction logic 2024-02-14 16:23:17 +03:00
DmitryScaletta
a634e7c5d1
[PromoDJ] Some refactoring 2024-02-14 14:00:03 +03:00
DmitryScaletta
13f116fce6
[PromoDJ] Rename media_types to allowed_media_cats 2024-02-14 04:40:18 +03:00
DmitryScaletta
ca0be3f1c1
[PromoDJ] Improve extractors 2024-02-14 04:36:08 +03:00
DmitryScaletta
3416c1a0e8
[PromoDJ] Add user pages and blogs extractors 2024-02-14 00:46:01 +03:00
DmitryScaletta
1a256e5d56
[PromoDJ] Add extractors 2024-02-13 22:57:05 +03:00
8 changed files with 1116 additions and 8 deletions

View File

@ -504,7 +504,8 @@ jobs:
- windows32 - windows32
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/download-artifact@v4 - name: Download artifacts
uses: actions/download-artifact@v4
with: with:
path: artifact path: artifact
pattern: build-bin-* pattern: build-bin-*

View File

@ -28,3 +28,20 @@ jobs:
actions: write # For cleaning up cache actions: write # For cleaning up cache
id-token: write # mandatory for trusted publishing id-token: write # mandatory for trusted publishing
secrets: inherit secrets: inherit
publish_pypi:
needs: [release]
if: vars.MASTER_PYPI_PROJECT != ''
runs-on: ubuntu-latest
permissions:
id-token: write # mandatory for trusted publishing
steps:
- name: Download artifacts
uses: actions/download-artifact@v4
with:
path: dist
name: build-pypi
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
verbose: true

View File

@ -41,3 +41,20 @@ jobs:
actions: write # For cleaning up cache actions: write # For cleaning up cache
id-token: write # mandatory for trusted publishing id-token: write # mandatory for trusted publishing
secrets: inherit secrets: inherit
publish_pypi:
needs: [release]
if: vars.NIGHTLY_PYPI_PROJECT != ''
runs-on: ubuntu-latest
permissions:
id-token: write # mandatory for trusted publishing
steps:
- name: Download artifacts
uses: actions/download-artifact@v4
with:
path: dist
name: build-pypi
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
verbose: true

View File

@ -2,10 +2,6 @@ name: Release
on: on:
workflow_call: workflow_call:
inputs: inputs:
prerelease:
required: false
default: true
type: boolean
source: source:
required: false required: false
default: '' default: ''
@ -18,6 +14,10 @@ on:
required: false required: false
default: '' default: ''
type: string type: string
prerelease:
required: false
default: true
type: boolean
workflow_dispatch: workflow_dispatch:
inputs: inputs:
source: source:
@ -278,11 +278,20 @@ jobs:
make clean-cache make clean-cache
python -m build --no-isolation . python -m build --no-isolation .
- name: Upload artifacts
if: github.event_name != 'workflow_dispatch'
uses: actions/upload-artifact@v4
with:
name: build-pypi
path: |
dist/*
compression-level: 0
- name: Publish to PyPI - name: Publish to PyPI
if: github.event_name == 'workflow_dispatch'
uses: pypa/gh-action-pypi-publish@release/v1 uses: pypa/gh-action-pypi-publish@release/v1
with: with:
verbose: true verbose: true
attestations: false # Currently doesn't work w/ reusable workflows (breaks nightly)
publish: publish:
needs: [prepare, build] needs: [prepare, build]

View File

@ -52,7 +52,7 @@ default = [
"pycryptodomex", "pycryptodomex",
"requests>=2.32.2,<3", "requests>=2.32.2,<3",
"urllib3>=1.26.17,<3", "urllib3>=1.26.17,<3",
"websockets>=13.0", "websockets>=13.0,<14",
] ]
curl-cffi = [ curl-cffi = [
"curl-cffi==0.5.10; os_name=='nt' and implementation_name=='cpython'", "curl-cffi==0.5.10; os_name=='nt' and implementation_name=='cpython'",

View File

@ -24,7 +24,7 @@ try:
from Crypto.Cipher import AES, PKCS1_OAEP, Blowfish, PKCS1_v1_5 # noqa: F401 from Crypto.Cipher import AES, PKCS1_OAEP, Blowfish, PKCS1_v1_5 # noqa: F401
from Crypto.Hash import CMAC, SHA1 # noqa: F401 from Crypto.Hash import CMAC, SHA1 # noqa: F401
from Crypto.PublicKey import RSA # noqa: F401 from Crypto.PublicKey import RSA # noqa: F401
except ImportError: except (ImportError, OSError):
__version__ = f'broken {__version__}'.strip() __version__ = f'broken {__version__}'.strip()

View File

@ -1594,6 +1594,21 @@ from .prankcast import (
from .premiershiprugby import PremiershipRugbyIE from .premiershiprugby import PremiershipRugbyIE
from .presstv import PressTVIE from .presstv import PressTVIE
from .projectveritas import ProjectVeritasIE from .projectveritas import ProjectVeritasIE
from .promodj import (
PromoDJPageIE,
PromoDJUserIE,
PromoDJUserMediaIE,
PromoDJUserPagesIE,
PromoDJUserPageIE,
PromoDJBlogPageIE,
PromoDJPlaylistIE,
PromoDJMusicPlaylistIE,
PromoDJVideoPlaylistIE,
PromoDJIE,
PromoDJEmbedIE,
PromoDJShortIE,
PromoDJRadioIE,
)
from .prosiebensat1 import ProSiebenSat1IE from .prosiebensat1 import ProSiebenSat1IE
from .prx import ( from .prx import (
PRXAccountIE, PRXAccountIE,

1049
yt_dlp/extractor/promodj.py Normal file

File diff suppressed because it is too large Load Diff