Skip to content

Commit

Permalink
Fixed Issues: 4, 5, 6, 7, and 10 (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
coldsofttech authored Aug 4, 2024
1 parent 287a27d commit 8d83d3b
Show file tree
Hide file tree
Showing 8 changed files with 238 additions and 97 deletions.
24 changes: 23 additions & 1 deletion .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,33 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install pytest
pip install pytest-html
pip install -r requirements.txt
- name: Set Branch Name (Windows)
if: matrix.os == 'windows-latest'
run: |
$branchName = ${GITHUB_REF##*/}
Write-Host "Branch Name: $branchName"
Write-Host "BRANCH_NAME=$branchName" | Out-File -FilePath $env:GITHUB_ENV -Append
- name: Set Branch Name (Ubuntu and macOS)
if: matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest'
run: |
BRANCH_NAME=${GITHUB_REF##*/}
echo "Branch name: $BRANCH_NAME"
echo "BRANCH_NAME=$BRANCH_NAME" >> $GITHUB_ENV
- name: Run Tests
run: |
pytest tests -vv -rEPW -o pytest_collection_order=alphabetical --cache-clear --color=yes
pytest tests -vv -rEPW -o pytest_collection_order=alphabetical --cache-clear --color=yes --html=pytest_results.html --self-contained-html
- name: Upload Report
if: ${{ always() }}
uses: actions/upload-artifact@v4
with:
name: test-${{ matrix.os }}-${{ matrix.python-version }}
path: pytest_results.html

build:
name: Build
Expand Down
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Version History

- 0.1.2: Updated Pipeline To Support Multi-OS & Added Support for PyPI Release (latest)
- 0.1.3: Fixed Issues: 4, 5, 6, 7, and 10 (latest)
- 0.1.2: Updated Pipeline To Support Multi-OS & Added Support for PyPI Release
- 0.1.1: Introduced Linting
- 0.1.0: Initial Release
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,17 @@ downloader.download_playlist()
- `skip_space_check`: Getter/setter property for the skip space check flag.
- `debug`: Getter/setter property for the debug flag.
- `debug_file_path`: Getter/setter property for the debug file path.
- `max_threads`: Getter/setter property for the maximum number of threads that can be executed in parallel.
- `is_download_complete`: Getter property for the download completion status.

#### Methods

- `__init__(input_file_path: str, output_file_path: str, skip_space_check: Optional[bool] = False, debug: Optional[bool] = False, debug_file_path: Optional[str] = 'debug.log')`:
- `__init__(input_file_path: str, output_file_path: str, skip_space_check: Optional[bool] = False, debug: Optional[bool] = False, debug_file_path: Optional[str] = 'debug.log', max_threads: Optional[int] = 10)`:
Initializes the M3U8Downloader object with the specified parameters.
- `download_playlist()`: Downloads and concatenates the video files from the M3U8 playlist.
- `download_playlist(merge: bool = True)`: Downloads video files from an M3U8 playlist. The optional `merge`
parameter determines the handling of the downloaded segments. When `merge` is set to `True`, the method downloads and
concatenates all video segments into a single output file. If `merge` is `False`, it only downloads the segments
without concatenating them, keeping each segment as an individual file.

### `M3U8DownloaderError`

Expand Down
2 changes: 1 addition & 1 deletion pym3u8downloader/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
into a single video file, and manage various error conditions.
"""
__name__ = "pym3u8downloader"
__version__ = "0.1.2"
__version__ = "0.1.3"

from pym3u8downloader.__main__ import M3U8Downloader, M3U8DownloaderError
Loading

0 comments on commit 8d83d3b

Please sign in to comment.