m3u8-extractor 1.0.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,33 @@
1
+ # EditorConfig — https://editorconfig.org
2
+
3
+ root = true
4
+
5
+ [*]
6
+ charset = utf-8
7
+ end_of_line = lf
8
+ insert_final_newline = true
9
+ trim_trailing_whitespace = true
10
+ indent_style = tab
11
+ indent_size = 4
12
+
13
+ [*.py]
14
+ indent_style = space
15
+ indent_size = 4
16
+
17
+ [*.md]
18
+ indent_style = space
19
+ indent_size = 2
20
+
21
+ [*.{yml,yaml}]
22
+ indent_style = space
23
+ indent_size = 2
24
+
25
+ [*.{toml,json}]
26
+ indent_style = space
27
+ indent_size = 4
28
+
29
+ [LICENSE]
30
+ indent_style = unset
31
+
32
+ [Makefile]
33
+ indent_style = tab
@@ -0,0 +1,72 @@
1
+ # m3u8-extractor example environment variables
2
+ # Source this file or add to your shell profile / .env loader
3
+
4
+ # ── Paths ────────────────────────────────────────────────────────────────────
5
+
6
+ # M3U8_URLS_FILE=urls.txt
7
+ # M3U8_OUTPUT_PATH=downloads/
8
+
9
+ # ── Title ────────────────────────────────────────────────────────────────────
10
+
11
+ # M3U8_TITLE_PREFIX=
12
+ # M3U8_TITLE_POSTFIX=
13
+
14
+ # ── Network ──────────────────────────────────────────────────────────────────
15
+
16
+ # M3U8_REFERRER=
17
+ # M3U8_USE_BASE_URL_AS_REFERRER=false
18
+ # M3U8_COOKIES=
19
+ # M3U8_PROXY=socks5://127.0.0.1:1080
20
+ # M3U8_BROWSER_PROXY=
21
+ # M3U8_IGNORE_SSL_ERRORS=false
22
+ # M3U8_USER_AGENT=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36
23
+ # M3U8_LOCALSTORAGE=jwplayer.qualityLabel=HQ,player.volume=0.8
24
+ # M3U8_HEADERS=X-Custom-Token=abc123,Accept-Language=en-US
25
+ # M3U8_AUTH=user:password
26
+
27
+ # ── Quality & transcoding ────────────────────────────────────────────────────
28
+
29
+ # M3U8_QUALITY=bestvideo+bestaudio
30
+ # M3U8_TRANSCODE=mp4
31
+
32
+ # ── yt-dlp binary ────────────────────────────────────────────────────────────
33
+
34
+ # M3U8_USE_SYSTEM_YTDLP=false
35
+ # M3U8_YT_DLP_PATH=/usr/local/bin/yt-dlp
36
+ # M3U8_YTDLP_ARGS=--limit-rate 1M --retries 10
37
+ # M3U8_GENERIC_IMPERSONATE=false
38
+
39
+ # ── Extractor ────────────────────────────────────────────────────────────────
40
+
41
+ # M3U8_EXTRACTOR=auto
42
+ # M3U8_EXTRACTORS=youtube,vimeo
43
+ # M3U8_USE_SELENIUM_SESSION_FOR_DOWNLOAD=false
44
+
45
+ # ── Parallelism ──────────────────────────────────────────────────────────────
46
+
47
+ # M3U8_PARALLEL=all
48
+ # M3U8_SPEED_UNIT=bytes # bytes (KB/s, MB/s) or bits (Kbps, Mbps)
49
+
50
+ # ── m3u8 selection ───────────────────────────────────────────────────────────
51
+
52
+ # M3U8_SELECT=first # first, last, all, or interactive
53
+ # M3U8_FILTER=
54
+ # M3U8_VIDEO_FILTER=
55
+ # M3U8_STREAM_TYPE=both
56
+
57
+ # ── Adblock ──────────────────────────────────────────────────────────────────
58
+
59
+ # M3U8_ADBLOCK=false
60
+ # M3U8_ADBLOCK_STRICTNESS=complete
61
+ # M3U8_ADBLOCK_EXTENSION=
62
+
63
+ # ── Download modes ───────────────────────────────────────────────────────────
64
+
65
+ # M3U8_THUMBNAIL=false
66
+ # M3U8_THUMBNAIL_ONLY=false
67
+ # M3U8_CAPTIONS=false
68
+ # M3U8_CAPTIONS_ONLY=false
69
+ # M3U8_AUDIO_ONLY=false
70
+ # M3U8_VIDEO_ONLY=false
71
+ # M3U8_VIDEO_AND_CAPTIONS_ONLY=false
72
+ # M3U8_OVERWRITE=true
@@ -0,0 +1,38 @@
1
+ ---
2
+ name: Bug Report
3
+ about: Report a problem with the program
4
+ title: "[BUG] "
5
+ labels: bug
6
+ assignees: ""
7
+ ---
8
+
9
+ ## Description
10
+
11
+ _A clear and concise description of what the bug is._
12
+
13
+ ## Steps to Reproduce
14
+
15
+ _Steps to reproduce the behavior:_
16
+
17
+ 1. _Run 'm3u8-extractor' with options '...'_
18
+ 2. _See the error._
19
+
20
+ ## Expected Behavior
21
+
22
+ _A clear and concise description of what you expected to
23
+ happen._
24
+
25
+ ## Output
26
+
27
+ _If applicable, add output to the console to help explain
28
+ your problem._
29
+
30
+ ## Platform
31
+
32
+ - Operating System: _[e.g. Windows, Linux, macOS]_
33
+ - Python Version: _[e.g. 3.12, 3.13]_
34
+ - Program Version: _[e.g. v1.0.0]_
35
+
36
+ ## Additional Context
37
+
38
+ _Add any other context about the problem here._
@@ -0,0 +1,25 @@
1
+ ---
2
+ name: Feature Request
3
+ about: Suggest an idea
4
+ title: "[FEATURE] "
5
+ labels: enhancement
6
+ assignees: ""
7
+ ---
8
+
9
+ ## Problem
10
+
11
+ _A clear and concise description of what the problem is.
12
+ Ex. I'm always frustrated when ...._
13
+
14
+ ## Solution
15
+
16
+ _A clear and concise description of what you want to happen._
17
+
18
+ ## Alternatives
19
+
20
+ _A clear and concise description of any alternative solutions
21
+ or features you've considered._
22
+
23
+ ## Additional Context
24
+
25
+ _Add any other context about the feature request here._
@@ -0,0 +1,17 @@
1
+ ---
2
+ version: 2
3
+
4
+ updates:
5
+ - package-ecosystem: "pip"
6
+ directory: "/"
7
+ schedule:
8
+ interval: "daily"
9
+ cooldown:
10
+ default-days: 7
11
+
12
+ - package-ecosystem: "github-actions"
13
+ directory: "/"
14
+ schedule:
15
+ interval: "daily"
16
+ cooldown:
17
+ default-days: 7
@@ -0,0 +1,5 @@
1
+ line-length = 100
2
+ target-version = "py311"
3
+
4
+ [lint]
5
+ select = ["E", "F", "W", "I"]
@@ -0,0 +1,17 @@
1
+ # _Pull Request Title_
2
+
3
+ _Write a summary for the pull request. Describe the problem
4
+ or feature in addition to a link to the issues._
5
+
6
+ ## Motivation
7
+
8
+ _How does this change address the problem?_
9
+
10
+ ## Testing
11
+
12
+ _Describe the tests you used to validate your changes and
13
+ any additional tests that need to be run._
14
+
15
+ ## Additional Context
16
+
17
+ _Add any additional information here._
@@ -0,0 +1,33 @@
1
+ ---
2
+ name: Super-Linter
3
+
4
+ on:
5
+ push:
6
+ pull_request:
7
+
8
+ permissions:
9
+ contents: read
10
+ statuses: write
11
+
12
+ jobs:
13
+ lint:
14
+ name: Lint code base
15
+ runs-on: ubuntu-24.04
16
+ steps:
17
+ - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
18
+ with:
19
+ fetch-depth: 0
20
+ persist-credentials: false
21
+ - uses: super-linter/super-linter@61abc07d755095a68f4987d1c2c3d1d64408f1f9 # v8.5.0
22
+ env:
23
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
24
+ DEFAULT_BRANCH: main
25
+ VALIDATE_ALL_CODEBASE: true
26
+ # Use Ruff for Python linting and formatting (passes cleanly).
27
+ # Disable redundant/conflicting Python linters.
28
+ VALIDATE_PYTHON_BLACK: false
29
+ VALIDATE_PYTHON_PYLINT: false
30
+ VALIDATE_PYTHON_FLAKE8: false
31
+ VALIDATE_PYTHON_ISORT: false
32
+ # Exclude virtual-env and cache dirs that may exist locally.
33
+ FILTER_REGEX_EXCLUDE: '(\.venv/|\.mypy_cache/|__pycache__/)'
@@ -0,0 +1,105 @@
1
+ ---
2
+ name: Build & Publish
3
+
4
+ on:
5
+ push:
6
+ pull_request:
7
+
8
+ permissions:
9
+ contents: read
10
+
11
+ jobs:
12
+ build:
13
+ name: Build
14
+ runs-on: ubuntu-24.04
15
+ permissions:
16
+ contents: read
17
+ steps:
18
+ - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
19
+ with:
20
+ persist-credentials: false
21
+ - uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
22
+ with:
23
+ python-version: "3.x"
24
+ - name: Install build dependencies
25
+ run: python -m pip install --upgrade pip build
26
+ - name: Build sdist and wheel
27
+ run: python -m build
28
+ - name: Upload distribution artifacts
29
+ uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
30
+ with:
31
+ name: python-package-distributions
32
+ path: dist/
33
+
34
+ publish:
35
+ name: Publish to PyPI
36
+ if: startsWith(github.ref, 'refs/tags/v') && github.event_name == 'push'
37
+ needs: build
38
+ runs-on: ubuntu-24.04
39
+ environment:
40
+ name: pypi
41
+ url: https://pypi.org/p/m3u8-extractor
42
+ permissions:
43
+ id-token: write
44
+ contents: read
45
+ attestations: write
46
+ steps:
47
+ - name: Download distribution artifacts
48
+ uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
49
+ with:
50
+ name: python-package-distributions
51
+ path: dist/
52
+ - name: Generate build attestations
53
+ uses: actions/attest-build-provenance@a2bbfa25375fe432b6a289bc6b6cd05ecd0c4c32 # v4.1.0
54
+ with:
55
+ subject-path: "dist/*"
56
+ - name: Publish to PyPI
57
+ uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # v1.13.0
58
+ with:
59
+ attestations: true
60
+
61
+ github-release:
62
+ name: Create GitHub Release
63
+ if: startsWith(github.ref, 'refs/tags/v') && github.event_name == 'push'
64
+ needs:
65
+ - build
66
+ - publish
67
+ runs-on: ubuntu-24.04
68
+ permissions:
69
+ contents: write
70
+ steps:
71
+ - name: Download distribution artifacts
72
+ uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
73
+ with:
74
+ name: python-package-distributions
75
+ path: dist/
76
+ - name: Create GitHub Release
77
+ uses: softprops/action-gh-release@a06a81a03ee405af7f2048a818ed3f03bbf83c7b # v2.5.0
78
+ with:
79
+ files: dist/*
80
+ generate_release_notes: true
81
+
82
+ dev-release:
83
+ name: Create GitHub Pre-Release
84
+ if: github.ref == 'refs/heads/main' && github.event_name == 'push'
85
+ needs: build
86
+ runs-on: ubuntu-24.04
87
+ permissions:
88
+ contents: write
89
+ steps:
90
+ - name: Download distribution artifacts
91
+ uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
92
+ with:
93
+ name: python-package-distributions
94
+ path: dist/
95
+ - name: Update Development Build release
96
+ uses: softprops/action-gh-release@a06a81a03ee405af7f2048a818ed3f03bbf83c7b # v2.5.0
97
+ with:
98
+ tag_name: dev
99
+ name: Development Build
100
+ body: |
101
+ Latest build from the `main` branch.
102
+ This is an automated pre-release and may be unstable.
103
+ files: dist/*
104
+ prerelease: true
105
+ make_latest: false
@@ -0,0 +1,242 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[codz]
4
+ *$py.class
5
+
6
+ # C extensions
7
+ *.so
8
+
9
+ # Distribution / packaging
10
+ .Python
11
+ build/
12
+ develop-eggs/
13
+ dist/
14
+ downloads/
15
+ eggs/
16
+ .eggs/
17
+ lib/
18
+ lib64/
19
+ parts/
20
+ sdist/
21
+ var/
22
+ wheels/
23
+ share/python-wheels/
24
+ *.egg-info/
25
+ .installed.cfg
26
+ *.egg
27
+ MANIFEST
28
+
29
+ # PyInstaller
30
+ # Usually these files are written by a python script from a template
31
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
32
+ *.manifest
33
+ *.spec
34
+
35
+ # Installer logs
36
+ pip-log.txt
37
+ pip-delete-this-directory.txt
38
+
39
+ # Unit test / coverage reports
40
+ htmlcov/
41
+ .tox/
42
+ .nox/
43
+ .coverage
44
+ .coverage.*
45
+ .cache
46
+ nosetests.xml
47
+ coverage.xml
48
+ *.cover
49
+ *.py.cover
50
+ .hypothesis/
51
+ .pytest_cache/
52
+ cover/
53
+
54
+ # Translations
55
+ *.mo
56
+ *.pot
57
+
58
+ # Django stuff:
59
+ *.log
60
+ local_settings.py
61
+ db.sqlite3
62
+ db.sqlite3-journal
63
+
64
+ # Flask stuff:
65
+ instance/
66
+ .webassets-cache
67
+
68
+ # Scrapy stuff:
69
+ .scrapy
70
+
71
+ # Sphinx documentation
72
+ docs/_build/
73
+
74
+ # PyBuilder
75
+ .pybuilder/
76
+ target/
77
+
78
+ # Jupyter Notebook
79
+ .ipynb_checkpoints
80
+
81
+ # IPython
82
+ profile_default/
83
+ ipython_config.py
84
+
85
+ # pyenv
86
+ # For a library or package, you might want to ignore these files since the code is
87
+ # intended to run in multiple environments; otherwise, check them in:
88
+ # .python-version
89
+
90
+ # pipenv
91
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
92
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
93
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
94
+ # install all needed dependencies.
95
+ # Pipfile.lock
96
+
97
+ # UV
98
+ # Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
99
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
100
+ # commonly ignored for libraries.
101
+ # uv.lock
102
+
103
+ # poetry
104
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
105
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
106
+ # commonly ignored for libraries.
107
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
108
+ # poetry.lock
109
+ # poetry.toml
110
+
111
+ # pdm
112
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
113
+ # pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
114
+ # https://pdm-project.org/en/latest/usage/project/#working-with-version-control
115
+ # pdm.lock
116
+ # pdm.toml
117
+ .pdm-python
118
+ .pdm-build/
119
+
120
+ # pixi
121
+ # Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
122
+ # pixi.lock
123
+ # Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
124
+ # in the .venv directory. It is recommended not to include this directory in version control.
125
+ .pixi
126
+
127
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
128
+ __pypackages__/
129
+
130
+ # Celery stuff
131
+ celerybeat-schedule
132
+ celerybeat.pid
133
+
134
+ # Redis
135
+ *.rdb
136
+ *.aof
137
+ *.pid
138
+
139
+ # RabbitMQ
140
+ mnesia/
141
+ rabbitmq/
142
+ rabbitmq-data/
143
+
144
+ # ActiveMQ
145
+ activemq-data/
146
+
147
+ # SageMath parsed files
148
+ *.sage.py
149
+
150
+ # Environments
151
+ .env
152
+ .envrc
153
+ .venv
154
+ env/
155
+ venv/
156
+ ENV/
157
+ env.bak/
158
+ venv.bak/
159
+
160
+ # Spyder project settings
161
+ .spyderproject
162
+ .spyproject
163
+
164
+ # Rope project settings
165
+ .ropeproject
166
+
167
+ # mkdocs documentation
168
+ /site
169
+
170
+ # mypy
171
+ .mypy_cache/
172
+ .dmypy.json
173
+ dmypy.json
174
+
175
+ # Pyre type checker
176
+ .pyre/
177
+
178
+ # pytype static type analyzer
179
+ .pytype/
180
+
181
+ # Cython debug symbols
182
+ cython_debug/
183
+
184
+ # PyCharm
185
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
186
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
187
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
188
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
189
+ # .idea/
190
+
191
+ # Abstra
192
+ # Abstra is an AI-powered process automation framework.
193
+ # Ignore directories containing user credentials, local state, and settings.
194
+ # Learn more at https://abstra.io/docs
195
+ .abstra/
196
+
197
+ # Visual Studio Code
198
+ # Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
199
+ # that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
200
+ # and can be added to the global gitignore or merged into this file. However, if you prefer,
201
+ # you could uncomment the following to ignore the entire vscode folder
202
+ # .vscode/
203
+
204
+ # Ruff stuff:
205
+ .ruff_cache/
206
+
207
+ # PyPI configuration file
208
+ .pypirc
209
+
210
+ # Marimo
211
+ marimo/_static/
212
+ marimo/_lsp/
213
+ __marimo__/
214
+
215
+ # Streamlit
216
+ .streamlit/secrets.toml
217
+
218
+ # User config files
219
+ .env
220
+ urls.txt
221
+ config.toml
222
+
223
+ # Media files
224
+ *.mp4
225
+ *.part
226
+ *.mp3
227
+ *.mkv
228
+ *.avi
229
+ *.flv
230
+ *.ts
231
+ *.webm
232
+ *.m4a
233
+ *.ogg
234
+ *.opus
235
+ *.wav
236
+ *.aac
237
+ *.flac
238
+ *.m3u8
239
+
240
+ # Downloads
241
+ downloads
242
+ Downloads
@@ -0,0 +1,3 @@
1
+ ---
2
+ MD013:
3
+ tables: false