Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jenslys committed May 3, 2022
1 parent bb361ed commit 5f5ddcf
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 18 deletions.
31 changes: 23 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
# nrkdl

<a href="https://github.com/jenslys/nrkdl/releases/"><img src="https://img.shields.io/github/v/release/jenslys/nrkdl.svg" alt="Releases"></a>
[![Releases](https://img.shields.io/github/v/release/jenslys/nrkdl.svg)](https://github.com/jenslys/nrkdl/releases/)

Download shows and movies from tv.nrk.no
Download content from nrk.no

**Disclaimer:** This is for educational purposes ONLY. Use at your own risk.
**Disclaimer:** This is for educational purposes **ONLY**.

## Installation

```bash
pip install nrkdl
```

#### System requirements
### System requirements

- python3
- ffmpeg

## Usage

```
```text
usage: nrkdl.py [-h] --url URL [--write-subs] [--keep-subs] [--audio-only] [--write-metadata]
optional arguments:
Expand All @@ -33,20 +33,35 @@ optional arguments:

### Example usage

#### Download an entire tv-show with subtitles:
#### Download an entire tv-show with subtitles

```bash
nrkdl --url https://tv.nrk.no/serie/exit --write-subs
```

#### Download a single tv-show episode:
#### Download a single tv-show episode

```bash
nrkdl --url https://tv.nrk.no/serie/exit/sesong/2/episode/6/
```

#### Download a movie:
#### Download a movie

```bash
nrkdl --url https://tv.nrk.no/program/MSUI31006017
```

### Supported sites

```text
NRK
NRKPlaylist
NRKRadioPodkast
NRKSkole: NRK Skole
NRKTV: NRK TV and NRK Radio
NRKTVDirekte: NRK TV Direkte and NRK Radio Direkte
NRKTVEpisode
NRKTVEpisodes
NRKTVSeason
NRKTVSeries
```
10 changes: 1 addition & 9 deletions nrkdl/nrkdl.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def progress_hooks(d):
print()


def download():
def main():
try:
video_title = "%(series)s" # Title of show/movie
movie = "%(title)s.%(ext)s" # Moviename.mp4
Expand Down Expand Up @@ -115,11 +115,3 @@ def download():
ydl.download([args.url])
except Exception as e:
raise e


def main():
download()


if __name__ == "__main__":
main()
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="nrkdl",
version="1.0.4",
version="1.0.5",
author="jenlys",
description="Download movies/tv-shows from nrk.no",
long_description=long_description,
Expand Down

0 comments on commit 5f5ddcf

Please sign in to comment.