Skip to content
This repository was archived by the owner on Sep 10, 2022. It is now read-only.

Commit

Permalink
Merge pull request #55 from excalibur-kvrv:added_console_entry_point
Browse files Browse the repository at this point in the history
added console entry point
  • Loading branch information
kevinrvaz authored Nov 3, 2021
2 parents a454f5f + 4483a30 commit 67f4b1c
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ RUN apt-get update && apt-get install -y \
software-properties-common
RUN add-apt-repository universe
RUN apt-get update && apt-get install -y \
python3.6 \
python3-pip
COPY . /app

RUN pip install -r requirements.txt

ENTRYPOINT [ "python3" ]
21 changes: 15 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,25 @@ A CLI program to download a video played using a m3u8 playlist. Read about m3u8
- start the script using `python -m m3u8dl <url of playlist>`.

### Setup with Docker
- build docker image using `docker build -t m3u8dl:0.5.0 .`
- start container `docker run -d -it --entrypoint='bash' --name m3u8dl-app m3u8dl:0.5.0`
- go into container terminal `docker exec -it m3u8dl-app bash`
#### Re-build docker image
- build docker image using `docker build -t m3u8dl:0.5.1 .`
- start container `docker run -d -it --name m3u8dl-app m3u8dl:0.5.1`
- attach to container via terminal `docker exec -it m3u8dl-app bash`
- start the script using `python3 -m m3u8dl <url of playlist>`.

## Installing/Uninstalling
#### Pull exisiting docker image from github packages or docker hub
- pull from docker hub using `docker pull excaliburkrv/m3u8-dl`
- if not pulled from docker hub you can pull from github packages using `docker pull ghcr.io/excalibur-kvrv/m3u8-dl:master`
- then start the container in detached mode using `docker run -d -it --name m3u8dl-app excaliburkrv/m3u8-dl` if pulled from docker hub
- attach to container via terminal `docker exec -it m3u8dl-app bash`
- start the script using `python3 -m m3u8dl <url of playlist>`.

## Installing/Uninstalling Globally
### Installation and usage using pip:-
- ensure ffmpeg is installed see dependecies section
- visit PyPI https://pypi.org/project/m3u8dl/0.5.0/ or install using below commands.
- run `pip install m3u8dl==0.5.0`
- run the program now using `python -m m3u8dl <url-of-playlist>`
- run `pip install m3u8dl==0.5.1`
- run the program now using `m3u8-dl <url-of-playlist>`

### Uninstalling using pip:-
- run `pip uninstall m3u8dl`
Expand Down
4 changes: 4 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,8 @@
"Operating System :: OS Independent",
],
python_requires='>=3.6',
entry_points = '''
[console_scripts]
m3u8-dl=m3u8dl:main
'''
)

0 comments on commit 67f4b1c

Please sign in to comment.