Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
jenslys committed Sep 2, 2022
1 parent 5f5ddcf commit 704a097
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions nrkdl/nrkdl.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,24 @@
required=True,
help="URL for the Movie/TV-show (e.g: https://tv.nrk.no/program/KOID75006720) ",
)
parser.add_argument("--write-subs", action="store_true", help="Download and embed subtitles to file")
parser.add_argument(
"--write-subs", action="store_true", help="Download and embed subtitles to file"
)
parser.add_argument(
"--keep-subs",
action="store_true",
required=False,
help="Prevent the subtitle files from being deleted after being embeded",
)
parser.add_argument("--audio-only", action="store_true", required=False, help="Only extract audio files")
parser.add_argument("--write-metadata", action="store_true", required=False, help="Write metadata to file")
parser.add_argument(
"--audio-only", action="store_true", required=False, help="Only extract audio files"
)
parser.add_argument(
"--write-metadata",
action="store_true",
required=False,
help="Write metadata to file",
)
args = parser.parse_args()


Expand Down Expand Up @@ -107,7 +116,9 @@ def main():
{
"key": "MetadataParser",
"when": "pre_process",
"actions": [(MetadataParserPP.Actions.REPLACE, "episode", r"\d+\.+\s", "")],
"actions": [
(MetadataParserPP.Actions.REPLACE, "episode", r"\d+\.+\s", "")
],
},
)

Expand Down

0 comments on commit 704a097

Please sign in to comment.